@@ -42,11 +42,27 @@ public class HandshakeType
4242 public static final short key_update = 24 ;
4343 public static final short message_hash = 254 ;
4444
45+ /*
46+ * RFC 8870
47+ */
48+ public static final short ekt_key = 26 ;
49+
4550 /*
4651 * RFC 8879
4752 */
4853 public static final short compressed_certificate = 25 ;
4954
55+ /*
56+ * RFC 9147
57+ */
58+ public static final short request_connection_id = 9 ;
59+ public static final short new_connection_id = 10 ;
60+
61+ /*
62+ * RFC 9261
63+ */
64+ public static final short client_certificate_request = 17 ;
65+
5066 public static String getName (short handshakeType )
5167 {
5268 switch (handshakeType )
@@ -91,8 +107,16 @@ public static String getName(short handshakeType)
91107 return "key_update" ;
92108 case message_hash :
93109 return "message_hash" ;
110+ case ekt_key :
111+ return "ekt_key" ;
94112 case compressed_certificate :
95113 return "compressed_certificate" ;
114+ case request_connection_id :
115+ return "request_connection_id" ;
116+ case new_connection_id :
117+ return "new_connection_id" ;
118+ case client_certificate_request :
119+ return "client_certificate_request" ;
96120 default :
97121 return "UNKNOWN" ;
98122 }
@@ -127,7 +151,11 @@ public static boolean isRecognized(short handshakeType)
127151 case encrypted_extensions :
128152 case key_update :
129153 case message_hash :
154+ case ekt_key :
130155 case compressed_certificate :
156+ case request_connection_id :
157+ case new_connection_id :
158+ case client_certificate_request :
131159 return true ;
132160 default :
133161 return false ;
0 commit comments