mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
OpenSSL 1.1.0 support
OpenSSL 1.1.0 includes some major changes in the interface. See https://wiki.openssl.org/index.php/1.1_API_Changes . Status: Right now there are still a few deprecation notes with OpenSSL 1.1.0. But it's a start. Changes: * CRYPTO_LOCK is no longer available. Replace it with its value for now. I don't completely understand what it is used for there. * Remove several functions from libasteriskssl that seem to no longer be needed. * Structures have become opaque and are accesses with accessors. * ERR_remove_thread_state() no longer needed. * SSLv2 code now could no longer be used in 1.1. ASTERISK-26109 #close Change-Id: I5e29d477d486ca29b6aae0dc2f5dff960c1cb82b
This commit is contained in:
committed by
Joshua Colp
parent
a33ed3327a
commit
b0c9f07f04
@@ -67,13 +67,14 @@ static void ssl_lock(int mode, int n, const char *file, int line)
|
||||
return;
|
||||
}
|
||||
|
||||
if (mode & CRYPTO_LOCK) {
|
||||
if (mode & 0x1) {
|
||||
ast_mutex_lock(&ssl_locks[n]);
|
||||
} else {
|
||||
ast_mutex_unlock(&ssl_locks[n]);
|
||||
}
|
||||
}
|
||||
|
||||
#if !defined(OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < 0x10100000L
|
||||
int SSL_library_init(void)
|
||||
{
|
||||
#if defined(AST_DEVMODE)
|
||||
@@ -115,6 +116,7 @@ void ERR_free_strings(void)
|
||||
{
|
||||
/* we can't allow this to be called, ever */
|
||||
}
|
||||
#endif /* !defined(OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < 0x10100000L */
|
||||
|
||||
#endif /* HAVE_OPENSSL */
|
||||
|
||||
|
Reference in New Issue
Block a user