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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 #define MAX_FRAGMENT_LENGTH 16384 | 64 #define MAX_FRAGMENT_LENGTH 16384 |
65 | 65 |
| 66 #define MAX_SRP_USERNAME_LENGTH 255 |
| 67 |
66 typedef enum { | 68 typedef enum { |
67 content_change_cipher_spec = 20, | 69 content_change_cipher_spec = 20, |
68 content_alert = 21, | 70 content_alert = 21, |
69 content_handshake = 22, | 71 content_handshake = 22, |
70 content_application_data = 23 | 72 content_application_data = 23 |
71 } SSL3ContentType; | 73 } SSL3ContentType; |
72 | 74 |
73 typedef struct { | 75 typedef struct { |
74 SSL3ContentType type; | 76 SSL3ContentType type; |
75 SSL3ProtocolVersion version; | 77 SSL3ProtocolVersion version; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 insufficient_security = 71, | 132 insufficient_security = 71, |
131 internal_error = 80, | 133 internal_error = 80, |
132 user_canceled = 90, | 134 user_canceled = 90, |
133 no_renegotiation = 100, | 135 no_renegotiation = 100, |
134 | 136 |
135 /* Alerts for client hello extensions */ | 137 /* Alerts for client hello extensions */ |
136 unsupported_extension = 110, | 138 unsupported_extension = 110, |
137 certificate_unobtainable = 111, | 139 certificate_unobtainable = 111, |
138 unrecognized_name = 112, | 140 unrecognized_name = 112, |
139 bad_certificate_status_response = 113, | 141 bad_certificate_status_response = 113, |
140 bad_certificate_hash_value = 114 | 142 bad_certificate_hash_value = 114, |
| 143 |
| 144 unknown_psk_identity = 115 |
141 | 145 |
142 } SSL3AlertDescription; | 146 } SSL3AlertDescription; |
143 | 147 |
144 typedef struct { | 148 typedef struct { |
145 SSL3AlertLevel level; | 149 SSL3AlertLevel level; |
146 SSL3AlertDescription description; | 150 SSL3AlertDescription description; |
147 } SSL3Alert; | 151 } SSL3Alert; |
148 | 152 |
149 typedef enum { | 153 typedef enum { |
150 hello_request = 0, | 154 hello_request = 0, |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 kea_dh_dss_export, | 212 kea_dh_dss_export, |
209 kea_dh_rsa, | 213 kea_dh_rsa, |
210 kea_dh_rsa_export, | 214 kea_dh_rsa_export, |
211 kea_dhe_dss, | 215 kea_dhe_dss, |
212 kea_dhe_dss_export, | 216 kea_dhe_dss_export, |
213 kea_dhe_rsa, | 217 kea_dhe_rsa, |
214 kea_dhe_rsa_export, | 218 kea_dhe_rsa_export, |
215 kea_dh_anon, | 219 kea_dh_anon, |
216 kea_dh_anon_export, | 220 kea_dh_anon_export, |
217 kea_rsa_fips, | 221 kea_rsa_fips, |
| 222 kea_srp, |
| 223 kea_srp_rsa, |
| 224 kea_srp_dss, |
218 kea_ecdh_ecdsa, | 225 kea_ecdh_ecdsa, |
219 kea_ecdhe_ecdsa, | 226 kea_ecdhe_ecdsa, |
220 kea_ecdh_rsa, | 227 kea_ecdh_rsa, |
221 kea_ecdhe_rsa, | 228 kea_ecdhe_rsa, |
222 kea_ecdh_anon | 229 kea_ecdh_anon |
223 } SSL3KeyExchangeAlgorithm; | 230 } SSL3KeyExchangeAlgorithm; |
224 | 231 |
225 typedef struct { | 232 typedef struct { |
226 SECItem modulus; | 233 SECItem modulus; |
227 SECItem exponent; | 234 SECItem exponent; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 unsigned char *iv; | 350 unsigned char *iv; |
344 SECItem encrypted_state; | 351 SECItem encrypted_state; |
345 unsigned char *mac; | 352 unsigned char *mac; |
346 } EncryptedSessionTicket; | 353 } EncryptedSessionTicket; |
347 | 354 |
348 #define TLS_EX_SESS_TICKET_MAC_LENGTH 32 | 355 #define TLS_EX_SESS_TICKET_MAC_LENGTH 32 |
349 | 356 |
350 #define TLS_STE_NO_SERVER_NAME -1 | 357 #define TLS_STE_NO_SERVER_NAME -1 |
351 | 358 |
352 #endif /* __ssl3proto_h_ */ | 359 #endif /* __ssl3proto_h_ */ |
OLD | NEW |