| 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 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 923 | 923 |
| 924 CERTCertificate * clientCertificate; /* used by client */ | 924 CERTCertificate * clientCertificate; /* used by client */ |
| 925 SECKEYPrivateKey * clientPrivateKey; /* used by client */ | 925 SECKEYPrivateKey * clientPrivateKey; /* used by client */ |
| 926 /* platformClientKey is present even when NSS_PLATFORM_CLIENT_AUTH is not | 926 /* platformClientKey is present even when NSS_PLATFORM_CLIENT_AUTH is not |
| 927 * defined in order to allow cleaner conditional code. | 927 * defined in order to allow cleaner conditional code. |
| 928 * At most one of clientPrivateKey and platformClientKey may be set. */ | 928 * At most one of clientPrivateKey and platformClientKey may be set. */ |
| 929 PlatformKey platformClientKey; /* used by client */ | 929 PlatformKey platformClientKey; /* used by client */ |
| 930 CERTCertificateList *clientCertChain; /* used by client */ | 930 CERTCertificateList *clientCertChain; /* used by client */ |
| 931 PRBool sendEmptyCert; /* used by client */ | 931 PRBool sendEmptyCert; /* used by client */ |
| 932 | 932 |
| 933 SECKEYPrivateKey *channelID; /* used by client */ |
| 934 SECKEYPublicKey *channelIDPub; /* used by client */ |
| 935 |
| 933 int policy; | 936 int policy; |
| 934 /* This says what cipher suites we can do, and should | 937 /* This says what cipher suites we can do, and should |
| 935 * be either SSL_ALLOWED or SSL_RESTRICTED | 938 * be either SSL_ALLOWED or SSL_RESTRICTED |
| 936 */ | 939 */ |
| 937 PRArenaPool * peerCertArena; | 940 PRArenaPool * peerCertArena; |
| 938 /* These are used to keep track of the peer CA */ | 941 /* These are used to keep track of the peer CA */ |
| 939 void * peerCertChain; | 942 void * peerCertChain; |
| 940 /* chain while we are trying to validate it. */ | 943 /* chain while we are trying to validate it. */ |
| 941 CERTDistNames * ca_list; | 944 CERTDistNames * ca_list; |
| 942 /* used by server. trusted CAs for this socket. */ | 945 /* used by server. trusted CAs for this socket. */ |
| (...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1524 extern void ssl_FreeSocket(struct sslSocketStr *ssl); | 1527 extern void ssl_FreeSocket(struct sslSocketStr *ssl); |
| 1525 extern SECStatus SSL3_SendAlert(sslSocket *ss, SSL3AlertLevel level, | 1528 extern SECStatus SSL3_SendAlert(sslSocket *ss, SSL3AlertLevel level, |
| 1526 SSL3AlertDescription desc); | 1529 SSL3AlertDescription desc); |
| 1527 extern SECStatus ssl3_DecodeError(sslSocket *ss); | 1530 extern SECStatus ssl3_DecodeError(sslSocket *ss); |
| 1528 | 1531 |
| 1529 extern SECStatus ssl3_RestartHandshakeAfterCertReq(sslSocket * ss, | 1532 extern SECStatus ssl3_RestartHandshakeAfterCertReq(sslSocket * ss, |
| 1530 CERTCertificate * cert, | 1533 CERTCertificate * cert, |
| 1531 SECKEYPrivateKey * key, | 1534 SECKEYPrivateKey * key, |
| 1532 CERTCertificateList *certChain); | 1535 CERTCertificateList *certChain); |
| 1533 | 1536 |
| 1537 extern SECStatus ssl3_RestartHandshakeAfterChannelIDReq( |
| 1538 sslSocket *ss, |
| 1539 SECKEYPublicKey *channelIDPub, |
| 1540 SECKEYPrivateKey *channelID); |
| 1541 |
| 1534 extern SECStatus ssl3_AuthCertificateComplete(sslSocket *ss, PRErrorCode error); | 1542 extern SECStatus ssl3_AuthCertificateComplete(sslSocket *ss, PRErrorCode error); |
| 1535 | 1543 |
| 1536 /* | 1544 /* |
| 1537 * for dealing with SSL 3.0 clients sending SSL 2.0 format hellos | 1545 * for dealing with SSL 3.0 clients sending SSL 2.0 format hellos |
| 1538 */ | 1546 */ |
| 1539 extern SECStatus ssl3_HandleV2ClientHello( | 1547 extern SECStatus ssl3_HandleV2ClientHello( |
| 1540 sslSocket *ss, unsigned char *buffer, int length); | 1548 sslSocket *ss, unsigned char *buffer, int length); |
| 1541 extern SECStatus ssl3_StartHandshakeHash( | 1549 extern SECStatus ssl3_StartHandshakeHash( |
| 1542 sslSocket *ss, unsigned char *buf, int length); | 1550 sslSocket *ss, unsigned char *buf, int length); |
| 1543 | 1551 |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1898 #elif defined(_WIN32_WCE) | 1906 #elif defined(_WIN32_WCE) |
| 1899 #define SSL_GETPID GetCurrentProcessId | 1907 #define SSL_GETPID GetCurrentProcessId |
| 1900 #elif defined(WIN32) | 1908 #elif defined(WIN32) |
| 1901 extern int __cdecl _getpid(void); | 1909 extern int __cdecl _getpid(void); |
| 1902 #define SSL_GETPID _getpid | 1910 #define SSL_GETPID _getpid |
| 1903 #else | 1911 #else |
| 1904 #define SSL_GETPID() 0 | 1912 #define SSL_GETPID() 0 |
| 1905 #endif | 1913 #endif |
| 1906 | 1914 |
| 1907 #endif /* __sslimpl_h_ */ | 1915 #endif /* __sslimpl_h_ */ |
| OLD | NEW |