mirror of
https://github.com/openwrt/packages.git
synced 2025-02-07 06:59:51 +00:00
41fc69e069
Bump sstp-client to 1.0.20 release. This fix compilation error with new PPPd version 2.5.0 as some API changed. Patch automatically refreshed. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
21 lines
630 B
Diff
21 lines
630 B
Diff
--- a/src/sstp-client.c
|
|
+++ b/src/sstp-client.c
|
|
@@ -532,6 +532,7 @@ static status_t sstp_init_ssl(sstp_clien
|
|
int retval = SSTP_FAIL;
|
|
int status = 0;
|
|
|
|
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
/* Initialize the OpenSSL library */
|
|
status = SSL_library_init();
|
|
if (status != 1)
|
|
@@ -561,6 +562,9 @@ static status_t sstp_init_ssl(sstp_clien
|
|
|
|
/* 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");
|