From daf31b841486b8120a4b1cb66ab3c8d536f7e522 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Sat, 20 Jan 2024 00:02:04 +0000 Subject: [PATCH] Remove function make_safe_ssl() - Replaced by command 'write safe-cnf' Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index b5297649d..f622a8875 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -963,20 +963,6 @@ Temporary session not preserved." exit 1 } # => cleanup() -# Make a copy safe SSL config file -make_safe_ssl() { - - write safe-cnf "$@" - #easyrsa_openssl makesafeconf "$@" - - notice "\ -Safe SSL config file created at: -* $EASYRSA_SAFE_CONF" - - verbose "\ -make_safe_ssl: NEW SSL cnf file: $safe_ssl_cnf_tmp" -} # => make_safe_ssl() - # Escape hazardous characters # Auto-escape hazardous characters: # '&' - Workaround 'sed' behavior @@ -5636,14 +5622,12 @@ write() { [ -d "$write_dir" ] || \ user_error "Missing directory '$write_dir'" write_file="$write_dir"/safessl-easyrsa.cnf - #make_safe_ssl "$write_file" || die "write failed" - set_openssl_easyrsa_cnf_vars expanded create_legacy_stream "$write_type" >"$write_file" || \ die "write failed" else - #make_safe_ssl || die "write failed" create_legacy_stream "$write_type" fi + write_recursion="$(( write_recursion - 1 ))" return ;;