update example client ShowVersions() to not show disabled old-tls versions

This commit is contained in:
John Safranek 2015-12-23 12:12:41 -08:00
parent 558d2566cc
commit d17549f848
1 changed files with 5 additions and 2 deletions

View File

@ -129,10 +129,13 @@ static void ShowCiphers(void)
/* Shows which versions are valid */ /* Shows which versions are valid */
static void ShowVersions(void) static void ShowVersions(void)
{ {
#ifndef NO_OLD_TLS
#ifdef WOLFSSL_ALLOW_SSLV3 #ifdef WOLFSSL_ALLOW_SSLV3
printf("0:"); printf("0:");
#endif #endif /* WOLFSSL_ALLOW_SSLV3 */
printf("1:2:3\n"); printf("1:2:");
#endif /* NO_OLD_TLS */
printf("3\n");
} }
int ClientBenchmarkConnections(WOLFSSL_CTX* ctx, char* host, word16 port, int ClientBenchmarkConnections(WOLFSSL_CTX* ctx, char* host, word16 port,