aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2016-11-07 15:27:36 +0100
committerKamil Dudka <kdudka@redhat.com>2016-11-07 15:40:32 +0100
commit5e6c04f913c4ad44cf54df498899ccd81bd8f3f9 (patch)
treee1c1f5161d97a29c1b59601e4229f48af97418ba
parent9e8b0a283f52e6160626a7ad9f366fe62cc40b06 (diff)
nss: silence warning 'SSL_NEXT_PROTO_EARLY_VALUE not handled in switch'
... with nss-3.26.0 and newer Reported-by: Daniel Stenberg
-rw-r--r--lib/vtls/nss.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/vtls/nss.c b/lib/vtls/nss.c
index 5e5272727..9a3d3df5d 100644
--- a/lib/vtls/nss.c
+++ b/lib/vtls/nss.c
@@ -734,6 +734,11 @@ static void HandshakeCallback(PRFileDesc *sock, void *arg)
if(SSL_GetNextProto(sock, &state, buf, &buflen, buflenmax) == SECSuccess) {
switch(state) {
+#if NSSVERNUM >= 0x031a00 /* 3.26.0 */
+ /* used by NSS internally to implement 0-RTT */
+ case SSL_NEXT_PROTO_EARLY_VALUE:
+ /* fall through! */
+#endif
case SSL_NEXT_PROTO_NO_SUPPORT:
case SSL_NEXT_PROTO_NO_OVERLAP:
infof(conn->data, "ALPN/NPN, server did not agree to a protocol\n");