diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2006-04-10 01:06:17 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2006-04-10 01:06:17 +0000 |
commit | 4f59b6587f1c660dfe61c368ede1c4e34e03164d (patch) | |
tree | 2dc9e18b2278c9e40aa8c4b3bbdf154f86310d61 /engines | |
parent | 9befdf1d2072f3366086583462332cf6f2bc1540 (diff) |
Implementation of pkey_rsa_verify. Some constification.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/e_4758cca.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/e_4758cca.c b/engines/e_4758cca.c index a9089498cc..9f6572e677 100644 --- a/engines/e_4758cca.c +++ b/engines/e_4758cca.c @@ -92,7 +92,7 @@ static int cca_rsa_priv_dec(int flen, const unsigned char *from, static int cca_rsa_sign(int type, const unsigned char *m, unsigned int m_len, unsigned char *sigret, unsigned int *siglen, const RSA *rsa); static int cca_rsa_verify(int dtype, const unsigned char *m, unsigned int m_len, - unsigned char *sigbuf, unsigned int siglen, const RSA *rsa); + const unsigned char *sigbuf, unsigned int siglen, const RSA *rsa); /* utility functions */ /*-----------------------*/ @@ -618,7 +618,7 @@ static int cca_rsa_priv_dec(int flen, const unsigned char *from, #define SSL_SIG_LEN 36 static int cca_rsa_verify(int type, const unsigned char *m, unsigned int m_len, - unsigned char *sigbuf, unsigned int siglen, const RSA *rsa) + const unsigned char *sigbuf, unsigned int siglen, const RSA *rsa) { long returnCode; long reasonCode; @@ -727,7 +727,8 @@ static int cca_rsa_verify(int type, const unsigned char *m, unsigned int m_len, digitalSignatureVerify(&returnCode, &reasonCode, &exitDataLength, exitData, &ruleArrayLength, ruleArray, &keyTokenLength, - keyToken, &length, hashBuffer, &lsiglen, sigbuf); + keyToken, &length, hashBuffer, &lsiglen, + (unsigned char *)sigbuf); if (type == NID_sha1 || type == NID_md5) { |