|
|
@ -508,13 +508,13 @@ int ast_iostream_close(struct ast_iostream *stream)
|
|
|
|
ERR_error_string(sslerr, err), ssl_error_to_string(sslerr, res));
|
|
|
|
ERR_error_string(sslerr, err), ssl_error_to_string(sslerr, res));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000L
|
|
|
|
#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
|
|
|
|
if (!SSL_is_server(stream->ssl)) {
|
|
|
|
if (!SSL_is_server(stream->ssl)) {
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
if (!stream->ssl->server) {
|
|
|
|
if (!stream->ssl->server) {
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
/* For client threads, ensure that the error stack is cleared */
|
|
|
|
/* For client threads, ensure that the error stack is cleared */
|
|
|
|
#if !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
|
|
#if !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
|
|
|
#if OPENSSL_VERSION_NUMBER >= 0x10000000L
|
|
|
|
#if OPENSSL_VERSION_NUMBER >= 0x10000000L
|
|
|
|
ERR_remove_thread_state(NULL);
|
|
|
|
ERR_remove_thread_state(NULL);
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|