git: 67c258c548d4 - stable/14 - auditdistd: Avoid deprecated OpenSSL APIs

From: Dag-Erling Smørgrav <des_at_FreeBSD.org>
Date: Thu, 05 Nov 2026 15:12:41 UTC
The branch stable/14 has been updated by des:

URL: https://cgit.FreeBSD.org/src/commit/?id=67c258c548d4ea2f6609a70a805e49e736c1b09e

commit 67c258c548d4ea2f6609a70a805e49e736c1b09e
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-10-22 15:12:57 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-11-05 15:11:58 +0000

    auditdistd: Avoid deprecated OpenSSL APIs
    
    SSL_use_RSAPrivateKey_file() was deprecated in OpenSSL 3.0.  Use the
    more generic SSL_use_PrivateKey_file() instead.
    
    Sponsored by:   Klara, Inc.
    Sponsored by:   Qualys, Inc.
    Reviewed by:    emaste
    Differential Revision:  https://reviews.freebsd.org/D60899
    
    (cherry picked from commit 8133230d7e944d12108f89a15d6f4e468764dff9)
---
 contrib/openbsm/bin/auditdistd/proto_tls.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/openbsm/bin/auditdistd/proto_tls.c b/contrib/openbsm/bin/auditdistd/proto_tls.c
index fe7c85df24ae..70669ac10a64 100644
--- a/contrib/openbsm/bin/auditdistd/proto_tls.c
+++ b/contrib/openbsm/bin/auditdistd/proto_tls.c
@@ -680,10 +680,10 @@ tls_exec_server(const char *user, int startfd, const char *privkey,
 	if (ssl == NULL)
 		pjdlog_exitx(EX_TEMPFAIL, "SSL_new() failed.");
 
-	if (SSL_use_RSAPrivateKey_file(ssl, privkey, SSL_FILETYPE_PEM) != 1) {
+	if (SSL_use_PrivateKey_file(ssl, privkey, SSL_FILETYPE_PEM) != 1) {
 		ssl_log_errors();
 		pjdlog_exitx(EX_CONFIG,
-		    "SSL_use_RSAPrivateKey_file(%s) failed.", privkey);
+		    "SSL_use_PrivateKey_file(%s) failed.", privkey);
 	}
 
 	if (SSL_use_certificate_file(ssl, cert, SSL_FILETYPE_PEM) != 1) {