Go to the documentation of this file.
67 #define SSL2_VERSION 0x0002
68 #define SSL2_VERSION_MAJOR 0x00
69 #define SSL2_VERSION_MINOR 0x02
74 #define SSL2_MT_ERROR 0
75 #define SSL2_MT_CLIENT_HELLO 1
76 #define SSL2_MT_CLIENT_MASTER_KEY 2
77 #define SSL2_MT_CLIENT_FINISHED 3
78 #define SSL2_MT_SERVER_HELLO 4
79 #define SSL2_MT_SERVER_VERIFY 5
80 #define SSL2_MT_SERVER_FINISHED 6
81 #define SSL2_MT_REQUEST_CERTIFICATE 7
82 #define SSL2_MT_CLIENT_CERTIFICATE 8
85 #define SSL2_PE_UNDEFINED_ERROR 0x0000
86 #define SSL2_PE_NO_CIPHER 0x0001
87 #define SSL2_PE_NO_CERTIFICATE 0x0002
88 #define SSL2_PE_BAD_CERTIFICATE 0x0004
89 #define SSL2_PE_UNSUPPORTED_CERTIFICATE_TYPE 0x0006
92 #define SSL2_CK_NULL_WITH_MD5 0x02000000
93 #define SSL2_CK_RC4_128_WITH_MD5 0x02010080
94 #define SSL2_CK_RC4_128_EXPORT40_WITH_MD5 0x02020080
95 #define SSL2_CK_RC2_128_CBC_WITH_MD5 0x02030080
96 #define SSL2_CK_RC2_128_CBC_EXPORT40_WITH_MD5 0x02040080
97 #define SSL2_CK_IDEA_128_CBC_WITH_MD5 0x02050080
98 #define SSL2_CK_DES_64_CBC_WITH_MD5 0x02060040
99 #define SSL2_CK_DES_64_CBC_WITH_SHA 0x02060140
100 #define SSL2_CK_DES_192_EDE3_CBC_WITH_MD5 0x020700c0
101 #define SSL2_CK_DES_192_EDE3_CBC_WITH_SHA 0x020701c0
102 #define SSL2_CK_RC4_64_WITH_MD5 0x02080080
104 #define SSL2_CK_DES_64_CFB64_WITH_MD5_1 0x02ff0800
105 #define SSL2_CK_NULL 0x02ff0810
107 #define SSL2_TXT_DES_64_CFB64_WITH_MD5_1 "DES-CFB-M1"
108 #define SSL2_TXT_NULL_WITH_MD5 "NULL-MD5"
109 #define SSL2_TXT_RC4_128_WITH_MD5 "RC4-MD5"
110 #define SSL2_TXT_RC4_128_EXPORT40_WITH_MD5 "EXP-RC4-MD5"
111 #define SSL2_TXT_RC2_128_CBC_WITH_MD5 "RC2-CBC-MD5"
112 #define SSL2_TXT_RC2_128_CBC_EXPORT40_WITH_MD5 "EXP-RC2-CBC-MD5"
113 #define SSL2_TXT_IDEA_128_CBC_WITH_MD5 "IDEA-CBC-MD5"
114 #define SSL2_TXT_DES_64_CBC_WITH_MD5 "DES-CBC-MD5"
115 #define SSL2_TXT_DES_64_CBC_WITH_SHA "DES-CBC-SHA"
116 #define SSL2_TXT_DES_192_EDE3_CBC_WITH_MD5 "DES-CBC3-MD5"
117 #define SSL2_TXT_DES_192_EDE3_CBC_WITH_SHA "DES-CBC3-SHA"
118 #define SSL2_TXT_RC4_64_WITH_MD5 "RC4-64-MD5"
120 #define SSL2_TXT_NULL "NULL"
123 #define SSL2_CF_5_BYTE_ENC 0x01
124 #define SSL2_CF_8_BYTE_ENC 0x02
127 #define SSL2_CT_X509_CERTIFICATE 0x01
130 #define SSL2_AT_MD5_WITH_RSA_ENCRYPTION 0x01
132 #define SSL2_MAX_SSL_SESSION_ID_LENGTH 32
135 #define SSL2_MAX_MASTER_KEY_LENGTH_IN_BITS 256
136 #ifdef OPENSSL_SYS_MPE
137 #define SSL2_MAX_RECORD_LENGTH_2_BYTE_HEADER 29998u
139 #define SSL2_MAX_RECORD_LENGTH_2_BYTE_HEADER 32767u
141 #define SSL2_MAX_RECORD_LENGTH_3_BYTE_HEADER 16383
143 #define SSL2_CHALLENGE_LENGTH 16
145 #define SSL2_MIN_CHALLENGE_LENGTH 16
146 #define SSL2_MAX_CHALLENGE_LENGTH 32
147 #define SSL2_CONNECTION_ID_LENGTH 16
148 #define SSL2_MAX_CONNECTION_ID_LENGTH 16
149 #define SSL2_SSL_SESSION_ID_LENGTH 16
150 #define SSL2_MAX_CERT_CHALLENGE_LENGTH 32
151 #define SSL2_MIN_CERT_CHALLENGE_LENGTH 16
152 #define SSL2_MAX_KEY_MATERIAL_LENGTH 24
154 #ifndef HEADER_SSL_LOCL_H
158 #ifndef OPENSSL_NO_SSL_INTERN
228 #define SSL2_ST_SEND_CLIENT_HELLO_A (0x10|SSL_ST_CONNECT)
229 #define SSL2_ST_SEND_CLIENT_HELLO_B (0x11|SSL_ST_CONNECT)
230 #define SSL2_ST_GET_SERVER_HELLO_A (0x20|SSL_ST_CONNECT)
231 #define SSL2_ST_GET_SERVER_HELLO_B (0x21|SSL_ST_CONNECT)
232 #define SSL2_ST_SEND_CLIENT_MASTER_KEY_A (0x30|SSL_ST_CONNECT)
233 #define SSL2_ST_SEND_CLIENT_MASTER_KEY_B (0x31|SSL_ST_CONNECT)
234 #define SSL2_ST_SEND_CLIENT_FINISHED_A (0x40|SSL_ST_CONNECT)
235 #define SSL2_ST_SEND_CLIENT_FINISHED_B (0x41|SSL_ST_CONNECT)
236 #define SSL2_ST_SEND_CLIENT_CERTIFICATE_A (0x50|SSL_ST_CONNECT)
237 #define SSL2_ST_SEND_CLIENT_CERTIFICATE_B (0x51|SSL_ST_CONNECT)
238 #define SSL2_ST_SEND_CLIENT_CERTIFICATE_C (0x52|SSL_ST_CONNECT)
239 #define SSL2_ST_SEND_CLIENT_CERTIFICATE_D (0x53|SSL_ST_CONNECT)
240 #define SSL2_ST_GET_SERVER_VERIFY_A (0x60|SSL_ST_CONNECT)
241 #define SSL2_ST_GET_SERVER_VERIFY_B (0x61|SSL_ST_CONNECT)
242 #define SSL2_ST_GET_SERVER_FINISHED_A (0x70|SSL_ST_CONNECT)
243 #define SSL2_ST_GET_SERVER_FINISHED_B (0x71|SSL_ST_CONNECT)
244 #define SSL2_ST_CLIENT_START_ENCRYPTION (0x80|SSL_ST_CONNECT)
245 #define SSL2_ST_X509_GET_CLIENT_CERTIFICATE (0x90|SSL_ST_CONNECT)
247 #define SSL2_ST_GET_CLIENT_HELLO_A (0x10|SSL_ST_ACCEPT)
248 #define SSL2_ST_GET_CLIENT_HELLO_B (0x11|SSL_ST_ACCEPT)
249 #define SSL2_ST_GET_CLIENT_HELLO_C (0x12|SSL_ST_ACCEPT)
250 #define SSL2_ST_SEND_SERVER_HELLO_A (0x20|SSL_ST_ACCEPT)
251 #define SSL2_ST_SEND_SERVER_HELLO_B (0x21|SSL_ST_ACCEPT)
252 #define SSL2_ST_GET_CLIENT_MASTER_KEY_A (0x30|SSL_ST_ACCEPT)
253 #define SSL2_ST_GET_CLIENT_MASTER_KEY_B (0x31|SSL_ST_ACCEPT)
254 #define SSL2_ST_SEND_SERVER_VERIFY_A (0x40|SSL_ST_ACCEPT)
255 #define SSL2_ST_SEND_SERVER_VERIFY_B (0x41|SSL_ST_ACCEPT)
256 #define SSL2_ST_SEND_SERVER_VERIFY_C (0x42|SSL_ST_ACCEPT)
257 #define SSL2_ST_GET_CLIENT_FINISHED_A (0x50|SSL_ST_ACCEPT)
258 #define SSL2_ST_GET_CLIENT_FINISHED_B (0x51|SSL_ST_ACCEPT)
259 #define SSL2_ST_SEND_SERVER_FINISHED_A (0x60|SSL_ST_ACCEPT)
260 #define SSL2_ST_SEND_SERVER_FINISHED_B (0x61|SSL_ST_ACCEPT)
261 #define SSL2_ST_SEND_REQUEST_CERTIFICATE_A (0x70|SSL_ST_ACCEPT)
262 #define SSL2_ST_SEND_REQUEST_CERTIFICATE_B (0x71|SSL_ST_ACCEPT)
263 #define SSL2_ST_SEND_REQUEST_CERTIFICATE_C (0x72|SSL_ST_ACCEPT)
264 #define SSL2_ST_SEND_REQUEST_CERTIFICATE_D (0x73|SSL_ST_ACCEPT)
265 #define SSL2_ST_SERVER_START_ENCRYPTION (0x80|SSL_ST_ACCEPT)
266 #define SSL2_ST_X509_GET_SERVER_CERTIFICATE (0x90|SSL_ST_ACCEPT)