Merge "libasteriskssl: do nothing with OpenSSL >= 1.1" into 13

changes/54/4954/1
zuul 8 years ago committed by Gerrit Code Review
commit c5b48fbe77

@ -123,10 +123,13 @@ void ERR_free_strings(void)
/*!
* \internal
* \brief Common OpenSSL initialization for all of Asterisk.
*
* Not needed for OpenSSL versions >= 1.1.0
*/
int ast_ssl_init(void)
{
#ifdef HAVE_OPENSSL
#if defined(HAVE_OPENSSL) && defined(OPENSSL_VERSION_NUMBER) && \
OPENSSL_VERSION_NUMBER < 0x10100000L
unsigned int i;
int (*real_SSL_library_init)(void);
void (*real_CRYPTO_set_id_callback)(unsigned long (*)(void));
@ -191,7 +194,7 @@ int ast_ssl_init(void)
startup_complete = 1;
#endif /* HAVE_OPENSSL */
#endif /* HAVE_OPENSSL and its version < 1.1 */
return 0;
}

@ -412,7 +412,7 @@ static int tcptls_stream_close(void *cookie)
#else
ERR_remove_state(0);
#endif /* openssl == 1.0 */
#endif /* openssl >= 1.1 */
#endif /* openssl < 1.1 */
}
SSL_free(stream->ssl);

Loading…
Cancel
Save