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

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

Issue 6538005: Update the NSS patches. Add snapstart2.patch and peercertchain.patch.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Upload before checkin Created 9 years, 10 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
« no previous file with comments | « net/third_party/nss/patches/snapstart2.patch ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * ***** 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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 const unsigned char *in, 466 const unsigned char *in,
467 int inlen); 467 int inlen);
468 typedef SECStatus (*SSLCompressor)(void * context, 468 typedef SECStatus (*SSLCompressor)(void * context,
469 unsigned char * out, 469 unsigned char * out,
470 int * outlen, 470 int * outlen,
471 int maxout, 471 int maxout,
472 const unsigned char *in, 472 const unsigned char *in,
473 int inlen); 473 int inlen);
474 typedef SECStatus (*SSLDestroy)(void *context, PRBool freeit); 474 typedef SECStatus (*SSLDestroy)(void *context, PRBool freeit);
475 475
476 #ifdef NSS_PLATFORM_CLIENT_AUTH
477 #if defined(XP_WIN32)
478 typedef PCERT_KEY_CONTEXT PlatformKey;
479 #elif defined(XP_MACOSX)
480 typedef SecKeyRef PlatformKey;
481 #else
482 typedef void *PlatformKey;
483 #endif
484 #endif
485
476 486
477 487
478 /* 488 /*
479 ** ssl3State and CipherSpec structs 489 ** ssl3State and CipherSpec structs
480 */ 490 */
481 491
482 /* The SSL bulk cipher definition */ 492 /* The SSL bulk cipher definition */
483 typedef enum { 493 typedef enum {
484 cipher_null, 494 cipher_null,
485 cipher_rc4, 495 cipher_rc4,
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 * our Snap Start attempt, then it will hash the whole ClientHello. Thus we 837 * our Snap Start attempt, then it will hash the whole ClientHello. Thus we
828 * store the original ClientHello that we sent in case we need to reset our 838 * store the original ClientHello that we sent in case we need to reset our
829 * Finished hash to cover it. */ 839 * Finished hash to cover it. */
830 SECItem origClientHello; 840 SECItem origClientHello;
831 #ifdef NSS_ENABLE_ECC 841 #ifdef NSS_ENABLE_ECC
832 PRUint32 negotiatedECCurves; /* bit mask */ 842 PRUint32 negotiatedECCurves; /* bit mask */
833 #endif /* NSS_ENABLE_ECC */ 843 #endif /* NSS_ENABLE_ECC */
834 PRBool nextProtoNego;/* Our peer has sent this extension */ 844 PRBool nextProtoNego;/* Our peer has sent this extension */
835 } SSL3HandshakeState; 845 } SSL3HandshakeState;
836 846
837 #ifdef NSS_PLATFORM_CLIENT_AUTH
838 #if defined(XP_WIN32)
839 typedef PCERT_KEY_CONTEXT PlatformKey;
840 #elif defined(XP_MACOSX)
841 typedef SecKeyRef PlatformKey;
842 #else
843 typedef void *PlatformKey;
844 #endif
845 #endif
846 847
847 848
848 /* 849 /*
849 ** This is the "ssl3" struct, as in "ss->ssl3". 850 ** This is the "ssl3" struct, as in "ss->ssl3".
850 ** note: 851 ** note:
851 ** usually, crSpec == cwSpec and prSpec == pwSpec. 852 ** usually, crSpec == cwSpec and prSpec == pwSpec.
852 ** Sometimes, crSpec == pwSpec and prSpec == cwSpec. 853 ** Sometimes, crSpec == pwSpec and prSpec == cwSpec.
853 ** But there are never more than 2 actual specs. 854 ** But there are never more than 2 actual specs.
854 ** No spec must ever be modified if either "current" pointer points to it. 855 ** No spec must ever be modified if either "current" pointer points to it.
855 */ 856 */
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after
1784 #elif defined(_WIN32_WCE) 1785 #elif defined(_WIN32_WCE)
1785 #define SSL_GETPID GetCurrentProcessId 1786 #define SSL_GETPID GetCurrentProcessId
1786 #elif defined(WIN32) 1787 #elif defined(WIN32)
1787 extern int __cdecl _getpid(void); 1788 extern int __cdecl _getpid(void);
1788 #define SSL_GETPID _getpid 1789 #define SSL_GETPID _getpid
1789 #else 1790 #else
1790 #define SSL_GETPID() 0 1791 #define SSL_GETPID() 0
1791 #endif 1792 #endif
1792 1793
1793 #endif /* __sslimpl_h_ */ 1794 #endif /* __sslimpl_h_ */
OLDNEW
« no previous file with comments | « net/third_party/nss/patches/snapstart2.patch ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698