diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-04-03 15:52:50 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-04-03 15:52:50 +0000 |
commit | 31ba4d6e440b8a5bf5950a2ac189fef2e3c64edc (patch) | |
tree | 7bc6330c4f8dc65608468f0d97e229390df69bbc /include/asterisk/crypto.h | |
parent | 9b13236912b58518224f746b06233f122ce3a061 (diff) |
Merged revisions 186320 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r186320 | file | 2009-04-03 12:48:56 -0300 (Fri, 03 Apr 2009) | 5 lines
Fix a problem with the crypto variable definitions not actually being defined properly.
(closes issue #14804)
Reported by: jvandal
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@186321 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/crypto.h')
-rw-r--r-- | include/asterisk/crypto.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/asterisk/crypto.h b/include/asterisk/crypto.h index 427c5ea51..01a61d099 100644 --- a/include/asterisk/crypto.h +++ b/include/asterisk/crypto.h @@ -40,7 +40,7 @@ struct ast_key; * \retval the key on success. * \retval NULL on failure. */ -struct ast_key *(*ast_key_get)(const char *key, int type); +extern struct ast_key *(*ast_key_get)(const char *key, int type); /*! * \brief Check the authenticity of a message signature using a given public key @@ -52,7 +52,7 @@ struct ast_key *(*ast_key_get)(const char *key, int type); * \retval -1 otherwise. * */ -int (*ast_check_signature)(struct ast_key *key, const char *msg, const char *sig); +extern int (*ast_check_signature)(struct ast_key *key, const char *msg, const char *sig); /*! * \brief Check the authenticity of a message signature using a given public key @@ -64,7 +64,7 @@ int (*ast_check_signature)(struct ast_key *key, const char *msg, const char *sig * \retval -1 otherwise. * */ -int (*ast_check_signature_bin)(struct ast_key *key, const char *msg, int msglen, const unsigned char *sig); +extern int (*ast_check_signature_bin)(struct ast_key *key, const char *msg, int msglen, const unsigned char *sig); /*! * \brief Sign a message signature using a given private key @@ -77,7 +77,7 @@ int (*ast_check_signature_bin)(struct ast_key *key, const char *msg, int msglen, * \retval -1 on failure. * */ -int (*ast_sign)(struct ast_key *key, char *msg, char *sig); +extern int (*ast_sign)(struct ast_key *key, char *msg, char *sig); /*! * \brief Sign a message signature using a given private key @@ -90,7 +90,7 @@ int (*ast_sign)(struct ast_key *key, char *msg, char *sig); * \retval -1 on failure. * */ -int (*ast_sign_bin)(struct ast_key *key, const char *msg, int msglen, unsigned char *sig); +extern int (*ast_sign_bin)(struct ast_key *key, const char *msg, int msglen, unsigned char *sig); /*! * \brief Encrypt a message using a given private key @@ -104,7 +104,7 @@ int (*ast_sign_bin)(struct ast_key *key, const char *msg, int msglen, unsigned c * \retval -1 on failure. * */ -int (*ast_encrypt_bin)(unsigned char *dst, const unsigned char *src, int srclen, struct ast_key *key); +extern int (*ast_encrypt_bin)(unsigned char *dst, const unsigned char *src, int srclen, struct ast_key *key); /*! * \brief Decrypt a message using a given private key @@ -118,7 +118,7 @@ int (*ast_encrypt_bin)(unsigned char *dst, const unsigned char *src, int srclen, * \retval -1 on failure. * */ -int (*ast_decrypt_bin)(unsigned char *dst, const unsigned char *src, int srclen, struct ast_key *key); +extern int (*ast_decrypt_bin)(unsigned char *dst, const unsigned char *src, int srclen, struct ast_key *key); #if defined(__cplusplus) || defined(c_plusplus) } #endif |