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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 #define MAX_CERT_TYPES 10 | 54 #define MAX_CERT_TYPES 10 |
55 #define MAX_COMPRESSION_METHODS 10 | 55 #define MAX_COMPRESSION_METHODS 10 |
56 #define MAX_MAC_LENGTH 64 | 56 #define MAX_MAC_LENGTH 64 |
57 #define MAX_PADDING_LENGTH 64 | 57 #define MAX_PADDING_LENGTH 64 |
58 #define MAX_KEY_LENGTH 64 | 58 #define MAX_KEY_LENGTH 64 |
59 #define EXPORT_KEY_LENGTH 5 | 59 #define EXPORT_KEY_LENGTH 5 |
60 #define SSL3_RANDOM_LENGTH 32 | 60 #define SSL3_RANDOM_LENGTH 32 |
61 | 61 |
62 #define SSL3_RECORD_HEADER_LENGTH 5 | 62 #define SSL3_RECORD_HEADER_LENGTH 5 |
63 | 63 |
| 64 /* SSL3_RECORD_HEADER_LENGTH + epoch/sequence_number */ |
| 65 #define DTLS_RECORD_HEADER_LENGTH 13 |
| 66 |
64 #define MAX_FRAGMENT_LENGTH 16384 | 67 #define MAX_FRAGMENT_LENGTH 16384 |
65 | 68 |
66 typedef enum { | 69 typedef enum { |
67 content_change_cipher_spec = 20, | 70 content_change_cipher_spec = 20, |
68 content_alert = 21, | 71 content_alert = 21, |
69 content_handshake = 22, | 72 content_handshake = 22, |
70 content_application_data = 23 | 73 content_application_data = 23 |
71 } SSL3ContentType; | 74 } SSL3ContentType; |
72 | 75 |
73 typedef struct { | 76 typedef struct { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 146 |
144 typedef struct { | 147 typedef struct { |
145 SSL3AlertLevel level; | 148 SSL3AlertLevel level; |
146 SSL3AlertDescription description; | 149 SSL3AlertDescription description; |
147 } SSL3Alert; | 150 } SSL3Alert; |
148 | 151 |
149 typedef enum { | 152 typedef enum { |
150 hello_request = 0, | 153 hello_request = 0, |
151 client_hello = 1, | 154 client_hello = 1, |
152 server_hello = 2, | 155 server_hello = 2, |
| 156 hello_verify_request = 3, |
153 new_session_ticket = 4, | 157 new_session_ticket = 4, |
154 certificate = 11, | 158 certificate = 11, |
155 server_key_exchange = 12, | 159 server_key_exchange = 12, |
156 certificate_request = 13, | 160 certificate_request = 13, |
157 server_hello_done = 14, | 161 server_hello_done = 14, |
158 certificate_verify = 15, | 162 certificate_verify = 15, |
159 client_key_exchange = 16, | 163 client_key_exchange = 16, |
160 finished = 20, | 164 finished = 20, |
161 certificate_status = 22, | 165 certificate_status = 22, |
162 next_proto = 67 | 166 next_proto = 67 |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 unsigned char *iv; | 347 unsigned char *iv; |
344 SECItem encrypted_state; | 348 SECItem encrypted_state; |
345 unsigned char *mac; | 349 unsigned char *mac; |
346 } EncryptedSessionTicket; | 350 } EncryptedSessionTicket; |
347 | 351 |
348 #define TLS_EX_SESS_TICKET_MAC_LENGTH 32 | 352 #define TLS_EX_SESS_TICKET_MAC_LENGTH 32 |
349 | 353 |
350 #define TLS_STE_NO_SERVER_NAME -1 | 354 #define TLS_STE_NO_SERVER_NAME -1 |
351 | 355 |
352 #endif /* __ssl3proto_h_ */ | 356 #endif /* __ssl3proto_h_ */ |
OLD | NEW |