aboutsummaryrefslogtreecommitdiff
path: root/net/sstp-client/patches/200-openssl-deprecated.patch
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2019-12-04 10:23:51 -0800
committerRosen Penev <rosenp@gmail.com>2019-12-04 10:23:51 -0800
commitb3f52f80adbd8cf445e0e3b12ff6c392c7b19833 (patch)
treec4c0aabbf6c4dfe5eff64ef1fd4c60d02fc45749 /net/sstp-client/patches/200-openssl-deprecated.patch
parent936a52610aba91ac674d34b4d55bd4e0b2c6ca5d (diff)
sstp-client: Update to 1.0.13
Edited deprecated OpenSSL patch slightly. Fixed up license information. Reorganized Makefile for consistency between packages. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'net/sstp-client/patches/200-openssl-deprecated.patch')
-rw-r--r--net/sstp-client/patches/200-openssl-deprecated.patch12
1 files changed, 7 insertions, 5 deletions
diff --git a/net/sstp-client/patches/200-openssl-deprecated.patch b/net/sstp-client/patches/200-openssl-deprecated.patch
index 3c14c6c45..9772c511f 100644
--- a/net/sstp-client/patches/200-openssl-deprecated.patch
+++ b/net/sstp-client/patches/200-openssl-deprecated.patch
@@ -8,11 +8,13 @@
/* 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
+@@ -490,6 +491,9 @@ static status_t sstp_init_ssl(sstp_client_st *client, sstp_option_st *opt)
/* Create a new crypto context */
client->ssl_ctx = SSL_CTX_new(SSLv23_client_method());
++#else
++ client->ssl_ctx = SSL_CTX_new(TLS_client_method());
++#endif
+ if (client->ssl_ctx == NULL)
+ {
+ log_err("Could not get SSL crypto context");