]> granicus.if.org Git - curl/commitdiff
nss: silence warning 'SSL_NEXT_PROTO_EARLY_VALUE not handled in switch'
authorKamil Dudka <kdudka@redhat.com>
Mon, 7 Nov 2016 14:27:36 +0000 (15:27 +0100)
committerKamil Dudka <kdudka@redhat.com>
Mon, 7 Nov 2016 14:40:32 +0000 (15:40 +0100)
... with nss-3.26.0 and newer

Reported-by: Daniel Stenberg
lib/vtls/nss.c

index 5e52727276ce0581f9c61d46ab9c755e5e08c31b..9a3d3df5dbd284a734a1da5d12e8befd705cbd0a 100644 (file)
@@ -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");