]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Use EVP_MD_get0_name instead EV_MD_name
authorArne Schwabe <arne@rfc2549.org>
Tue, 19 Oct 2021 18:31:17 +0000 (20:31 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 1 Nov 2021 19:56:10 +0000 (20:56 +0100)
Use the new name for the function as it indicates with
get0 the ownership of the returned value

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Max Fillinger <maximilian.fillinger@foxcrypto.com>
Message-Id: <20211019183127.614175-12-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23016.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/crypto_openssl.c
src/openvpn/openssl_compat.h

index 66cc38255a8a11f6ab890ac65e142cf3f4a76f08..f4b209228cf3aacde0b3f14fa82bf7d0a469eadb 100644 (file)
@@ -907,7 +907,7 @@ md_kt_name(const EVP_MD *kt)
     {
         return "[null-digest]";
     }
-    return EVP_MD_name(kt);
+    return EVP_MD_get0_name(kt);
 }
 
 unsigned char
index 9049b09d6a7829839a8ea94e7d46254f99a62903..cbd7fd1d230438da13e89fe80820f73a75fec5a4 100644 (file)
@@ -756,6 +756,8 @@ int EVP_PKEY_get_group_name(EVP_PKEY *pkey, char *gname, size_t gname_sz,
 #endif
 
 #if OPENSSL_VERSION_NUMBER < 0x30000000L
+#define EVP_MD_get0_name EVP_MD_name
+
 /* Mimics the functions but only when the default context without
  * options is chosen */
 static inline const EVP_CIPHER *