Bug 1388617 - Print key_update and certificate_status messages, r=ttaubert NSS_TLS13_DRAFT19_BRANCH
authorMartin Thomson <martin.thomson@gmail.com>
Wed, 09 Aug 2017 14:30:15 +1000
branchNSS_TLS13_DRAFT19_BRANCH
changeset 13516 f8e20a7a01b8b709f10e19660c20d2dab601e28a
parent 13506 867ef08a8ad7e2b590b008e65fe4ea78191d6224
child 13517 383a7d533d0357624b29f454b2b4dbc18c698f58
push id2312
push usermartin.thomson@gmail.com
push dateWed, 09 Aug 2017 07:14:02 +0000
reviewersttaubert
bugs1388617
Bug 1388617 - Print key_update and certificate_status messages, r=ttaubert
lib/ssl/ssl3con.c
lib/ssl/sslt.h
--- a/lib/ssl/ssl3con.c
+++ b/lib/ssl/ssl3con.c
@@ -593,16 +593,22 @@ ssl3_DecodeHandshakeType(int msgType)
             rv = "certificate_verify  (15)";
             break;
         case ssl_hs_client_key_exchange:
             rv = "client_key_exchange (16)";
             break;
         case ssl_hs_finished:
             rv = "finished     (20)";
             break;
+        case ssl_hs_certificate_status:
+            rv = "certificate_status  (22)";
+            break;
+        case ssl_hs_key_update:
+            rv = "key_update   (24)";
+            break;
         default:
             sprintf(line, "*UNKNOWN* handshake type! (%d)", msgType);
             rv = line;
     }
     return rv;
 }
 
 static char *
--- a/lib/ssl/sslt.h
+++ b/lib/ssl/sslt.h
@@ -25,16 +25,17 @@ typedef enum {
     ssl_hs_certificate = 11,
     ssl_hs_server_key_exchange = 12,
     ssl_hs_certificate_request = 13,
     ssl_hs_server_hello_done = 14,
     ssl_hs_certificate_verify = 15,
     ssl_hs_client_key_exchange = 16,
     ssl_hs_finished = 20,
     ssl_hs_certificate_status = 22,
+    ssl_hs_key_update = 24,
     ssl_hs_next_proto = 67,
     ssl_hs_message_hash = 254, /* Not a real message. */
 } SSLHandshakeType;
 
 typedef struct SSL3StatisticsStr {
     /* statistics from ssl3_SendClientHello (sch) */
     long sch_sid_cache_hits;
     long sch_sid_cache_misses;