Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 824 TLSSnapStartType snapStartType; | 834 TLSSnapStartType snapStartType; |
| 825 /* When we perform a Snap Start handshake, we hash our ClientHello as if | 835 /* When we perform a Snap Start handshake, we hash our ClientHello as if |
| 826 * the Snap Start extension wasn't included. However, if the server rejects | 836 * the Snap Start extension wasn't included. However, if the server rejects |
| 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 */ |
|
wtc
2011/02/17 00:04:29
Note that this line comes from nextproto.patch, wh
| |
| 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 Loading... | |
| 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_ */ |
| OLD | NEW |