search for: tls_shutdown

Displaying 2 results from an estimated 2 matches for "tls_shutdown".

Did you mean: ssl_shutdown
2018 May 29
2
[PATCH] Don't use deprecated API with openssl 1.1+
...6bd1aee 100644 --- a/src/tls.c +++ b/src/tls.c @@ -51,8 +51,10 @@ struct tls_tag { void tls_initialize(void) { +#if OPENSSL_VERSION_NUMBER < 0x10100000L SSL_load_error_strings(); /* readable error messages */ SSL_library_init(); /* initialize library */ +#endif } void tls_shutdown(void) { -- 2.16.1
2018 May 29
1
[PATCH v2 1/1] Don't use deprecated API with openssl 1.1+
...e4688c5 100644 --- a/src/tls.c +++ b/src/tls.c @@ -51,8 +51,10 @@ struct tls_tag { void tls_initialize(void) { +#if OPENSSL_VERSION_NUMBER < 0x10100000L SSL_load_error_strings(); /* readable error messages */ SSL_library_init(); /* initialize library */ +#endif } void tls_shutdown(void) { @@ -71,7 +73,11 @@ tls_ctx_t *tls_ctx_new(const char *cert_file, const char *key_file, const char * if (!ctx) return NULL; +#if OPENSSL_VERSION_NUMBER < 0x10100000L method = SSLv23_server_method(); +#else + method = TLS_server_method(); +#endif ctx->ref...