mirror of https://github.com/wolfSSL/wolfssl.git
semi-colon --> colon and use wolfTLSv1_3_server_method when NO_WOLFSSL_CLIENT.
parent
310ab6692a
commit
f77a5e26b5
|
@ -1651,7 +1651,11 @@ static int SetupSupportedGroups(int verbose)
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
|
#ifdef NO_WOLFSSL_CLIENT
|
||||||
|
ctx = wolfSSL_CTX_new(wolfTLSv1_3_server_method());
|
||||||
|
#else
|
||||||
ctx = wolfSSL_CTX_new(wolfTLSv1_3_client_method());
|
ctx = wolfSSL_CTX_new(wolfTLSv1_3_client_method());
|
||||||
|
#endif
|
||||||
if (ctx == NULL) {
|
if (ctx == NULL) {
|
||||||
ret = -1;
|
ret = -1;
|
||||||
}
|
}
|
||||||
|
@ -1670,13 +1674,13 @@ static int SetupSupportedGroups(int verbose)
|
||||||
int uks_ret = wolfSSL_UseKeyShare(ssl, groups[i].group);
|
int uks_ret = wolfSSL_UseKeyShare(ssl, groups[i].group);
|
||||||
if (uks_ret == WOLFSSL_SUCCESS) {
|
if (uks_ret == WOLFSSL_SUCCESS) {
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
printf("Will benchmark the following group; %s\n",
|
printf("Will benchmark the following group: %s\n",
|
||||||
groups[i].name);
|
groups[i].name);
|
||||||
}
|
}
|
||||||
} else if (uks_ret == BAD_FUNC_ARG || uks_ret == NOT_COMPILED_IN) {
|
} else if (uks_ret == BAD_FUNC_ARG || uks_ret == NOT_COMPILED_IN) {
|
||||||
groups[i].group = 0;
|
groups[i].group = 0;
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
printf("Will NOT benchmark the following group; %s\n",
|
printf("Will NOT benchmark the following group: %s\n",
|
||||||
groups[i].name);
|
groups[i].name);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue