diff options
Diffstat (limited to 'res/res_crypto.c')
-rw-r--r-- | res/res_crypto.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/res/res_crypto.c b/res/res_crypto.c index 65c5b768d..4ad6885c5 100644 --- a/res/res_crypto.c +++ b/res/res_crypto.c @@ -102,6 +102,16 @@ static AST_RWLIST_HEAD_STATIC(keys, ast_key); * \param userdata * \return length of string,-1 on failure */ + + +/*! + * \brief setting of priv key + * \param buf + * \param size + * \param rwflag + * \param userdata + * \return length of string,-1 on failure +*/ static int pw_cb(char *buf, int size, int rwflag, void *userdata) { struct ast_key *key = (struct ast_key *)userdata; @@ -283,6 +293,10 @@ static struct ast_key *try_load_key(char *dir, char *fname, int ifd, int ofd, in * \brief signs outgoing message with public key * \see ast_sign_bin */ +/*! + * \brief signs outgoing message with public key + * \see ast_sign_bin +*/ static int __ast_sign_bin(struct ast_key *key, const char *msg, int msglen, unsigned char *dsig) { unsigned char digest[20]; |