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 * This Source Code Form is subject to the terms of the Mozilla Public | 5 * This Source Code Form is subject to the terms of the Mozilla Public |
6 * License, v. 2.0. If a copy of the MPL was not distributed with this | 6 * License, v. 2.0. If a copy of the MPL was not distributed with this |
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 7 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
8 /* $Id: ssl3prot.h,v 1.22 2012/04/25 14:50:12 gerv%gerv.net Exp $ */ | 8 /* $Id$ */ |
9 | 9 |
10 #ifndef __ssl3proto_h_ | 10 #ifndef __ssl3proto_h_ |
11 #define __ssl3proto_h_ | 11 #define __ssl3proto_h_ |
12 | 12 |
13 typedef uint8 SSL3Opaque; | 13 typedef uint8 SSL3Opaque; |
14 | 14 |
15 typedef uint16 SSL3ProtocolVersion; | 15 typedef uint16 SSL3ProtocolVersion; |
16 /* version numbers are defined in sslproto.h */ | 16 /* version numbers are defined in sslproto.h */ |
17 | 17 |
18 typedef uint16 ssl3CipherSuite; | 18 typedef uint16 ssl3CipherSuite; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 server_hello = 2, | 122 server_hello = 2, |
123 hello_verify_request = 3, | 123 hello_verify_request = 3, |
124 new_session_ticket = 4, | 124 new_session_ticket = 4, |
125 certificate = 11, | 125 certificate = 11, |
126 server_key_exchange = 12, | 126 server_key_exchange = 12, |
127 certificate_request = 13, | 127 certificate_request = 13, |
128 server_hello_done = 14, | 128 server_hello_done = 14, |
129 certificate_verify = 15, | 129 certificate_verify = 15, |
130 client_key_exchange = 16, | 130 client_key_exchange = 16, |
131 finished = 20, | 131 finished = 20, |
132 certificate_status» = 22, | 132 certificate_status = 22, |
133 next_proto = 67, | 133 next_proto = 67, |
134 encrypted_extensions= 203 | 134 encrypted_extensions= 203 |
135 } SSL3HandshakeType; | 135 } SSL3HandshakeType; |
136 | 136 |
137 typedef struct { | 137 typedef struct { |
138 uint8 empty; | 138 uint8 empty; |
139 } SSL3HelloRequest; | 139 } SSL3HelloRequest; |
140 | 140 |
141 typedef struct { | 141 typedef struct { |
142 SSL3Opaque rand[SSL3_RANDOM_LENGTH]; | 142 SSL3Opaque rand[SSL3_RANDOM_LENGTH]; |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 unsigned char *iv; | 315 unsigned char *iv; |
316 SECItem encrypted_state; | 316 SECItem encrypted_state; |
317 unsigned char *mac; | 317 unsigned char *mac; |
318 } EncryptedSessionTicket; | 318 } EncryptedSessionTicket; |
319 | 319 |
320 #define TLS_EX_SESS_TICKET_MAC_LENGTH 32 | 320 #define TLS_EX_SESS_TICKET_MAC_LENGTH 32 |
321 | 321 |
322 #define TLS_STE_NO_SERVER_NAME -1 | 322 #define TLS_STE_NO_SERVER_NAME -1 |
323 | 323 |
324 #endif /* __ssl3proto_h_ */ | 324 #endif /* __ssl3proto_h_ */ |
OLD | NEW |