[asterisk-commits] file: trunk r186321 - in /trunk: ./ include/asterisk/crypto.h
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Apr 3 10:52:54 CDT 2009
Author: file
Date: Fri Apr 3 10:52:50 2009
New Revision: 186321
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=186321
Log:
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
........
Modified:
trunk/ (props changed)
trunk/include/asterisk/crypto.h
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/include/asterisk/crypto.h
URL: http://svn.digium.com/svn-view/asterisk/trunk/include/asterisk/crypto.h?view=diff&rev=186321&r1=186320&r2=186321
==============================================================================
--- trunk/include/asterisk/crypto.h (original)
+++ trunk/include/asterisk/crypto.h Fri Apr 3 10:52:50 2009
@@ -40,7 +40,7 @@
* \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 @@
* \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 @@
* \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 @@
* \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 @@
* \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 @@
* \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 @@
* \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
More information about the asterisk-commits
mailing list