From 37a976b4bfcaedb6255c1c08f64d42ddd56bbaa3 Mon Sep 17 00:00:00 2001 From: David Garske Date: Thu, 21 Oct 2021 11:41:30 -0700 Subject: [PATCH] Fix example server to support option 7 (which exists). Fix static mem size required with session cert (matches client now). --- examples/server/server.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/server/server.c b/examples/server/server.c index 60c1ab579..a9aee50d4 100644 --- a/examples/server/server.c +++ b/examples/server/server.c @@ -1414,7 +1414,7 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args) #if (defined(HAVE_ECC) && !defined(ALT_ECC_SIZE)) \ || defined(SESSION_CERTS) /* big enough to handle most cases including session certs */ - byte memory[239936]; + byte memory[320000]; #else byte memory[80000]; #endif @@ -1512,11 +1512,11 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args) /* Reinitialize the global myVerifyAction. */ myVerifyAction = VERIFY_OVERRIDE_ERROR; - /* Not Used: h, z, W, X, 7 */ + /* Not Used: h, z, W, X */ while ((ch = mygetopt_long(argc, argv, "?:" "abc:defgijk:l:mop:q:rstu;v:wxy" "A:B:C:D:E:FGH:IJKL:MNO:PQR:S:T;UVYZ:" - "01:23:4:5689" + "01:23:4:567:89" "@#", long_options, 0)) != -1) { switch (ch) { case '?' :