sync
This commit is contained in:
parent
f1b2576417
commit
2a351e0cdc
347 changed files with 9596 additions and 5486 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: ssltest.c,v 1.39 2023/04/15 16:50:05 tb Exp $ */
|
||||
/* $OpenBSD: ssltest.c,v 1.41 2023/07/04 08:47:01 tb Exp $ */
|
||||
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
|
||||
* All rights reserved.
|
||||
*
|
||||
|
@ -254,6 +254,7 @@ cb_server_alpn(SSL *s, const unsigned char **out, unsigned char *outlen,
|
|||
* Make a copy of the selected protocol which will be freed in
|
||||
* verify_alpn.
|
||||
*/
|
||||
free(alpn_selected);
|
||||
if ((alpn_selected = malloc(*outlen)) == NULL) {
|
||||
fprintf(stderr, "malloc failed\n");
|
||||
abort();
|
||||
|
@ -336,7 +337,7 @@ sv_usage(void)
|
|||
fprintf(stderr, " -dhe1024dsa - use 1024 bit key (with 160-bit subprime) for DHE\n");
|
||||
fprintf(stderr, " -no_dhe - disable DHE\n");
|
||||
fprintf(stderr, " -no_ecdhe - disable ECDHE\n");
|
||||
fprintf(stderr, " -dtls1 - use DTLSv1\n");
|
||||
fprintf(stderr, " -dtls1_2 - use DTLSv1.2\n");
|
||||
fprintf(stderr, " -tls1 - use TLSv1\n");
|
||||
fprintf(stderr, " -tls1_2 - use TLSv1.2\n");
|
||||
fprintf(stderr, " -CApath arg - PEM format directory of CA's\n");
|
||||
|
@ -409,7 +410,7 @@ main(int argc, char *argv[])
|
|||
int badop = 0;
|
||||
int bio_pair = 0;
|
||||
int force = 0;
|
||||
int tls1 = 0, tls1_2 = 0, dtls1 = 0, ret = 1;
|
||||
int tls1 = 0, tls1_2 = 0, dtls1_2 = 0, ret = 1;
|
||||
int client_auth = 0;
|
||||
int server_auth = 0, i;
|
||||
char *app_verify_arg = "Test Callback Argument";
|
||||
|
@ -464,8 +465,8 @@ main(int argc, char *argv[])
|
|||
no_dhe = 1;
|
||||
else if (strcmp(*argv, "-no_ecdhe") == 0)
|
||||
no_ecdhe = 1;
|
||||
else if (strcmp(*argv, "-dtls1") == 0)
|
||||
dtls1 = 1;
|
||||
else if (strcmp(*argv, "-dtls1_2") == 0)
|
||||
dtls1_2 = 1;
|
||||
else if (strcmp(*argv, "-tls1") == 0)
|
||||
tls1 = 1;
|
||||
else if (strcmp(*argv, "-tls1_2") == 0)
|
||||
|
@ -565,7 +566,7 @@ bad:
|
|||
goto end;
|
||||
}
|
||||
|
||||
if (!dtls1 && !tls1 && !tls1_2 && number > 1 && !reuse && !force) {
|
||||
if (!dtls1_2 && !tls1 && !tls1_2 && number > 1 && !reuse && !force) {
|
||||
fprintf(stderr,
|
||||
"This case cannot work. Use -f to perform "
|
||||
"the test anyway (and\n-d to see what happens), "
|
||||
|
@ -588,8 +589,8 @@ bad:
|
|||
SSL_library_init();
|
||||
SSL_load_error_strings();
|
||||
|
||||
if (dtls1)
|
||||
meth = DTLSv1_method();
|
||||
if (dtls1_2)
|
||||
meth = DTLSv1_2_method();
|
||||
else if (tls1)
|
||||
meth = TLSv1_method();
|
||||
else if (tls1_2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue