0004-resip-stack-ssl-Security-cxx-remove-deprecated-OpenS.patch 1.3 KB

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