Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(583)

Side by Side Diff: net/third_party/nss/ssl/ssl3prot.h

Issue 415005: Linux: add next-protocol-negotiation to libssl. (Closed)
Patch Set: Addressing wtc's comments. Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* Private header file of libSSL. 1 /* Private header file of libSSL.
2 * Various and sundry protocol constants. DON'T CHANGE THESE. These 2 * Various and sundry protocol constants. DON'T CHANGE THESE. These
3 * values are defined by the SSL 3.0 protocol specification. 3 * values are defined by the SSL 3.0 protocol specification.
4 * 4 *
5 * ***** BEGIN LICENSE BLOCK ***** 5 * ***** BEGIN LICENSE BLOCK *****
6 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 6 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
7 * 7 *
8 * The contents of this file are subject to the Mozilla Public License Version 8 * The contents of this file are subject to the Mozilla Public License Version
9 * 1.1 (the "License"); you may not use this file except in compliance with 9 * 1.1 (the "License"); you may not use this file except in compliance with
10 * the License. You may obtain a copy of the License at 10 * the License. You may obtain a copy of the License at
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 hello_request = 0, 150 hello_request = 0,
151 client_hello = 1, 151 client_hello = 1,
152 server_hello = 2, 152 server_hello = 2,
153 new_session_ticket = 4, 153 new_session_ticket = 4,
154 certificate = 11, 154 certificate = 11,
155 server_key_exchange = 12, 155 server_key_exchange = 12,
156 certificate_request = 13, 156 certificate_request = 13,
157 server_hello_done = 14, 157 server_hello_done = 14,
158 certificate_verify = 15, 158 certificate_verify = 15,
159 client_key_exchange = 16, 159 client_key_exchange = 16,
160 finished» » = 20 160 finished» » = 20,
161 next_proto» » = 67
161 } SSL3HandshakeType; 162 } SSL3HandshakeType;
162 163
163 typedef struct { 164 typedef struct {
164 uint8 empty; 165 uint8 empty;
165 } SSL3HelloRequest; 166 } SSL3HelloRequest;
166 167
167 typedef struct { 168 typedef struct {
168 SSL3Opaque rand[SSL3_RANDOM_LENGTH]; 169 SSL3Opaque rand[SSL3_RANDOM_LENGTH];
169 } SSL3Random; 170 } SSL3Random;
170 171
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 } EncryptedSessionTicket; 345 } EncryptedSessionTicket;
345 346
346 /* Supported extensions. */ 347 /* Supported extensions. */
347 /* Update MAX_EXTENSIONS whenever a new extension type is added. */ 348 /* Update MAX_EXTENSIONS whenever a new extension type is added. */
348 typedef enum { 349 typedef enum {
349 server_name_xtn = 0, 350 server_name_xtn = 0,
350 #ifdef NSS_ENABLE_ECC 351 #ifdef NSS_ENABLE_ECC
351 elliptic_curves_xtn = 10, 352 elliptic_curves_xtn = 10,
352 ec_point_formats_xtn = 11, 353 ec_point_formats_xtn = 11,
353 #endif 354 #endif
354 session_ticket_xtn = 35 355 session_ticket_xtn = 35,
356 next_proto_neg_xtn = 13172
355 } ExtensionType; 357 } ExtensionType;
356 358
357 #define MAX_EXTENSIONS 4 359 #define MAX_EXTENSIONS 5
358 360
359 #define TLS_EX_SESS_TICKET_MAC_LENGTH 32 361 #define TLS_EX_SESS_TICKET_MAC_LENGTH 32
360 362
361 #endif /* __ssl3proto_h_ */ 363 #endif /* __ssl3proto_h_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698