Skip to content

Commit 939ba15

Browse files
committed
Remove ugly unit-test hack
Tesing easytls-cryptv2-verify.sh required that temporary files be deleted, which the unit-test script now removes. Signed-off-by: Richard T Bonhomme <[email protected]>
1 parent 030906c commit 939ba15

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

easytls-cryptv2-verify.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,6 @@ then
967967
md_file_age_sec=$((local_date_sec - md_file_date_sec))
968968
[ ${md_file_age_sec} -gt ${stale_sec} ] && \
969969
"${EASYTLS_RM}" -f "${client_metadata_file}"
970-
[ $SHALLOW ] && "${EASYTLS_RM}" -f "${client_metadata_file}"
971970
fi
972971

973972
# If client_metadata_file still exists then fail the connection
@@ -977,10 +976,6 @@ then
977976
failure_msg="client_metadata_file age: ${md_file_age_sec} sec"
978977
fail_and_exit "STALE_METADATA_FILE" 101
979978
else
980-
#"${EASYTLS_PRINTF}" '%s %s %s\n' \
981-
# "${tlskey_serial}" "${md_hwadds}" "${md_opt}" > \
982-
# "${client_metadata_file}" || \
983-
# die "Failed to write client_metadata file"
984979
"${EASYTLS_CP}" "${OPENVPN_METADATA_FILE}" "${client_metadata_file}" || \
985980
die "Failed to create client_metadata_file" 89
986981
update_status "Created client_metadata_file"

0 commit comments

Comments
 (0)