| OLD | NEW |
| 1 /* Private header file of libSSL. | 1 /* Private header file of libSSL. |
| 2 * Various and sundry protocol constants. DON'T CHANGE THESE. These | 2 * Various and sundry protocol constants. DON'T CHANGE THESE. These |
| 3 * values are defined by the SSL 3.0 protocol specification. | 3 * values are defined by the SSL 3.0 protocol specification. |
| 4 * | 4 * |
| 5 * ***** BEGIN LICENSE BLOCK ***** | 5 * ***** BEGIN LICENSE BLOCK ***** |
| 6 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 6 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 7 * | 7 * |
| 8 * The contents of this file are subject to the Mozilla Public License Version | 8 * The contents of this file are subject to the Mozilla Public License Version |
| 9 * 1.1 (the "License"); you may not use this file except in compliance with | 9 * 1.1 (the "License"); you may not use this file except in compliance with |
| 10 * the License. You may obtain a copy of the License at | 10 * the License. You may obtain a copy of the License at |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 * in which case the provisions of the GPL or the LGPL are applicable instead | 31 * in which case the provisions of the GPL or the LGPL are applicable instead |
| 32 * of those above. If you wish to allow use of your version of this file only | 32 * of those above. If you wish to allow use of your version of this file only |
| 33 * under the terms of either the GPL or the LGPL, and not to allow others to | 33 * under the terms of either the GPL or the LGPL, and not to allow others to |
| 34 * use your version of this file under the terms of the MPL, indicate your | 34 * use your version of this file under the terms of the MPL, indicate your |
| 35 * decision by deleting the provisions above and replace them with the notice | 35 * decision by deleting the provisions above and replace them with the notice |
| 36 * and other provisions required by the GPL or the LGPL. If you do not delete | 36 * and other provisions required by the GPL or the LGPL. If you do not delete |
| 37 * the provisions above, a recipient may use your version of this file under | 37 * the provisions above, a recipient may use your version of this file under |
| 38 * the terms of any one of the MPL, the GPL or the LGPL. | 38 * the terms of any one of the MPL, the GPL or the LGPL. |
| 39 * | 39 * |
| 40 * ***** END LICENSE BLOCK ***** */ | 40 * ***** END LICENSE BLOCK ***** */ |
| 41 /* $Id: ssl3prot.h,v 1.18 2010/02/03 02:25:35 alexei.volkov.bugs%sun.com Exp $ *
/ | 41 /* $Id: ssl3prot.h,v 1.19 2010/06/24 09:24:18 nelson%bolyard.com Exp $ */ |
| 42 | 42 |
| 43 #ifndef __ssl3proto_h_ | 43 #ifndef __ssl3proto_h_ |
| 44 #define __ssl3proto_h_ | 44 #define __ssl3proto_h_ |
| 45 | 45 |
| 46 typedef uint8 SSL3Opaque; | 46 typedef uint8 SSL3Opaque; |
| 47 | 47 |
| 48 typedef uint16 SSL3ProtocolVersion; | 48 typedef uint16 SSL3ProtocolVersion; |
| 49 /* version numbers are defined in sslproto.h */ | 49 /* version numbers are defined in sslproto.h */ |
| 50 | 50 |
| 51 typedef uint16 ssl3CipherSuite; | 51 typedef uint16 ssl3CipherSuite; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 typedef struct { | 101 typedef struct { |
| 102 SSL3ChangeCipherSpecChoice choice; | 102 SSL3ChangeCipherSpecChoice choice; |
| 103 } SSL3ChangeCipherSpec; | 103 } SSL3ChangeCipherSpec; |
| 104 | 104 |
| 105 typedef enum { alert_warning = 1, alert_fatal = 2 } SSL3AlertLevel; | 105 typedef enum { alert_warning = 1, alert_fatal = 2 } SSL3AlertLevel; |
| 106 | 106 |
| 107 typedef enum { | 107 typedef enum { |
| 108 close_notify = 0, | 108 close_notify = 0, |
| 109 unexpected_message = 10, | 109 unexpected_message = 10, |
| 110 bad_record_mac = 20, | 110 bad_record_mac = 20, |
| 111 decryption_failed = 21,» /* TLS only */ | 111 decryption_failed_RESERVED = 21,» /* do not send; see RFC 5246 */ |
| 112 record_overflow = 22, /* TLS only */ | 112 record_overflow = 22, /* TLS only */ |
| 113 decompression_failure = 30, | 113 decompression_failure = 30, |
| 114 handshake_failure = 40, | 114 handshake_failure = 40, |
| 115 no_certificate = 41, /* SSL3 only, NOT TLS */ | 115 no_certificate = 41, /* SSL3 only, NOT TLS */ |
| 116 bad_certificate = 42, | 116 bad_certificate = 42, |
| 117 unsupported_certificate = 43, | 117 unsupported_certificate = 43, |
| 118 certificate_revoked = 44, | 118 certificate_revoked = 44, |
| 119 certificate_expired = 45, | 119 certificate_expired = 45, |
| 120 certificate_unknown = 46, | 120 certificate_unknown = 46, |
| 121 illegal_parameter = 47, | 121 illegal_parameter = 47, |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 unsigned char *iv; | 342 unsigned char *iv; |
| 343 SECItem encrypted_state; | 343 SECItem encrypted_state; |
| 344 unsigned char *mac; | 344 unsigned char *mac; |
| 345 } EncryptedSessionTicket; | 345 } EncryptedSessionTicket; |
| 346 | 346 |
| 347 #define TLS_EX_SESS_TICKET_MAC_LENGTH 32 | 347 #define TLS_EX_SESS_TICKET_MAC_LENGTH 32 |
| 348 | 348 |
| 349 #define TLS_STE_NO_SERVER_NAME -1 | 349 #define TLS_STE_NO_SERVER_NAME -1 |
| 350 | 350 |
| 351 #endif /* __ssl3proto_h_ */ | 351 #endif /* __ssl3proto_h_ */ |
| OLD | NEW |