aboutsummaryrefslogtreecommitdiff
path: root/net/sstp-client/patches
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2019-01-06 21:00:47 -0800
committerRosen Penev <rosenp@gmail.com>2019-01-06 21:00:47 -0800
commitba9d0a08f2b0c9a19b3d0678c8ad76575977b2fe (patch)
tree0493edef4a6f41d4e10b16e0033681105515185d /net/sstp-client/patches
parent483c9fceae100dd7c205c614a35907ecc9496965 (diff)
sstp-client: Fix compilation without deprecated OpenSSL APIs
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'net/sstp-client/patches')
-rw-r--r--net/sstp-client/patches/200-openssl-deprecated.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/net/sstp-client/patches/200-openssl-deprecated.patch b/net/sstp-client/patches/200-openssl-deprecated.patch
new file mode 100644
index 000000000..3c14c6c45
--- /dev/null
+++ b/net/sstp-client/patches/200-openssl-deprecated.patch
@@ -0,0 +1,18 @@
+--- a/src/sstp-client.c
++++ b/src/sstp-client.c
+@@ -477,6 +477,7 @@ static status_t sstp_init_ssl(sstp_client_st *client, sstp_option_st *opt)
+ int retval = SSTP_FAIL;
+ int status = 0;
+
++#if OPENSSL_VERSION_NUMBER < 0x10100000L
+ /* Initialize the OpenSSL library */
+ status = SSL_library_init();
+ if (status != 1)
+@@ -487,6 +488,7 @@ static status_t sstp_init_ssl(sstp_client_st *client, sstp_option_st *opt)
+
+ /* Load all error strings */
+ SSL_load_error_strings();
++#endif
+
+ /* Create a new crypto context */
+ client->ssl_ctx = SSL_CTX_new(SSLv23_client_method());