You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
630 B

  1. --- a/src/sstp-client.c
  2. +++ b/src/sstp-client.c
  3. @@ -477,6 +477,7 @@ static status_t sstp_init_ssl(sstp_clien
  4. int retval = SSTP_FAIL;
  5. int status = 0;
  6. +#if OPENSSL_VERSION_NUMBER < 0x10100000L
  7. /* Initialize the OpenSSL library */
  8. status = SSL_library_init();
  9. if (status != 1)
  10. @@ -490,6 +491,9 @@ static status_t sstp_init_ssl(sstp_clien
  11. /* Create a new crypto context */
  12. client->ssl_ctx = SSL_CTX_new(SSLv23_client_method());
  13. +#else
  14. + client->ssl_ctx = SSL_CTX_new(TLS_client_method());
  15. +#endif
  16. if (client->ssl_ctx == NULL)
  17. {
  18. log_err("Could not get SSL crypto context");