| 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 /* $Id$ */ | 9 /* $Id$ */ |
| 10 | 10 |
| 11 #ifndef __sslproto_h_ | 11 #ifndef __sslproto_h_ |
| 12 #define __sslproto_h_ | 12 #define __sslproto_h_ |
| 13 | 13 |
| 14 /* All versions less than 3_0 are treated as SSL version 2 */ | 14 /* All versions less than 3_0 are treated as SSL version 2 */ |
| 15 #define SSL_LIBRARY_VERSION_2 0x0002 | 15 #define SSL_LIBRARY_VERSION_2 0x0002 |
| 16 #define SSL_LIBRARY_VERSION_3_0 0x0300 | 16 #define SSL_LIBRARY_VERSION_3_0 0x0300 |
| 17 #define SSL_LIBRARY_VERSION_TLS_1_0 0x0301 | 17 #define SSL_LIBRARY_VERSION_TLS_1_0 0x0301 |
| 18 #define SSL_LIBRARY_VERSION_TLS_1_1 0x0302 | 18 #define SSL_LIBRARY_VERSION_TLS_1_1 0x0302 |
| 19 #define SSL_LIBRARY_VERSION_TLS_1_2 0x0303 |
| 19 /* Note: this is the internal format, not the wire format */ | 20 /* Note: this is the internal format, not the wire format */ |
| 20 #define SSL_LIBRARY_VERSION_DTLS_1_0 0x0302 | 21 #define SSL_LIBRARY_VERSION_DTLS_1_0 0x0302 |
| 21 | 22 |
| 22 /* deprecated old name */ | 23 /* deprecated old name */ |
| 23 #define SSL_LIBRARY_VERSION_3_1_TLS SSL_LIBRARY_VERSION_TLS_1_0 | 24 #define SSL_LIBRARY_VERSION_3_1_TLS SSL_LIBRARY_VERSION_TLS_1_0 |
| 24 | 25 |
| 25 /* The DTLS version used in the spec */ | 26 /* The DTLS version used in the spec */ |
| 26 #define SSL_LIBRARY_VERSION_DTLS_1_0_WIRE ((~0x0100) & 0xffff) | 27 #define SSL_LIBRARY_VERSION_DTLS_1_0_WIRE ((~0x0100) & 0xffff) |
| 27 | 28 |
| 28 /* Header lengths of some of the messages */ | 29 /* Header lengths of some of the messages */ |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 #define SSL_RSA_FIPS_WITH_DES_CBC_SHA 0xfefe | 206 #define SSL_RSA_FIPS_WITH_DES_CBC_SHA 0xfefe |
| 206 | 207 |
| 207 /* DTLS-SRTP cipher suites from RFC 5764 */ | 208 /* DTLS-SRTP cipher suites from RFC 5764 */ |
| 208 /* If you modify this, also modify MAX_DTLS_SRTP_CIPHER_SUITES in sslimpl.h */ | 209 /* If you modify this, also modify MAX_DTLS_SRTP_CIPHER_SUITES in sslimpl.h */ |
| 209 #define SRTP_AES128_CM_HMAC_SHA1_80 0x0001 | 210 #define SRTP_AES128_CM_HMAC_SHA1_80 0x0001 |
| 210 #define SRTP_AES128_CM_HMAC_SHA1_32 0x0002 | 211 #define SRTP_AES128_CM_HMAC_SHA1_32 0x0002 |
| 211 #define SRTP_NULL_HMAC_SHA1_80 0x0005 | 212 #define SRTP_NULL_HMAC_SHA1_80 0x0005 |
| 212 #define SRTP_NULL_HMAC_SHA1_32 0x0006 | 213 #define SRTP_NULL_HMAC_SHA1_32 0x0006 |
| 213 | 214 |
| 214 #endif /* __sslproto_h_ */ | 215 #endif /* __sslproto_h_ */ |
| OLD | NEW |