aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/crypto.h
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-08-14 21:28:30 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-08-14 21:28:30 +0000
commit0be30f736da175c984323e545f26a71aa9d07e89 (patch)
treefae4e2dc3e578b3c5fcdc795b43080c895067948 /include/asterisk/crypto.h
parent37c8c59ba52b2024374715f9853a90e5bb100ed3 (diff)
Oops, forgot message length
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3608 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/crypto.h')
-rwxr-xr-xinclude/asterisk/crypto.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asterisk/crypto.h b/include/asterisk/crypto.h
index d222e46b8..227957a9b 100755
--- a/include/asterisk/crypto.h
+++ b/include/asterisk/crypto.h
@@ -62,7 +62,7 @@ extern int ast_check_signature(struct ast_key *key, char *msg, char *sig);
* Returns 0 if the signature is valid, or -1 otherwise
*
*/
-extern int ast_check_signature_bin(struct ast_key *key, char *msg, unsigned char *sig);
+extern int ast_check_signature_bin(struct ast_key *key, char *msg, int msglen, unsigned char *sig);
/*!
* \param key a private key to use to create the signature
@@ -83,7 +83,7 @@ extern int ast_sign(struct ast_key *key, char *msg, char *sig);
* Returns 0 on success or -1 on failure.
*
*/
-extern int ast_sign_bin(struct ast_key *key, char *msg, unsigned char *sig);
+extern int ast_sign_bin(struct ast_key *key, char *msg, int msglen, unsigned char *sig);
#if defined(__cplusplus) || defined(c_plusplus)
}