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>
{
return "[null-digest]";
}
- return EVP_MD_name(kt);
+ return EVP_MD_get0_name(kt);
}
unsigned char
#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 *