From e0685d2473a88056e848900abaec3e19b8a447d3 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sun, 26 Jun 2016 21:55:03 +0200 Subject: [PATCH] rsa/rsa_lib.c: const-ify RSA_get0_engine(). Reviewed-by: Rich Salz --- crypto/rsa/rsa_lib.c | 2 +- include/openssl/rsa.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.25.1