| 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 21 matching lines...) Expand all Loading... |
| 32 * in which case the provisions of the GPL or the LGPL are applicable instead | 32 * in which case the provisions of the GPL or the LGPL are applicable instead |
| 33 * of those above. If you wish to allow use of your version of this file only | 33 * of those above. If you wish to allow use of your version of this file only |
| 34 * under the terms of either the GPL or the LGPL, and not to allow others to | 34 * under the terms of either the GPL or the LGPL, and not to allow others to |
| 35 * use your version of this file under the terms of the MPL, indicate your | 35 * use your version of this file under the terms of the MPL, indicate your |
| 36 * decision by deleting the provisions above and replace them with the notice | 36 * decision by deleting the provisions above and replace them with the notice |
| 37 * and other provisions required by the GPL or the LGPL. If you do not delete | 37 * and other provisions required by the GPL or the LGPL. If you do not delete |
| 38 * the provisions above, a recipient may use your version of this file under | 38 * the provisions above, a recipient may use your version of this file under |
| 39 * the terms of any one of the MPL, the GPL or the LGPL. | 39 * the terms of any one of the MPL, the GPL or the LGPL. |
| 40 * | 40 * |
| 41 * ***** END LICENSE BLOCK ***** */ | 41 * ***** END LICENSE BLOCK ***** */ |
| 42 /* $Id: sslproto.h,v 1.15 2010/02/16 18:56:48 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_3_1_TLS» » 0x0301 | 50 #define SSL_LIBRARY_VERSION_TLS_1_0» » 0x0301 |
| 51 #define SSL_LIBRARY_VERSION_TLS_1_1» » 0x0302 |
| 52 |
| 53 /* deprecated old name */ |
| 54 #define SSL_LIBRARY_VERSION_3_1_TLS SSL_LIBRARY_VERSION_TLS_1_0 |
| 51 | 55 |
| 52 /* Header lengths of some of the messages */ | 56 /* Header lengths of some of the messages */ |
| 53 #define SSL_HL_ERROR_HBYTES 3 | 57 #define SSL_HL_ERROR_HBYTES 3 |
| 54 #define SSL_HL_CLIENT_HELLO_HBYTES 9 | 58 #define SSL_HL_CLIENT_HELLO_HBYTES 9 |
| 55 #define SSL_HL_CLIENT_MASTER_KEY_HBYTES 10 | 59 #define SSL_HL_CLIENT_MASTER_KEY_HBYTES 10 |
| 56 #define SSL_HL_CLIENT_FINISHED_HBYTES 1 | 60 #define SSL_HL_CLIENT_FINISHED_HBYTES 1 |
| 57 #define SSL_HL_SERVER_HELLO_HBYTES 11 | 61 #define SSL_HL_SERVER_HELLO_HBYTES 11 |
| 58 #define SSL_HL_SERVER_VERIFY_HBYTES 1 | 62 #define SSL_HL_SERVER_VERIFY_HBYTES 1 |
| 59 #define SSL_HL_SERVER_FINISHED_HBYTES 1 | 63 #define SSL_HL_SERVER_FINISHED_HBYTES 1 |
| 60 #define SSL_HL_REQUEST_CERTIFICATE_HBYTES 2 | 64 #define SSL_HL_REQUEST_CERTIFICATE_HBYTES 2 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 | 226 |
| 223 /* Netscape "experimental" cipher suites. */ | 227 /* Netscape "experimental" cipher suites. */ |
| 224 #define SSL_RSA_OLDFIPS_WITH_3DES_EDE_CBC_SHA 0xffe0 | 228 #define SSL_RSA_OLDFIPS_WITH_3DES_EDE_CBC_SHA 0xffe0 |
| 225 #define SSL_RSA_OLDFIPS_WITH_DES_CBC_SHA 0xffe1 | 229 #define SSL_RSA_OLDFIPS_WITH_DES_CBC_SHA 0xffe1 |
| 226 | 230 |
| 227 /* New non-experimental openly spec'ed versions of those cipher suites. */ | 231 /* New non-experimental openly spec'ed versions of those cipher suites. */ |
| 228 #define SSL_RSA_FIPS_WITH_3DES_EDE_CBC_SHA 0xfeff | 232 #define SSL_RSA_FIPS_WITH_3DES_EDE_CBC_SHA 0xfeff |
| 229 #define SSL_RSA_FIPS_WITH_DES_CBC_SHA 0xfefe | 233 #define SSL_RSA_FIPS_WITH_DES_CBC_SHA 0xfefe |
| 230 | 234 |
| 231 #endif /* __sslproto_h_ */ | 235 #endif /* __sslproto_h_ */ |
| OLD | NEW |