git: cb3d3e5bb0c6 - main - openssl: configure with --openssldir=/etc/ssl

From: Gordon Tetlow <gordon_at_FreeBSD.org>
Date: Thu, 08 Oct 2026 18:29:33 UTC
The branch main has been updated by gordon:

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

commit cb3d3e5bb0c6bbb1f6ef3efe67e7a6e71bc20f0b
Author:     Gordon Tetlow <gordon@FreeBSD.org>
AuthorDate: 2026-10-08 18:27:59 +0000
Commit:     Gordon Tetlow <gordon@FreeBSD.org>
CommitDate: 2026-10-08 18:27:59 +0000

    openssl: configure with --openssldir=/etc/ssl
    
    BSDmakefile passed --openssldir=etc.  A relative openssldir is taken
    relative to the prefix, so the generated files described /usr/etc.
    FreeBSD has always used /etc/ssl (OPENSSLDIR in
    secure/lib/libcrypto/Makefile.common), so configure with that.
    
    Regenerate tools/c_rehash, the only committed generated file that
    depends on openssldir.  It is not installed.  No compiled code changes.
    
    Reviewed by:    ngie, markj
    MFC after:      2 weeks
    Differential Revision:  https://reviews.freebsd.org/D60396
---
 crypto/openssl/BSDmakefile    | 2 +-
 crypto/openssl/tools/c_rehash | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/crypto/openssl/BSDmakefile b/crypto/openssl/BSDmakefile
index a45dc2b532f3..8da6b846cc86 100644
--- a/crypto/openssl/BSDmakefile
+++ b/crypto/openssl/BSDmakefile
@@ -46,7 +46,7 @@ configure:
 	    enable-ec_nistp_64_gcc_128 \
 	    enable-ktls \
 	    enable-sctp \
-	    --openssldir=etc \
+	    --openssldir=/etc/ssl \
 	    --prefix=/usr)
 
 all: patch
diff --git a/crypto/openssl/tools/c_rehash b/crypto/openssl/tools/c_rehash
index 8083217683c4..f442ddbe096a 100755
--- a/crypto/openssl/tools/c_rehash
+++ b/crypto/openssl/tools/c_rehash
@@ -12,7 +12,7 @@
 # Perl c_rehash script, scan all files in a directory
 # and add symbolic links to their hash values.
 
-my $dir = "etc";
+my $dir = "/etc/ssl";
 my $prefix = "/usr";
 
 my $errorcount = 0;