1From 88f98702d908549d888aa7f0ee1b0763e09662b1 Mon Sep 17 00:00:00 2001
2From: Daniel Pocock <daniel@pocock.pro>
3Date: Thu, 4 Aug 2022 11:09:43 +0200
4Subject: [PATCH] resip/stack: ssl/Security.cxx: remove deprecated OpenSSL
5 ERR_GET_FUNC, not required
6
7Upstream: https://github.com/resiprocate/resiprocate/commit/88f98702d908549d888aa7f0ee1b0763e09662b1
8
9Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
10---
11 resip/stack/ssl/Security.cxx | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/resip/stack/ssl/Security.cxx b/resip/stack/ssl/Security.cxx
15index 75dc6d838a..23c2ebbf09 100644
16--- a/resip/stack/ssl/Security.cxx
17+++ b/resip/stack/ssl/Security.cxx
18@@ -967,7 +967,7 @@ BaseSecurity::addPrivateKeyPEM( PEMType type,
19          char buffer[120];
20          unsigned long err = ERR_get_error();
21          ERR_error_string(err, buffer);
22-         if(ERR_GET_LIB(err) == ERR_LIB_EVP && ERR_GET_FUNC(err) == EVP_F_EVP_DECRYPTFINAL_EX && ERR_GET_REASON(err) == EVP_R_BAD_DECRYPT)
23+         if(ERR_GET_LIB(err) == ERR_LIB_EVP && ERR_GET_REASON(err) == EVP_R_BAD_DECRYPT)
24          {
25             ErrLog(<< "Could not read private key (error=" << buffer << ") - likely incorrect password provided, may load correctly when transports are added with appropriate password");
26          }
27