Skip to content

Commit

Permalink
Remove ugly unit-test hack
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
TinCanTech committed Jul 20, 2021
1 parent 030906c commit 939ba15
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions easytls-cryptv2-verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,6 @@ then
md_file_age_sec=$((local_date_sec - md_file_date_sec))
[ ${md_file_age_sec} -gt ${stale_sec} ] && \
"${EASYTLS_RM}" -f "${client_metadata_file}"
[ $SHALLOW ] && "${EASYTLS_RM}" -f "${client_metadata_file}"
fi

# If client_metadata_file still exists then fail the connection
Expand All @@ -977,10 +976,6 @@ then
failure_msg="client_metadata_file age: ${md_file_age_sec} sec"
fail_and_exit "STALE_METADATA_FILE" 101
else
#"${EASYTLS_PRINTF}" '%s %s %s\n' \
# "${tlskey_serial}" "${md_hwadds}" "${md_opt}" > \
# "${client_metadata_file}" || \
# die "Failed to write client_metadata file"
"${EASYTLS_CP}" "${OPENVPN_METADATA_FILE}" "${client_metadata_file}" || \
die "Failed to create client_metadata_file" 89
update_status "Created client_metadata_file"
Expand Down

0 comments on commit 939ba15

Please sign in to comment.