| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 /* Update SSL_MAX_EXTENSIONS whenever a new extension type is added. */ | 198 /* Update SSL_MAX_EXTENSIONS whenever a new extension type is added. */ |
| 199 typedef enum { | 199 typedef enum { |
| 200 ssl_server_name_xtn = 0, | 200 ssl_server_name_xtn = 0, |
| 201 ssl_cert_status_xtn = 5, | 201 ssl_cert_status_xtn = 5, |
| 202 #ifdef NSS_ENABLE_ECC | 202 #ifdef NSS_ENABLE_ECC |
| 203 ssl_elliptic_curves_xtn = 10, | 203 ssl_elliptic_curves_xtn = 10, |
| 204 ssl_ec_point_formats_xtn = 11, | 204 ssl_ec_point_formats_xtn = 11, |
| 205 #endif | 205 #endif |
| 206 ssl_session_ticket_xtn = 35, | 206 ssl_session_ticket_xtn = 35, |
| 207 ssl_next_proto_neg_xtn = 13172, | 207 ssl_next_proto_neg_xtn = 13172, |
| 208 ssl_cached_info_xtn = 13173, |
| 208 ssl_snap_start_xtn = 13174, | 209 ssl_snap_start_xtn = 13174, |
| 209 ssl_renegotiation_info_xtn = 0xff01 /* experimental number */ | 210 ssl_renegotiation_info_xtn = 0xff01 /* experimental number */ |
| 210 } SSLExtensionType; | 211 } SSLExtensionType; |
| 211 | 212 |
| 212 #define SSL_MAX_EXTENSIONS 8 | 213 #define SSL_MAX_EXTENSIONS 9 |
| 213 | 214 |
| 214 typedef enum { | 215 typedef enum { |
| 215 /* No Snap Start handshake was attempted. */ | 216 /* No Snap Start handshake was attempted. */ |
| 216 SSL_SNAP_START_NONE = 0, | 217 SSL_SNAP_START_NONE = 0, |
| 217 /* A Snap Start full handshake was completed. */ | 218 /* A Snap Start full handshake was completed. */ |
| 218 SSL_SNAP_START_FULL = 1, | 219 SSL_SNAP_START_FULL = 1, |
| 219 /* A Snap Start full handshake was attempted, but failed. */ | 220 /* A Snap Start full handshake was attempted, but failed. */ |
| 220 SSL_SNAP_START_RECOVERY = 2, | 221 SSL_SNAP_START_RECOVERY = 2, |
| 221 /* A Snap Start resume handshake was completed. */ | 222 /* A Snap Start resume handshake was completed. */ |
| 222 SSL_SNAP_START_RESUME = 3, | 223 SSL_SNAP_START_RESUME = 3, |
| 223 /* A Snap Start resume handshake was attempted, but failed. */ | 224 /* A Snap Start resume handshake was attempted, but failed. */ |
| 224 SSL_SNAP_START_RESUME_RECOVERY = 4 | 225 SSL_SNAP_START_RESUME_RECOVERY = 4 |
| 225 } SSLSnapStartResult; | 226 } SSLSnapStartResult; |
| 226 | 227 |
| 227 #endif /* __sslt_h_ */ | 228 #endif /* __sslt_h_ */ |
| OLD | NEW |