| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file contains prototypes for the public SSL functions. | 2 * This file contains prototypes for the public SSL functions. |
| 3 * | 3 * |
| 4 * ***** BEGIN LICENSE BLOCK ***** | 4 * ***** BEGIN LICENSE BLOCK ***** |
| 5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 6 * | 6 * |
| 7 * The contents of this file are subject to the Mozilla Public License Version | 7 * The contents of this file are subject to the Mozilla Public License Version |
| 8 * 1.1 (the "License"); you may not use this file except in compliance with | 8 * 1.1 (the "License"); you may not use this file except in compliance with |
| 9 * the License. You may obtain a copy of the License at | 9 * the License. You may obtain a copy of the License at |
| 10 * http://www.mozilla.org/MPL/ | 10 * http://www.mozilla.org/MPL/ |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 * in which case the provisions of the GPL or the LGPL are applicable instead | 30 * in which case the provisions of the GPL or the LGPL are applicable instead |
| 31 * of those above. If you wish to allow use of your version of this file only | 31 * of those above. If you wish to allow use of your version of this file only |
| 32 * under the terms of either the GPL or the LGPL, and not to allow others to | 32 * under the terms of either the GPL or the LGPL, and not to allow others to |
| 33 * use your version of this file under the terms of the MPL, indicate your | 33 * use your version of this file under the terms of the MPL, indicate your |
| 34 * decision by deleting the provisions above and replace them with the notice | 34 * decision by deleting the provisions above and replace them with the notice |
| 35 * and other provisions required by the GPL or the LGPL. If you do not delete | 35 * and other provisions required by the GPL or the LGPL. If you do not delete |
| 36 * the provisions above, a recipient may use your version of this file under | 36 * the provisions above, a recipient may use your version of this file under |
| 37 * the terms of any one of the MPL, the GPL or the LGPL. | 37 * the terms of any one of the MPL, the GPL or the LGPL. |
| 38 * | 38 * |
| 39 * ***** END LICENSE BLOCK ***** */ | 39 * ***** END LICENSE BLOCK ***** */ |
| 40 /* $Id: sslt.h,v 1.18 2012/02/15 21:52:08 kaie%kuix.de Exp $ */ | 40 /* $Id: sslt.h,v 1.20 2012/03/16 01:23:55 wtc%google.com Exp $ */ |
| 41 | 41 |
| 42 #ifndef __sslt_h_ | 42 #ifndef __sslt_h_ |
| 43 #define __sslt_h_ | 43 #define __sslt_h_ |
| 44 | 44 |
| 45 #include "prtypes.h" | 45 #include "prtypes.h" |
| 46 | 46 |
| 47 typedef struct SSL3StatisticsStr { | 47 typedef struct SSL3StatisticsStr { |
| 48 /* statistics from ssl3_SendClientHello (sch) */ | 48 /* statistics from ssl3_SendClientHello (sch) */ |
| 49 long sch_sid_cache_hits; | 49 long sch_sid_cache_hits; |
| 50 long sch_sid_cache_misses; | 50 long sch_sid_cache_misses; |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 PRUint16 macBits; | 183 PRUint16 macBits; |
| 184 | 184 |
| 185 PRUintn isFIPS : 1; | 185 PRUintn isFIPS : 1; |
| 186 PRUintn isExportable : 1; | 186 PRUintn isExportable : 1; |
| 187 PRUintn nonStandard : 1; | 187 PRUintn nonStandard : 1; |
| 188 PRUintn reservedBits :29; | 188 PRUintn reservedBits :29; |
| 189 | 189 |
| 190 } SSLCipherSuiteInfo; | 190 } SSLCipherSuiteInfo; |
| 191 | 191 |
| 192 typedef enum { | 192 typedef enum { |
| 193 ssl_variant_stream = 0 |
| 194 } SSLProtocolVariant; |
| 195 |
| 196 typedef struct SSLVersionRangeStr { |
| 197 PRUint16 min; |
| 198 PRUint16 max; |
| 199 } SSLVersionRange; |
| 200 |
| 201 typedef enum { |
| 193 SSL_sni_host_name = 0, | 202 SSL_sni_host_name = 0, |
| 194 SSL_sni_type_total | 203 SSL_sni_type_total |
| 195 } SSLSniNameType; | 204 } SSLSniNameType; |
| 196 | 205 |
| 197 /* Supported extensions. */ | 206 /* Supported extensions. */ |
| 198 /* Update SSL_MAX_EXTENSIONS whenever a new extension type is added. */ | 207 /* Update SSL_MAX_EXTENSIONS whenever a new extension type is added. */ |
| 199 typedef enum { | 208 typedef enum { |
| 200 ssl_server_name_xtn = 0, | 209 ssl_server_name_xtn = 0, |
| 201 ssl_cert_status_xtn = 5, | 210 ssl_cert_status_xtn = 5, |
| 202 #ifdef NSS_ENABLE_ECC | 211 #ifdef NSS_ENABLE_ECC |
| 203 ssl_elliptic_curves_xtn = 10, | 212 ssl_elliptic_curves_xtn = 10, |
| 204 ssl_ec_point_formats_xtn = 11, | 213 ssl_ec_point_formats_xtn = 11, |
| 205 #endif | 214 #endif |
| 206 ssl_session_ticket_xtn = 35, | 215 ssl_session_ticket_xtn = 35, |
| 207 ssl_next_proto_nego_xtn = 13172, | 216 ssl_next_proto_nego_xtn = 13172, |
| 208 ssl_encrypted_client_certs = 13180, /* not IANA assigned. */ | 217 ssl_encrypted_client_certs = 13180, /* not IANA assigned. */ |
| 209 ssl_renegotiation_info_xtn = 0xff01, /* experimental number */ | 218 ssl_renegotiation_info_xtn = 0xff01, /* experimental number */ |
| 210 ssl_ob_cert_xtn = 13175 /* experimental number */ | 219 ssl_ob_cert_xtn = 13175 /* experimental number */ |
| 211 } SSLExtensionType; | 220 } SSLExtensionType; |
| 212 | 221 |
| 213 #define SSL_MAX_EXTENSIONS 9 | 222 #define SSL_MAX_EXTENSIONS 9 |
| 214 | 223 |
| 215 #endif /* __sslt_h_ */ | 224 #endif /* __sslt_h_ */ |
| OLD | NEW |