Skip to content

Commit

Permalink
Windows secure_session(): Ensure $secured_session directory is created
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
  • Loading branch information
TinCanTech committed Aug 8, 2024
1 parent f1d4926 commit d99b242
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,10 @@ secure_session() {

# atomic:
if mkdir "$secured_session"; then
# Check mkdir.exe has created the directory
[ -d "$secured_session" ] || \
die "secure_session - mkdir FAILED"

# New session requires safe-ssl conf
unset -v OPENSSL_CONF safe_ssl_cnf_tmp \
working_safe_ssl_conf working_safe_org_conf
Expand Down

0 comments on commit d99b242

Please sign in to comment.