From: Lennart Poettering Date: Sat, 10 Apr 2021 12:59:40 +0000 (+0200) Subject: openssl: make RSA struct const X-Git-Tag: v249-rc1~439 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8fd92b5a303ddd47af44286525e8e4a0fe6e9ae;p=thirdparty%2Fsystemd.git 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 --- diff --git a/src/shared/openssl-util.c b/src/shared/openssl-util.c index 4ea72a8b2b0..bb47ae5e873 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);