From 7be7c2eda597ca611beedb21ebc5078e3ba3f971 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 7 Nov 2000 13:49:46 +0000 Subject: [PATCH] A few more constifications of some RSA routines that I forgot yesterday. --- crypto/rsa/rsa.h | 6 +++--- crypto/rsa/rsa_eay.c | 2 +- crypto/rsa/rsa_null.c | 2 +- rsaref/rsaref.c | 2 +- rsaref/rsaref.h | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/crypto/rsa/rsa.h b/crypto/rsa/rsa.h index 63cf2c09d8..ede65003e1 100644 --- a/crypto/rsa/rsa.h +++ b/crypto/rsa/rsa.h @@ -213,12 +213,12 @@ int RSA_set_method(RSA *rsa, struct engine_st *engine); int RSA_memory_lock(RSA *r); /* If you have RSAref compiled in. */ -RSA_METHOD *RSA_PKCS1_RSAref(void); +const RSA_METHOD *RSA_PKCS1_RSAref(void); /* these are the actual SSLeay RSA functions */ -RSA_METHOD *RSA_PKCS1_SSLeay(void); +const RSA_METHOD *RSA_PKCS1_SSLeay(void); -RSA_METHOD *RSA_null_method(void); +const RSA_METHOD *RSA_null_method(void); void ERR_load_RSA_strings(void ); diff --git a/crypto/rsa/rsa_eay.c b/crypto/rsa/rsa_eay.c index 428d7018d9..37baaacfc7 100644 --- a/crypto/rsa/rsa_eay.c +++ b/crypto/rsa/rsa_eay.c @@ -90,7 +90,7 @@ static RSA_METHOD rsa_pkcs1_eay_meth={ NULL, }; -RSA_METHOD *RSA_PKCS1_SSLeay(void) +const RSA_METHOD *RSA_PKCS1_SSLeay(void) { return(&rsa_pkcs1_eay_meth); } diff --git a/crypto/rsa/rsa_null.c b/crypto/rsa/rsa_null.c index 2d5507206e..64057fbdcf 100644 --- a/crypto/rsa/rsa_null.c +++ b/crypto/rsa/rsa_null.c @@ -96,7 +96,7 @@ static RSA_METHOD rsa_null_meth={ NULL, }; -RSA_METHOD *RSA_null_method(void) +const RSA_METHOD *RSA_null_method(void) { return(&rsa_null_meth); } diff --git a/rsaref/rsaref.c b/rsaref/rsaref.c index 9bd596d8c2..1cc6a66581 100644 --- a/rsaref/rsaref.c +++ b/rsaref/rsaref.c @@ -96,7 +96,7 @@ static RSA_METHOD rsa_pkcs1_ref_meth={ NULL, }; -RSA_METHOD *RSA_PKCS1_RSAref(void) +const RSA_METHOD *RSA_PKCS1_RSAref(void) { return(&rsa_pkcs1_ref_meth); } diff --git a/rsaref/rsaref.h b/rsaref/rsaref.h index 427ef773d8..198685d8c4 100644 --- a/rsaref/rsaref.h +++ b/rsaref/rsaref.h @@ -137,7 +137,7 @@ int R_RandomUpdate(RSARandomState *rnd, int R_RandomFinal(RSARandomState *rnd); void ERR_load_RSAREF_strings(void ); -RSA_METHOD *RSA_PKCS1_RSAref(void ); +const RSA_METHOD *RSA_PKCS1_RSAref(void ); #ifdef __cplusplus } -- 2.25.1