mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
dma: use OpenSSL 1.1 init API
> The SSL_library_init() and OpenSSL_add_ssl_algorithms() functions were > deprecated in OpenSSL 1.1.0 by OPENSSL_init_ssl(). and > The ERR_load_crypto_strings(), SSL_load_error_strings(), and > ERR_free_strings() functions were deprecated in OpenSSL 1.1.0 by > OPENSSL_init_crypto() and OPENSSL_init_ssl() and should not be used. Reviewed by: ngie Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D40065
This commit is contained in:
parent
910a834383
commit
692b19255c
|
@ -115,8 +115,7 @@ smtp_init_crypto(int fd, int feature, struct smtp_features* features)
|
||||||
|
|
||||||
/* XXX clean up on error/close */
|
/* XXX clean up on error/close */
|
||||||
/* Init SSL library */
|
/* Init SSL library */
|
||||||
SSL_library_init();
|
OPENSSL_init_ssl(0, NULL);
|
||||||
SSL_load_error_strings();
|
|
||||||
|
|
||||||
// Allow any possible version
|
// Allow any possible version
|
||||||
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
|
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
|
||||||
|
|
Loading…
Reference in a new issue