packages/net/sstp-client/patches/200-openssl-deprecated.patch
Koen Vandeputte e9f06083ce sstp-client: bump to 1.0.19
After 1.0.18, this project moved from SourceForge to gitlab

Also, since 1.0.19, the configure script is not present
by default anymore, so we need to add autoreconf to generate it

Release notes:
https://gitlab.com/sstp-project/sstp-client/-/releases

Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
2023-11-10 09:54:37 -08:00

20 lines
630 B
Diff

--- a/src/sstp-client.c
+++ b/src/sstp-client.c
@@ -546,6 +546,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)
@@ -575,6 +576,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");