From: Andy Polyakov Date: Sun, 26 Jun 2016 19:55:03 +0000 (+0200) Subject: rsa/rsa_lib.c: const-ify RSA_get0_engine(). X-Git-Tag: OpenSSL_1_1_0-pre6~324 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=e0685d2473a88056e848900abaec3e19b8a447d3 rsa/rsa_lib.c: const-ify RSA_get0_engine(). Reviewed-by: Rich Salz --- diff --git a/crypto/rsa/rsa_lib.c b/crypto/rsa/rsa_lib.c index 14750d177e..48e9100a97 100644 --- a/crypto/rsa/rsa_lib.c +++ b/crypto/rsa/rsa_lib.c @@ -304,7 +304,7 @@ void RSA_set_flags(RSA *r, int flags) r->flags |= flags; } -ENGINE *RSA_get0_engine(RSA *r) +ENGINE *RSA_get0_engine(const RSA *r) { return r->engine; } diff --git a/include/openssl/rsa.h b/include/openssl/rsa.h index cd173856c4..b9d14e414c 100644 --- a/include/openssl/rsa.h +++ b/include/openssl/rsa.h @@ -187,7 +187,7 @@ void RSA_get0_crt_params(const RSA *r, void RSA_clear_flags(RSA *r, int flags); int RSA_test_flags(const RSA *r, int flags); void RSA_set_flags(RSA *r, int flags); -ENGINE *RSA_get0_engine(RSA *r); +ENGINE *RSA_get0_engine(const RSA *r); /* Deprecated version */ DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void