From b05ee11e5202acf94ecd57f98b10773bd72869cb Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 10 Apr 2021 14:59:40 +0200 Subject: [PATCH] openssl: make RSA struct const OpenSSL 3.0 broke API there, but it doesn't hurt to add the "const", hence add it. Fixes: #19267 (cherry picked from commit a8fd92b5a303ddd47af44286525e8e4a0fe6e9ae) --- src/shared/openssl-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/openssl-util.c b/src/shared/openssl-util.c index 4ea72a8b2b..bb47ae5e87 100644 --- a/src/shared/openssl-util.c +++ b/src/shared/openssl-util.c @@ -46,7 +46,7 @@ int rsa_pkey_to_suitable_key_size( size_t *ret_suitable_key_size) { size_t suitable_key_size; - RSA *rsa; + const RSA *rsa; int bits; assert_se(pkey); -- 2.25.1