From: Daan De Meyer Date: Fri, 12 Dec 2025 13:16:53 +0000 (+0100) Subject: openssl-util: Cast to const type X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8440492e90ac2af277df4480e5256b9a398d5176;p=thirdparty%2Fsystemd.git openssl-util: Cast to const type --- diff --git a/src/shared/openssl-util.c b/src/shared/openssl-util.c index 8849ec89c4b..0e54ae527af 100644 --- a/src/shared/openssl-util.c +++ b/src/shared/openssl-util.c @@ -1774,7 +1774,7 @@ int openssl_extract_public_key(EVP_PKEY *private_key, EVP_PKEY **ret) { if (r < 0) return r; - const unsigned char *t = (unsigned char*) buf; + const unsigned char *t = (const unsigned char*) buf; if (!d2i_PUBKEY(ret, &t, len)) return -EIO;