| 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 * ***** BEGIN LICENSE BLOCK ***** | 6 * ***** BEGIN LICENSE BLOCK ***** |
| 7 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 7 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 8 * | 8 * |
| 9 * The contents of this file are subject to the Mozilla Public License Version | 9 * The contents of this file are subject to the Mozilla Public License Version |
| 10 * 1.1 (the "License"); you may not use this file except in compliance with | 10 * 1.1 (the "License"); you may not use this file except in compliance with |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 /* $Id: sslproto.h,v 1.17 2012/03/13 02:39:11 wtc%google.com Exp $ */ | 42 /* $Id: sslproto.h,v 1.17 2012/03/13 02:39:11 wtc%google.com Exp $ */ |
| 43 | 43 |
| 44 #ifndef __sslproto_h_ | 44 #ifndef __sslproto_h_ |
| 45 #define __sslproto_h_ | 45 #define __sslproto_h_ |
| 46 | 46 |
| 47 /* All versions less than 3_0 are treated as SSL version 2 */ | 47 /* All versions less than 3_0 are treated as SSL version 2 */ |
| 48 #define SSL_LIBRARY_VERSION_2 0x0002 | 48 #define SSL_LIBRARY_VERSION_2 0x0002 |
| 49 #define SSL_LIBRARY_VERSION_3_0 0x0300 | 49 #define SSL_LIBRARY_VERSION_3_0 0x0300 |
| 50 #define SSL_LIBRARY_VERSION_TLS_1_0 0x0301 | 50 #define SSL_LIBRARY_VERSION_TLS_1_0 0x0301 |
| 51 #define SSL_LIBRARY_VERSION_TLS_1_1 0x0302 | 51 #define SSL_LIBRARY_VERSION_TLS_1_1 0x0302 |
| 52 /* Note: this is the internal format, not the wire format */ |
| 53 #define SSL_LIBRARY_VERSION_DTLS_1_0 0x0302 |
| 52 | 54 |
| 53 /* deprecated old name */ | 55 /* deprecated old name */ |
| 54 #define SSL_LIBRARY_VERSION_3_1_TLS SSL_LIBRARY_VERSION_TLS_1_0 | 56 #define SSL_LIBRARY_VERSION_3_1_TLS SSL_LIBRARY_VERSION_TLS_1_0 |
| 55 | 57 |
| 58 /* The DTLS version used in the spec */ |
| 59 #define SSL_LIBRARY_VERSION_DTLS_1_0_WIRE ((~0x0100) & 0xffff) |
| 60 |
| 56 /* Header lengths of some of the messages */ | 61 /* Header lengths of some of the messages */ |
| 57 #define SSL_HL_ERROR_HBYTES 3 | 62 #define SSL_HL_ERROR_HBYTES 3 |
| 58 #define SSL_HL_CLIENT_HELLO_HBYTES 9 | 63 #define SSL_HL_CLIENT_HELLO_HBYTES 9 |
| 59 #define SSL_HL_CLIENT_MASTER_KEY_HBYTES 10 | 64 #define SSL_HL_CLIENT_MASTER_KEY_HBYTES 10 |
| 60 #define SSL_HL_CLIENT_FINISHED_HBYTES 1 | 65 #define SSL_HL_CLIENT_FINISHED_HBYTES 1 |
| 61 #define SSL_HL_SERVER_HELLO_HBYTES 11 | 66 #define SSL_HL_SERVER_HELLO_HBYTES 11 |
| 62 #define SSL_HL_SERVER_VERIFY_HBYTES 1 | 67 #define SSL_HL_SERVER_VERIFY_HBYTES 1 |
| 63 #define SSL_HL_SERVER_FINISHED_HBYTES 1 | 68 #define SSL_HL_SERVER_FINISHED_HBYTES 1 |
| 64 #define SSL_HL_REQUEST_CERTIFICATE_HBYTES 2 | 69 #define SSL_HL_REQUEST_CERTIFICATE_HBYTES 2 |
| 65 #define SSL_HL_CLIENT_CERTIFICATE_HBYTES 6 | 70 #define SSL_HL_CLIENT_CERTIFICATE_HBYTES 6 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 231 |
| 227 /* Netscape "experimental" cipher suites. */ | 232 /* Netscape "experimental" cipher suites. */ |
| 228 #define SSL_RSA_OLDFIPS_WITH_3DES_EDE_CBC_SHA 0xffe0 | 233 #define SSL_RSA_OLDFIPS_WITH_3DES_EDE_CBC_SHA 0xffe0 |
| 229 #define SSL_RSA_OLDFIPS_WITH_DES_CBC_SHA 0xffe1 | 234 #define SSL_RSA_OLDFIPS_WITH_DES_CBC_SHA 0xffe1 |
| 230 | 235 |
| 231 /* New non-experimental openly spec'ed versions of those cipher suites. */ | 236 /* New non-experimental openly spec'ed versions of those cipher suites. */ |
| 232 #define SSL_RSA_FIPS_WITH_3DES_EDE_CBC_SHA 0xfeff | 237 #define SSL_RSA_FIPS_WITH_3DES_EDE_CBC_SHA 0xfeff |
| 233 #define SSL_RSA_FIPS_WITH_DES_CBC_SHA 0xfefe | 238 #define SSL_RSA_FIPS_WITH_DES_CBC_SHA 0xfefe |
| 234 | 239 |
| 235 #endif /* __sslproto_h_ */ | 240 #endif /* __sslproto_h_ */ |
| OLD | NEW |