From: Joshua Colp Date: Fri, 3 Apr 2009 15:48:56 +0000 (+0000) Subject: Fix a problem with the crypto variable definitions not actually being defined properly. X-Git-Tag: 1.4.25-rc1~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddb260532b8dc935c33bf13be95b9f9d21f581ab;p=thirdparty%2Fasterisk.git Fix a problem with the crypto variable definitions not actually being defined properly. (closes issue #14804) Reported by: jvandal git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@186320 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/crypto.h b/include/asterisk/crypto.h index 32233fc176..1259654c92 100644 --- a/include/asterisk/crypto.h +++ b/include/asterisk/crypto.h @@ -38,7 +38,7 @@ struct ast_key; * * Returns the key on success or 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 * \param key a public key to use to verify @@ -48,7 +48,7 @@ struct ast_key *(*ast_key_get)(const char *key, int type); * Returns 0 if the signature is valid, or -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 * \param key a public key to use to verify @@ -58,7 +58,7 @@ int (*ast_check_signature)(struct ast_key *key, const char *msg, const char *sig * Returns 0 if the signature is valid, or -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); /*! * \param key a private key to use to create the signature @@ -69,7 +69,7 @@ int (*ast_check_signature_bin)(struct ast_key *key, const char *msg, int msglen, * Returns 0 on success or -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); /*! * \param key a private key to use to create the signature @@ -80,7 +80,7 @@ int (*ast_sign)(struct ast_key *key, char *msg, char *sig); * Returns 0 on success or -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); /*! * \param key a private key to use to encrypt @@ -92,7 +92,7 @@ int (*ast_sign_bin)(struct ast_key *key, const char *msg, int msglen, unsigned c * Returns length of encrypted data on success or -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); /*! * \param key a private key to use to decrypt @@ -104,7 +104,7 @@ int (*ast_encrypt_bin)(unsigned char *dst, const unsigned char *src, int srclen, * Returns length of decrypted data on success or -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