Skip to content

Commit 062c5c4

Browse files
committed
Peer review cleanups. Not touching any of the license header issues.
1 parent 738bf12 commit 062c5c4

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

examples/ets_test/ets_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ typedef struct WorkThreadCtx {
5757
/* for error response in errorMode, 0 on success */
5858
static int DoErrorMode(void)
5959
{
60-
/* TODO: Add error case */
60+
/* TODO: Add code to test expected error cases */
6161

6262
return 0;
6363
}

examples/https/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
These examples demonstrate a basic HTTPS server and client for testing the ETS middle-box decryption with the wolf Key Manager tool.
44

5-
## TlS Server
5+
## TLS Server
66

77
Usage: `./examples/https/server`
88

examples/https/server.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ int https_server_test(int argc, char** argv)
131131
if (useKeyMgr) {
132132
ret = ets_client_get_all(etsServer, ets_key_cb, ctx);
133133
if (ret != 0) {
134-
printf("\nFailure connecting to key manager\n");
135-
printf("Make sure ./src/wolfkeymgr is running\n");
134+
fprintf(stderr, "\nFailure connecting to key manager\n");
135+
fprintf(stderr, "Make sure ./src/wolfkeymgr is running\n");
136136
mStop = 1;
137137
goto end_sess;
138138
}

src/mod_tls.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,9 @@ static int wolfTlsInitSslDefaults(WOLFSSL_CTX* ctx, WOLFSSL** ssl)
234234
wolfSSL_SetIOWriteCtx(tssl, cbCtx);
235235

236236
#if 0
237-
/* example for forcing a key share type (see ssl.h Named Groups enum) */
238-
wolfSSL_UseKeyShare(tssl, WOLFSSL_ECC_X448);
237+
/* Example for forcing a key share type (see ssl.h Named Groups enum).
238+
* WOLFSSL_FFDHE_2048, WOLFSSL_ECC_X25519, WOLFSSL_ECC_X448, etc... */
239+
wolfSSL_UseKeyShare(tssl, WOLFSSL_ECC_SECP256R1);
239240
#endif
240241

241242
*ssl = tssl;

0 commit comments

Comments
 (0)