Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! Refactor code and fix a couple of missing…
Browse files Browse the repository at this point in the history
… DTLSv1.3 checks.
  • Loading branch information
fwh-dc committed May 17, 2024
1 parent 1b8ef7e commit d7a44f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/s_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,9 @@ int s_client_main(int argc, char **argv)
char *ctlog_file = NULL;
int ct_validation = 0;
#endif
#ifndef OPENSSL_NO_NEXTPROTONEG
int version1_3;
#endif
int min_version = 0, max_version = 0, prot_opt = 0, no_prot_opt = 0;
int async = 0;
unsigned int max_send_fragment = 0;
Expand Down Expand Up @@ -1592,7 +1594,9 @@ int s_client_main(int argc, char **argv)
}
}

#ifndef OPENSSL_NO_NEXTPROTONEG
version1_3 = isdtls ? DTLS1_3_VERSION : TLS1_3_VERSION;
#endif

/* Optional argument is connect string if -connect not used. */
if (opt_num_rest() == 1) {
Expand Down

0 comments on commit d7a44f4

Please sign in to comment.