OLD | NEW |
1 /* | 1 /* |
2 * Various and sundry protocol constants. DON'T CHANGE THESE. These values | 2 * Various and sundry protocol constants. DON'T CHANGE THESE. These values |
3 * are mostly defined by the SSL2, SSL3, or TLS protocol specifications. | 3 * are mostly defined by the SSL2, SSL3, or TLS protocol specifications. |
4 * Cipher kinds and ciphersuites are part of the public API. | 4 * Cipher kinds and ciphersuites are part of the public API. |
5 * | 5 * |
6 * This Source Code Form is subject to the terms of the Mozilla Public | 6 * This Source Code Form is subject to the terms of the Mozilla Public |
7 * License, v. 2.0. If a copy of the MPL was not distributed with this | 7 * License, v. 2.0. If a copy of the MPL was not distributed with this |
8 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 8 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
9 | 9 |
10 #ifndef __sslproto_h_ | 10 #ifndef __sslproto_h_ |
11 #define __sslproto_h_ | 11 #define __sslproto_h_ |
12 | 12 |
| 13 /* clang-format off */ |
| 14 |
13 /* All versions less than 3_0 are treated as SSL version 2 */ | 15 /* All versions less than 3_0 are treated as SSL version 2 */ |
14 #define SSL_LIBRARY_VERSION_2 0x0002 | 16 #define SSL_LIBRARY_VERSION_2 0x0002 |
15 #define SSL_LIBRARY_VERSION_3_0 0x0300 | 17 #define SSL_LIBRARY_VERSION_3_0 0x0300 |
16 #define SSL_LIBRARY_VERSION_TLS_1_0 0x0301 | 18 #define SSL_LIBRARY_VERSION_TLS_1_0 0x0301 |
17 #define SSL_LIBRARY_VERSION_TLS_1_1 0x0302 | 19 #define SSL_LIBRARY_VERSION_TLS_1_1 0x0302 |
18 #define SSL_LIBRARY_VERSION_TLS_1_2 0x0303 | 20 #define SSL_LIBRARY_VERSION_TLS_1_2 0x0303 |
19 #define SSL_LIBRARY_VERSION_TLS_1_3 0x0304 | 21 #define SSL_LIBRARY_VERSION_TLS_1_3 0x0304 |
20 | 22 |
21 /* Note: this is the internal format, not the wire format */ | 23 /* Note: this is the internal format, not the wire format */ |
22 #define SSL_LIBRARY_VERSION_DTLS_1_0 0x0302 | 24 #define SSL_LIBRARY_VERSION_DTLS_1_0 0x0302 |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 #define TLS_ECDH_anon_WITH_AES_256_CBC_SHA 0xC019 | 255 #define TLS_ECDH_anon_WITH_AES_256_CBC_SHA 0xC019 |
254 | 256 |
255 #define TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 0xC023 | 257 #define TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 0xC023 |
256 #define TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 0xC027 | 258 #define TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 0xC027 |
257 | 259 |
258 #define TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 0xC02B | 260 #define TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 0xC02B |
259 #define TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 0xC02D | 261 #define TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 0xC02D |
260 #define TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 0xC02F | 262 #define TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 0xC02F |
261 #define TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256 0xC031 | 263 #define TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256 0xC031 |
262 | 264 |
263 #define TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305» 0xCC13 | 265 #define TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 0xCCA8 |
264 #define TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305» 0xCC14 | 266 #define TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 0xCCA9 |
| 267 #define TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256 0xCCAA |
265 | 268 |
266 /* Netscape "experimental" cipher suites. */ | 269 /* Netscape "experimental" cipher suites. */ |
267 #define SSL_RSA_OLDFIPS_WITH_3DES_EDE_CBC_SHA 0xffe0 | 270 #define SSL_RSA_OLDFIPS_WITH_3DES_EDE_CBC_SHA 0xffe0 |
268 #define SSL_RSA_OLDFIPS_WITH_DES_CBC_SHA 0xffe1 | 271 #define SSL_RSA_OLDFIPS_WITH_DES_CBC_SHA 0xffe1 |
269 | 272 |
270 /* New non-experimental openly spec'ed versions of those cipher suites. */ | 273 /* New non-experimental openly spec'ed versions of those cipher suites. */ |
271 #define SSL_RSA_FIPS_WITH_3DES_EDE_CBC_SHA 0xfeff | 274 #define SSL_RSA_FIPS_WITH_3DES_EDE_CBC_SHA 0xfeff |
272 #define SSL_RSA_FIPS_WITH_DES_CBC_SHA 0xfefe | 275 #define SSL_RSA_FIPS_WITH_DES_CBC_SHA 0xfefe |
273 | 276 |
274 /* DTLS-SRTP cipher suites from RFC 5764 */ | 277 /* DTLS-SRTP cipher suites from RFC 5764 */ |
275 /* If you modify this, also modify MAX_DTLS_SRTP_CIPHER_SUITES in sslimpl.h */ | 278 /* If you modify this, also modify MAX_DTLS_SRTP_CIPHER_SUITES in sslimpl.h */ |
276 #define SRTP_AES128_CM_HMAC_SHA1_80 0x0001 | 279 #define SRTP_AES128_CM_HMAC_SHA1_80 0x0001 |
277 #define SRTP_AES128_CM_HMAC_SHA1_32 0x0002 | 280 #define SRTP_AES128_CM_HMAC_SHA1_32 0x0002 |
278 #define SRTP_NULL_HMAC_SHA1_80 0x0005 | 281 #define SRTP_NULL_HMAC_SHA1_80 0x0005 |
279 #define SRTP_NULL_HMAC_SHA1_32 0x0006 | 282 #define SRTP_NULL_HMAC_SHA1_32 0x0006 |
280 | 283 |
| 284 /* clang-format on */ |
| 285 |
281 #endif /* __sslproto_h_ */ | 286 #endif /* __sslproto_h_ */ |
OLD | NEW |