mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-24 07:32:44 +00:00
Don't use SSL_load_error_strings() and friends for OpenSSL-1.1.0.
This commit is contained in:
@@ -169,11 +169,20 @@
|
|||||||
|
|
||||||
if (err)
|
if (err)
|
||||||
{
|
{
|
||||||
ERR_load_crypto_strings();
|
#ifdef HAVE_GNUTLS
|
||||||
|
ERR_load_crypto_strings();
|
||||||
SSL_load_error_strings();
|
SSL_load_error_strings();
|
||||||
sslError = ERR_reason_error_string(err);
|
sslError = ERR_reason_error_string(err);
|
||||||
validationMessage = [[self labelForKey: [NSString stringWithUTF8String: sslError ? sslError : "(no error information available)"]] retain];
|
validationMessage = [[self labelForKey: [NSString stringWithUTF8String: sslError ? sslError : "(no error information available)"]] retain];
|
||||||
}
|
#elseif OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||||
|
ERR_load_crypto_strings();
|
||||||
|
SSL_load_error_strings();
|
||||||
|
sslError = ERR_reason_error_string(err);
|
||||||
|
validationMessage = [[self labelForKey: [NSString stringWithUTF8String: sslError ? sslError]] retain];
|
||||||
|
#else
|
||||||
|
validationMessage = [[self labelForKey: [NSString stringWithUTF8String: sslError ? sslError]] retain];
|
||||||
|
#endif /* HAVE_GNUTLS */
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user