git: 09c3a0fdd9a2 - stable/15 - auditdistd: Avoid deprecated OpenSSL APIs

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

URL: https://cgit.FreeBSD.org/src/commit/?id=09c3a0fdd9a2d509421afd74e8ff3ed7b1db80d0

commit 09c3a0fdd9a2d509421afd74e8ff3ed7b1db80d0
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:52 +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) {