This commit is contained in:
Ludovic FLAMENT
2015-10-14 20:53:30 +02:00
parent 10f5154389
commit ee8537fb6d
76 changed files with 6524 additions and 28836 deletions
+5 -5
View File
@@ -135,6 +135,9 @@ static void Usage(void)
printf("-D <file> Diffie-Hellman Params file, default %s\n", dhParam);
printf("-Z <num> Minimum DH key bits, default %d\n",
DEFAULT_MIN_DHKEY_BITS);
#endif
#ifdef HAVE_ALPN
printf("-L <str> Application-Layer Protocole Name ({C,F}:<list>)\n");
#endif
printf("-d Disable client cert check\n");
printf("-b Bind to any interface instead of localhost only\n");
@@ -161,9 +164,6 @@ static void Usage(void)
#ifndef NO_PSK
printf("-I Do not send PSK identity hint\n");
#endif
#ifdef HAVE_ALPN
printf("-L <str> Application-Layer Protocole Name ({C,F}:<list>)\n");
#endif
}
THREAD_RETURN CYASSL_THREAD server_test(void* args)
@@ -704,10 +704,10 @@ while (1) { /* allow resume option */
err = wolfSSL_ALPN_GetProtocol(ssl, &protocol_name, &protocol_nameSz);
if (err == SSL_SUCCESS)
printf("Send ALPN protocol : %s (%d)\n",
printf("Sent ALPN protocol : %s (%d)\n",
protocol_name, protocol_nameSz);
else if (err == SSL_ALPN_NOT_FOUND)
printf("Not send ALPN response (no match with server)\n");
printf("No ALPN response sent (no match)\n");
else
printf("Getting ALPN protocol name failed\n");
}