diff options
author | Richard Levitte <levitte@openssl.org> | 2003-05-05 13:55:18 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2003-05-05 13:55:18 +0000 |
commit | 3b30121bd989bc79b8cb4a5440f55acf7442b3d2 (patch) | |
tree | 6bf43506e2e0e38460fed204915239423e22473f /crypto/rsa/rsa_sign.c | |
parent | 9ee789e6c35ca51adbc44d2b7254f45d8ddaf4e2 (diff) | |
download | openssl-3b30121bd989bc79b8cb4a5440f55acf7442b3d2.tar.gz |
Constify RSA_sign() and RSA_verify().
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 02eb8136b0..1d47a3139c 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, RSA *rsa) + unsigned char *sigret, unsigned int *siglen, const 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, RSA *rsa) + unsigned char *sigbuf, unsigned int siglen, const RSA *rsa) { int i,ret=0,sigtype; unsigned char *p,*s; |