Skip to content

Commit

Permalink
Set $ssl_cnf_type during verify_ssl_lib()
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Jun 5, 2024
1 parent b18fe38 commit 0149387
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -1259,9 +1259,11 @@ verify_ssl_lib() {
case "${val%% *}" in
OpenSSL)
ssl_lib=openssl
ssl_cnf_type=ssl-cnf
;;
LibreSSL)
ssl_lib=libressl
ssl_cnf_type=safe-cnf
;;
*)
error_msg="$("$EASYRSA_OPENSSL" version 2>&1)"
Expand Down Expand Up @@ -4550,11 +4552,6 @@ f97425686fa1976d436fa31f550641aa"
easyrsa_mktemp ssl_cnf_tmp || die "\
write_easyrsa_ssl_cnf_tmp - easyrsa_mktemp"

# Choose SSL Conf type:
# OpenSSL=Unexpended, LibreSSL=Expanded (Safe)
ssl_cnf_type=ssl-cnf
[ "$ssl_lib" = openssl ] || ssl_cnf_type=safe-cnf

# Write SSL cnf to temp-file
write "$ssl_cnf_type" > "$ssl_cnf_tmp" || die "\
write_easyrsa_ssl_cnf_tmp - write $ssl_cnf_type: $ssl_cnf_tmp"
Expand Down

0 comments on commit 0149387

Please sign in to comment.