X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcclient%2Fsilcclient.h;h=b9647bdf08bb705e159f6c947a9fc6a3ffb51e27;hb=bb8ce8c6460403e9220d9f96eb0e6bd2a20d31f0;hp=5f9f44377f22e609d9cba26112e3a302a35bacbb;hpb=dcf528abe0ed8f2204b9082efacbaafbe760d310;p=silc.git diff --git a/lib/silcclient/silcclient.h b/lib/silcclient/silcclient.h index 5f9f4437..b9647bdf 100644 --- a/lib/silcclient/silcclient.h +++ b/lib/silcclient/silcclient.h @@ -183,7 +183,9 @@ typedef struct SilcChannelPrivateKeyStruct { * * Ask passphrase callback. This is called by the application when the * library calls `ask_passphrase' client operation. The callback delivers - * the passphrase to the library. + * the passphrase to the library. The passphrases in SILC protocol + * MUST be in UTF-8 encoding, therefore the `passphrase' SHOULD be UTF-8 + * encoded, and if it is not then library will attempt to encode it. * ***/ typedef void (*SilcAskPassphrase)(unsigned char *passphrase, @@ -371,7 +373,8 @@ typedef struct { /* Ask (interact, that is) a passphrase from user. The passphrase is returned to the library by calling the `completion' callback with - the `context'. */ + the `context'. The returned passphrase SHOULD be in UTF-8 encoded, + if not then the library will attempt to encode. */ void (*ask_passphrase)(SilcClient client, SilcClientConnection conn, SilcAskPassphrase completion, void *context);