OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Table enumerating all implemented cipher suites | 2 * Table enumerating all implemented cipher suites |
3 * Part of public API. | 3 * Part of public API. |
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 #include "ssl.h" | 9 #include "ssl.h" |
10 #include "sslproto.h" | 10 #include "sslproto.h" |
(...skipping 11 matching lines...) Expand all Loading... | |
22 * | 22 * |
23 * The ordering of cipher suites in this table must match the ordering in | 23 * The ordering of cipher suites in this table must match the ordering in |
24 * the cipherSuites table in ssl3con.c. | 24 * the cipherSuites table in ssl3con.c. |
25 * | 25 * |
26 * If new ECC cipher suites are added, also update the ssl3CipherSuite arrays | 26 * If new ECC cipher suites are added, also update the ssl3CipherSuite arrays |
27 * in ssl3ecc.c. | 27 * in ssl3ecc.c. |
28 * | 28 * |
29 * Finally, update the ssl_V3_SUITES_IMPLEMENTED macro in sslimpl.h. | 29 * Finally, update the ssl_V3_SUITES_IMPLEMENTED macro in sslimpl.h. |
30 */ | 30 */ |
31 const PRUint16 SSL_ImplementedCiphers[] = { | 31 const PRUint16 SSL_ImplementedCiphers[] = { |
32 TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, | |
agl
2013/08/13 12:17:12
Should this be the most preferable cipher? Should
wtc
2013/08/14 01:57:02
Done.
| |
33 TLS_RSA_WITH_AES_128_GCM_SHA256, | |
32 /* 256-bit */ | 34 /* 256-bit */ |
33 #ifdef NSS_ENABLE_ECC | 35 #ifdef NSS_ENABLE_ECC |
36 TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, | |
37 TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, | |
34 TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, | 38 TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, |
35 TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, | 39 TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, |
36 #endif /* NSS_ENABLE_ECC */ | 40 #endif /* NSS_ENABLE_ECC */ |
37 TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA, | 41 TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA, |
38 TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA, | 42 TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA, |
39 TLS_DHE_RSA_WITH_AES_256_CBC_SHA, | 43 TLS_DHE_RSA_WITH_AES_256_CBC_SHA, |
40 TLS_DHE_RSA_WITH_AES_256_CBC_SHA256, | 44 TLS_DHE_RSA_WITH_AES_256_CBC_SHA256, |
41 TLS_DHE_DSS_WITH_AES_256_CBC_SHA, | 45 TLS_DHE_DSS_WITH_AES_256_CBC_SHA, |
42 #ifdef NSS_ENABLE_ECC | 46 #ifdef NSS_ENABLE_ECC |
43 TLS_ECDH_RSA_WITH_AES_256_CBC_SHA, | 47 TLS_ECDH_RSA_WITH_AES_256_CBC_SHA, |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
133 SSL_GetImplementedCiphers(void) | 137 SSL_GetImplementedCiphers(void) |
134 { | 138 { |
135 return SSL_ImplementedCiphers; | 139 return SSL_ImplementedCiphers; |
136 } | 140 } |
137 | 141 |
138 PRUint16 | 142 PRUint16 |
139 SSL_GetNumImplementedCiphers(void) | 143 SSL_GetNumImplementedCiphers(void) |
140 { | 144 { |
141 return SSL_NumImplementedCiphers; | 145 return SSL_NumImplementedCiphers; |
142 } | 146 } |
OLD | NEW |