]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
openssl: make RSA struct const
authorLennart Poettering <lennart@poettering.net>
Sat, 10 Apr 2021 12:59:40 +0000 (14:59 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 10 Apr 2021 19:03:06 +0000 (20:03 +0100)
OpenSSL 3.0 broke API there, but it doesn't hurt to add the "const",
hence add it.

Fixes: #19267
src/shared/openssl-util.c

index 4ea72a8b2b0e441e6712bbedc784c0a072a71c6d..bb47ae5e873844b4137cae8b2844e116ccf286f3 100644 (file)
@@ -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);