diff options
author | Richard Levitte <levitte@openssl.org> | 2003-05-07 11:38:10 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2003-05-07 11:38:10 +0000 |
commit | 816d78572188d76dc9f08fa00a93d0c65f64e02a (patch) | |
tree | b1d21b260abf2688091dcbfabb37f2bd06817e42 /crypto/rsa/rsa_sign.c | |
parent | 742b139f543db9d469dca1b8679492a80c22021f (diff) | |
download | openssl-816d78572188d76dc9f08fa00a93d0c65f64e02a.tar.gz |
DO NOT constify RSA* in RSA_sign() and RSA_verify(), since there are function
called downstream that need it to be non-const. The fact that the RSA_METHOD
functions take the RSA* as a const doesn't matter, it just expresses that
*they* won't touch it.
PR: 602
Diffstat (limited to 'crypto/rsa/rsa_sign.c')
-rw-r--r-- | crypto/rsa/rsa_sign.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/rsa/rsa_sign.c b/crypto/rsa/rsa_sign.c index 1d47a3139c..02eb8136b0 100644 --- a/crypto/rsa/rsa_sign.c +++ b/crypto/rsa/rsa_sign.c @@ -67,7 +67,7 @@ #define SSL_SIG_LENGTH 36 int RSA_sign(int type, const unsigned char *m, unsigned int m_len, - unsigned char *sigret, unsigned int *siglen, const RSA *rsa) + unsigned char *sigret, unsigned int *siglen, RSA *rsa) { X509_SIG sig; ASN1_TYPE parameter; @@ -143,7 +143,7 @@ int RSA_sign(int type, const unsigned char *m, unsigned int m_len, } int RSA_verify(int dtype, const unsigned char *m, unsigned int m_len, - unsigned char *sigbuf, unsigned int siglen, const RSA *rsa) + unsigned char *sigbuf, unsigned int siglen, RSA *rsa) { int i,ret=0,sigtype; unsigned char *p,*s; |