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

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

Issue 142283002: Update net/third_party/nss to NSS_3_15_5_BETA2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix applypatches.sh mistakes Created 6 years, 11 months 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * This file is PRIVATE to SSL and should be the first thing included by 2 * This file is PRIVATE to SSL and should be the first thing included by
3 * any SSL implementation file. 3 * any SSL implementation file.
4 * 4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public 5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this 6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 7 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 8
9 #ifndef __sslimpl_h_ 9 #ifndef __sslimpl_h_
10 #define __sslimpl_h_ 10 #define __sslimpl_h_
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 #define ssl_V3_SUITES_IMPLEMENTED 37 305 #define ssl_V3_SUITES_IMPLEMENTED 37
306 #endif /* NSS_ENABLE_ECC */ 306 #endif /* NSS_ENABLE_ECC */
307 307
308 #define MAX_DTLS_SRTP_CIPHER_SUITES 4 308 #define MAX_DTLS_SRTP_CIPHER_SUITES 4
309 309
310 typedef struct sslOptionsStr { 310 typedef struct sslOptionsStr {
311 /* If SSL_SetNextProtoNego has been called, then this contains the 311 /* If SSL_SetNextProtoNego has been called, then this contains the
312 * list of supported protocols. */ 312 * list of supported protocols. */
313 SECItem nextProtoNego; 313 SECItem nextProtoNego;
314 314
315 unsigned int useSecurity» » : 1; /* 1 */ 315 unsigned int useSecurity» » : 1; /* 1 */
316 unsigned int useSocks» » : 1; /* 2 */ 316 unsigned int useSocks» » : 1; /* 2 */
317 unsigned int requestCertificate» : 1; /* 3 */ 317 unsigned int requestCertificate» : 1; /* 3 */
318 unsigned int requireCertificate» : 2; /* 4-5 */ 318 unsigned int requireCertificate» : 2; /* 4-5 */
319 unsigned int handshakeAsClient» : 1; /* 6 */ 319 unsigned int handshakeAsClient» : 1; /* 6 */
320 unsigned int handshakeAsServer» : 1; /* 7 */ 320 unsigned int handshakeAsServer» : 1; /* 7 */
321 unsigned int enableSSL2» » : 1; /* 8 */ 321 unsigned int enableSSL2» » : 1; /* 8 */
322 unsigned int unusedBit9» » : 1; /* 9 */ 322 unsigned int unusedBit9» » : 1; /* 9 */
323 unsigned int unusedBit10» » : 1; /* 10 */ 323 unsigned int unusedBit10» » : 1; /* 10 */
324 unsigned int noCache» » : 1; /* 11 */ 324 unsigned int noCache» » : 1; /* 11 */
325 unsigned int fdx» » » : 1; /* 12 */ 325 unsigned int fdx» » » : 1; /* 12 */
326 unsigned int v2CompatibleHello» : 1; /* 13 */ 326 unsigned int v2CompatibleHello» : 1; /* 13 */
327 unsigned int detectRollBack » : 1; /* 14 */ 327 unsigned int detectRollBack » : 1; /* 14 */
328 unsigned int noStepDown : 1; /* 15 */ 328 unsigned int noStepDown : 1; /* 15 */
329 unsigned int bypassPKCS11 : 1; /* 16 */ 329 unsigned int bypassPKCS11 : 1; /* 16 */
330 unsigned int noLocks : 1; /* 17 */ 330 unsigned int noLocks : 1; /* 17 */
331 unsigned int enableSessionTickets : 1; /* 18 */ 331 unsigned int enableSessionTickets : 1; /* 18 */
332 unsigned int enableDeflate : 1; /* 19 */ 332 unsigned int enableDeflate : 1; /* 19 */
333 unsigned int enableRenegotiation : 2; /* 20-21 */ 333 unsigned int enableRenegotiation : 2; /* 20-21 */
334 unsigned int requireSafeNegotiation : 1; /* 22 */ 334 unsigned int requireSafeNegotiation : 1; /* 22 */
335 unsigned int enableFalseStart : 1; /* 23 */ 335 unsigned int enableFalseStart : 1; /* 23 */
336 unsigned int cbcRandomIV : 1; /* 24 */ 336 unsigned int cbcRandomIV : 1; /* 24 */
337 unsigned int enableOCSPStapling» : 1; /* 25 */ 337 unsigned int enableOCSPStapling : 1; /* 25 */
338 unsigned int enableSignedCertTimestamps : 1; /* 26 */ 338 unsigned int enableNPN : 1; /* 26 */
339 unsigned int enableFallbackSCSV» : 1; /* 27 */ 339 unsigned int enableALPN : 1; /* 27 */
340 unsigned int enableSignedCertTimestamps : 1; /* 28 */
341 unsigned int enableFallbackSCSV : 1; /* 29 */
340 } sslOptions; 342 } sslOptions;
341 343
342 typedef enum { sslHandshakingUndetermined = 0, 344 typedef enum { sslHandshakingUndetermined = 0,
343 sslHandshakingAsClient, 345 sslHandshakingAsClient,
344 sslHandshakingAsServer 346 sslHandshakingAsServer
345 } sslHandshakingType; 347 } sslHandshakingType;
346 348
347 typedef struct sslServerCertsStr { 349 typedef struct sslServerCertsStr {
348 /* Configuration state for server sockets */ 350 /* Configuration state for server sockets */
349 CERTCertificate * serverCert; 351 CERTCertificate * serverCert;
(...skipping 1676 matching lines...) Expand 10 before | Expand all | Expand 10 after
2026 #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS) 2028 #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS)
2027 #define SSL_GETPID getpid 2029 #define SSL_GETPID getpid
2028 #elif defined(WIN32) 2030 #elif defined(WIN32)
2029 extern int __cdecl _getpid(void); 2031 extern int __cdecl _getpid(void);
2030 #define SSL_GETPID _getpid 2032 #define SSL_GETPID _getpid
2031 #else 2033 #else
2032 #define SSL_GETPID() 0 2034 #define SSL_GETPID() 0
2033 #endif 2035 #endif
2034 2036
2035 #endif /* __sslimpl_h_ */ 2037 #endif /* __sslimpl_h_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698