]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
OpenSSL: SSLeay symbols are no longer available in OpenSSL 1.1
authorEmmanuel Deloget <logout@free.fr>
Fri, 17 Feb 2017 22:00:52 +0000 (23:00 +0100)
committerGert Doering <gert@greenie.muc.de>
Sun, 5 Mar 2017 11:21:38 +0000 (12:21 +0100)
The old symbols do not exist anymore but the library gained new
equivalent symbols (OSSL). Use them instead of the old ones

Signed-off-by: Emmanuel Deloget <logout@free.fr>
Acked-by: Steffan Karger <steffan.karger@fox-it.com>
Message-Id: <9ce17efda7b1ed100e73554b1916c0bfa687d9d1.1487368114.git.logout@free.fr>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg14089.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/openssl_compat.h
src/openvpn/ssl_openssl.c

index e98e8dffc5773d73684398ae28215d4fdccac3c4..92f014d57f3c7aea98198baec2ec9ad7cad2a9b1 100644 (file)
@@ -307,4 +307,9 @@ RSA_meth_set0_app_data(RSA_METHOD *meth, void *app_data)
 }
 #endif
 
+/* SSLeay symbols have been renamed in OpenSSL 1.1 */
+#if !defined(RSA_F_RSA_OSSL_PRIVATE_ENCRYPT)
+#define RSA_F_RSA_OSSL_PRIVATE_ENCRYPT       RSA_F_RSA_EAY_PRIVATE_ENCRYPT
+#endif
+
 #endif /* OPENSSL_COMPAT_H_ */
index f011e06702529ff34e91f6d0169d1adf8cc9d767..d7cc2ba44aab14352bc17abdbe2cd3924a40123b 100644 (file)
@@ -995,7 +995,7 @@ rsa_priv_enc(int flen, const unsigned char *from, unsigned char *to, RSA *rsa, i
 
     if (padding != RSA_PKCS1_PADDING)
     {
-        RSAerr(RSA_F_RSA_EAY_PRIVATE_ENCRYPT, RSA_R_UNKNOWN_PADDING_TYPE);
+        RSAerr(RSA_F_RSA_OSSL_PRIVATE_ENCRYPT, RSA_R_UNKNOWN_PADDING_TYPE);
         goto done;
     }