Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions examples/client/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@

#include "examples/client/client.h"

/* Note on using port 0: the client and server standalone examples don't
* utilize the port 0 port sharing; that is used by the testsuite which uses
* this code and sets up the correct port numbers when the internal thread,
* using the server code, uses port 0. */

#ifdef WOLFSSL_CALLBACKS
int handShakeCB(HandShakeInfo*);
Expand Down Expand Up @@ -129,10 +133,13 @@ static void ShowCiphers(void)
/* Shows which versions are valid */
static void ShowVersions(void)
{
#ifndef NO_OLD_TLS
#ifdef WOLFSSL_ALLOW_SSLV3
printf("0:");
#endif
printf("1:2:3\n");
#endif /* WOLFSSL_ALLOW_SSLV3 */
printf("1:2:");
#endif /* NO_OLD_TLS */
printf("3\n");
}

int ClientBenchmarkConnections(WOLFSSL_CTX* ctx, char* host, word16 port,
Expand Down
4 changes: 4 additions & 0 deletions examples/server/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@

#include "examples/server/server.h"

/* Note on using port 0: the client and server standalone examples don't
* utilize the port 0 port sharing; that is used by the testsuite which uses
* this code and sets up the correct port numbers when the internal thread,
* using the server code, uses port 0. */

#ifdef CYASSL_CALLBACKS
int srvHandShakeCB(HandShakeInfo*);
Expand Down