git: 692b19255c5d - main - dma: use OpenSSL 1.1 init API
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 11 May 2023 23:03:54 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=692b19255c5d53a5f42ea49ad569284316315577
commit 692b19255c5d53a5f42ea49ad569284316315577
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2023-05-11 14:44:05 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-05-11 23:03:34 +0000
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
---
contrib/dma/crypto.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/contrib/dma/crypto.c b/contrib/dma/crypto.c
index 368238b9d632..c87d23e66a7c 100644
--- a/contrib/dma/crypto.c
+++ b/contrib/dma/crypto.c
@@ -115,8 +115,7 @@ smtp_init_crypto(int fd, int feature, struct smtp_features* features)
/* XXX clean up on error/close */
/* Init SSL library */
- SSL_library_init();
- SSL_load_error_strings();
+ OPENSSL_init_ssl(0, NULL);
// Allow any possible version
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)