Support psk ciphersuites in benchmarks.

Also fixed some small errors during shutdown in benchmarks.

Tested with:

./configure --enable-psk CFLAGS=-DWOLFSSL_STATIC_PSK
make all check
./examples/benchmark/tls_bench
This commit is contained in:
Anthony Hu
2022-06-08 16:06:24 -04:00
parent 0b78961111
commit 4d4ee3b2db
3 changed files with 27 additions and 7 deletions

View File

@@ -973,11 +973,11 @@ static void client_thread(const void* args)
#endif
}
info->client.ret = ret;
info->client.done = 1;
info->server.done = 1;
osThreadSuspend(info->client.threadId);
if (info->doShutdown)
info->client.done = 1;
info->server.done = 1;
} while (!info->doShutdown);
osThreadTerminate(info->client.threadId);
@@ -1248,11 +1248,11 @@ static void server_thread(const void* args)
#endif
}
info->server.ret = ret;
info->server.done = 1;
info->client.done = 1;
osThreadSuspend(info->server.threadId);
if (info->doShutdown)
info->server.done = 1;
info->client.done = 1;
} while (!info->doShutdown);
osThreadTerminate(info->server.threadId);