OLD | NEW |
1 /* | 1 /* |
2 * SSL v2 handshake functions, and functions common to SSL2 and SSL3. | 2 * SSL v2 handshake functions, and functions common to SSL2 and SSL3. |
3 * | 3 * |
4 * This Source Code Form is subject to the terms of the Mozilla Public | 4 * This Source Code Form is subject to the terms of the Mozilla Public |
5 * License, v. 2.0. If a copy of the MPL was not distributed with this | 5 * License, v. 2.0. If a copy of the MPL was not distributed with this |
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
7 | 7 |
8 #include "nssrenam.h" | 8 #include "nssrenam.h" |
9 #include "cert.h" | 9 #include "cert.h" |
10 #include "secitem.h" | 10 #include "secitem.h" |
11 #include "sechash.h" | 11 #include "sechash.h" |
12 #include "cryptohi.h" /* for SGN_ funcs */ | 12 #include "cryptohi.h" /* for SGN_ funcs */ |
13 #include "keyhi.h" /* for SECKEY_ high level functions. */ | 13 #include "keyhi.h" /* for SECKEY_ high level functions. */ |
14 #include "ssl.h" | 14 #include "ssl.h" |
15 #include "sslimpl.h" | 15 #include "sslimpl.h" |
16 #include "sslproto.h" | 16 #include "sslproto.h" |
17 #include "ssl3prot.h" | 17 #include "ssl3prot.h" |
18 #include "sslerr.h" | 18 #include "sslerr.h" |
19 #include "pk11func.h" | 19 #include "pk11func.h" |
20 #include "prinit.h" | 20 #include "prinit.h" |
21 #include "prtime.h" /* for PR_Now() */ | 21 #include "prtime.h" /* for PR_Now() */ |
22 | 22 |
23 #define XXX | |
24 static PRBool policyWasSet; | 23 static PRBool policyWasSet; |
25 | 24 |
26 /* This ordered list is indexed by (SSL_CK_xx * 3) */ | 25 /* This ordered list is indexed by (SSL_CK_xx * 3) */ |
27 /* Second and third bytes are MSB and LSB of master key length. */ | 26 /* Second and third bytes are MSB and LSB of master key length. */ |
28 static const PRUint8 allCipherSuites[] = { | 27 static const PRUint8 allCipherSuites[] = { |
29 0, 0, 0, | 28 0, 0, 0, |
30 SSL_CK_RC4_128_WITH_MD5, 0x00, 0x80, | 29 SSL_CK_RC4_128_WITH_MD5, 0x00, 0x80, |
31 SSL_CK_RC4_128_EXPORT40_WITH_MD5, 0x00, 0x80, | 30 SSL_CK_RC4_128_EXPORT40_WITH_MD5, 0x00, 0x80, |
32 SSL_CK_RC2_128_CBC_WITH_MD5, 0x00, 0x80, | 31 SSL_CK_RC2_128_CBC_WITH_MD5, 0x00, 0x80, |
33 SSL_CK_RC2_128_CBC_EXPORT40_WITH_MD5, 0x00, 0x80, | 32 SSL_CK_RC2_128_CBC_EXPORT40_WITH_MD5, 0x00, 0x80, |
(...skipping 3653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3687 | 3686 |
3688 c = __nss_ssl_rcsid[0] + __nss_ssl_sccsid[0]; | 3687 c = __nss_ssl_rcsid[0] + __nss_ssl_sccsid[0]; |
3689 return NSS_VersionCheck(importedVersion); | 3688 return NSS_VersionCheck(importedVersion); |
3690 } | 3689 } |
3691 | 3690 |
3692 const char * | 3691 const char * |
3693 NSSSSL_GetVersion(void) | 3692 NSSSSL_GetVersion(void) |
3694 { | 3693 { |
3695 return NSS_VERSION; | 3694 return NSS_VERSION; |
3696 } | 3695 } |
OLD | NEW |