mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-04 03:20:33 +00:00
Oops, forgot message length
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3608 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user