xref: /minix3/crypto/external/bsd/openssl/dist/ssl/ssl2.h (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1ebfedea0SLionel Sambuc /* ssl/ssl2.h */
2ebfedea0SLionel Sambuc /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3ebfedea0SLionel Sambuc  * All rights reserved.
4ebfedea0SLionel Sambuc  *
5ebfedea0SLionel Sambuc  * This package is an SSL implementation written
6ebfedea0SLionel Sambuc  * by Eric Young (eay@cryptsoft.com).
7ebfedea0SLionel Sambuc  * The implementation was written so as to conform with Netscapes SSL.
8ebfedea0SLionel Sambuc  *
9ebfedea0SLionel Sambuc  * This library is free for commercial and non-commercial use as long as
10ebfedea0SLionel Sambuc  * the following conditions are aheared to.  The following conditions
11ebfedea0SLionel Sambuc  * apply to all code found in this distribution, be it the RC4, RSA,
12ebfedea0SLionel Sambuc  * lhash, DES, etc., code; not just the SSL code.  The SSL documentation
13ebfedea0SLionel Sambuc  * included with this distribution is covered by the same copyright terms
14ebfedea0SLionel Sambuc  * except that the holder is Tim Hudson (tjh@cryptsoft.com).
15ebfedea0SLionel Sambuc  *
16ebfedea0SLionel Sambuc  * Copyright remains Eric Young's, and as such any Copyright notices in
17ebfedea0SLionel Sambuc  * the code are not to be removed.
18ebfedea0SLionel Sambuc  * If this package is used in a product, Eric Young should be given attribution
19ebfedea0SLionel Sambuc  * as the author of the parts of the library used.
20ebfedea0SLionel Sambuc  * This can be in the form of a textual message at program startup or
21ebfedea0SLionel Sambuc  * in documentation (online or textual) provided with the package.
22ebfedea0SLionel Sambuc  *
23ebfedea0SLionel Sambuc  * Redistribution and use in source and binary forms, with or without
24ebfedea0SLionel Sambuc  * modification, are permitted provided that the following conditions
25ebfedea0SLionel Sambuc  * are met:
26ebfedea0SLionel Sambuc  * 1. Redistributions of source code must retain the copyright
27ebfedea0SLionel Sambuc  *    notice, this list of conditions and the following disclaimer.
28ebfedea0SLionel Sambuc  * 2. Redistributions in binary form must reproduce the above copyright
29ebfedea0SLionel Sambuc  *    notice, this list of conditions and the following disclaimer in the
30ebfedea0SLionel Sambuc  *    documentation and/or other materials provided with the distribution.
31ebfedea0SLionel Sambuc  * 3. All advertising materials mentioning features or use of this software
32ebfedea0SLionel Sambuc  *    must display the following acknowledgement:
33ebfedea0SLionel Sambuc  *    "This product includes cryptographic software written by
34ebfedea0SLionel Sambuc  *     Eric Young (eay@cryptsoft.com)"
35ebfedea0SLionel Sambuc  *    The word 'cryptographic' can be left out if the rouines from the library
36ebfedea0SLionel Sambuc  *    being used are not cryptographic related :-).
37ebfedea0SLionel Sambuc  * 4. If you include any Windows specific code (or a derivative thereof) from
38ebfedea0SLionel Sambuc  *    the apps directory (application code) you must include an acknowledgement:
39ebfedea0SLionel Sambuc  *    "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
40ebfedea0SLionel Sambuc  *
41ebfedea0SLionel Sambuc  * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
42ebfedea0SLionel Sambuc  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
43ebfedea0SLionel Sambuc  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
44ebfedea0SLionel Sambuc  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
45ebfedea0SLionel Sambuc  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
46ebfedea0SLionel Sambuc  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
47ebfedea0SLionel Sambuc  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48ebfedea0SLionel Sambuc  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
49ebfedea0SLionel Sambuc  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
50ebfedea0SLionel Sambuc  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
51ebfedea0SLionel Sambuc  * SUCH DAMAGE.
52ebfedea0SLionel Sambuc  *
53ebfedea0SLionel Sambuc  * The licence and distribution terms for any publically available version or
54ebfedea0SLionel Sambuc  * derivative of this code cannot be changed.  i.e. this code cannot simply be
55ebfedea0SLionel Sambuc  * copied and put under another distribution licence
56ebfedea0SLionel Sambuc  * [including the GNU Public Licence.]
57ebfedea0SLionel Sambuc  */
58ebfedea0SLionel Sambuc 
59ebfedea0SLionel Sambuc #ifndef HEADER_SSL2_H
60ebfedea0SLionel Sambuc # define HEADER_SSL2_H
61ebfedea0SLionel Sambuc 
62ebfedea0SLionel Sambuc #ifdef  __cplusplus
63ebfedea0SLionel Sambuc extern "C" {
64ebfedea0SLionel Sambuc #endif
65ebfedea0SLionel Sambuc 
66ebfedea0SLionel Sambuc /* Protocol Version Codes */
67ebfedea0SLionel Sambuc # define SSL2_VERSION            0x0002
68ebfedea0SLionel Sambuc # define SSL2_VERSION_MAJOR      0x00
69ebfedea0SLionel Sambuc # define SSL2_VERSION_MINOR      0x02
70ebfedea0SLionel Sambuc /* #define SSL2_CLIENT_VERSION  0x0002 */
71ebfedea0SLionel Sambuc /* #define SSL2_SERVER_VERSION  0x0002 */
72ebfedea0SLionel Sambuc 
73ebfedea0SLionel Sambuc /* Protocol Message Codes */
74ebfedea0SLionel Sambuc # define SSL2_MT_ERROR                   0
75ebfedea0SLionel Sambuc # define SSL2_MT_CLIENT_HELLO            1
76ebfedea0SLionel Sambuc # define SSL2_MT_CLIENT_MASTER_KEY       2
77ebfedea0SLionel Sambuc # define SSL2_MT_CLIENT_FINISHED         3
78ebfedea0SLionel Sambuc # define SSL2_MT_SERVER_HELLO            4
79ebfedea0SLionel Sambuc # define SSL2_MT_SERVER_VERIFY           5
80ebfedea0SLionel Sambuc # define SSL2_MT_SERVER_FINISHED         6
81ebfedea0SLionel Sambuc # define SSL2_MT_REQUEST_CERTIFICATE     7
82ebfedea0SLionel Sambuc # define SSL2_MT_CLIENT_CERTIFICATE      8
83ebfedea0SLionel Sambuc 
84ebfedea0SLionel Sambuc /* Error Message Codes */
85ebfedea0SLionel Sambuc # define SSL2_PE_UNDEFINED_ERROR         0x0000
86ebfedea0SLionel Sambuc # define SSL2_PE_NO_CIPHER               0x0001
87ebfedea0SLionel Sambuc # define SSL2_PE_NO_CERTIFICATE          0x0002
88ebfedea0SLionel Sambuc # define SSL2_PE_BAD_CERTIFICATE         0x0004
89ebfedea0SLionel Sambuc # define SSL2_PE_UNSUPPORTED_CERTIFICATE_TYPE 0x0006
90ebfedea0SLionel Sambuc 
91ebfedea0SLionel Sambuc /* Cipher Kind Values */
92ebfedea0SLionel Sambuc # define SSL2_CK_NULL_WITH_MD5                   0x02000000/* v3 */
93ebfedea0SLionel Sambuc # define SSL2_CK_RC4_128_WITH_MD5                0x02010080
94ebfedea0SLionel Sambuc # define SSL2_CK_RC4_128_EXPORT40_WITH_MD5       0x02020080
95ebfedea0SLionel Sambuc # define SSL2_CK_RC2_128_CBC_WITH_MD5            0x02030080
96ebfedea0SLionel Sambuc # define SSL2_CK_RC2_128_CBC_EXPORT40_WITH_MD5   0x02040080
97ebfedea0SLionel Sambuc # define SSL2_CK_IDEA_128_CBC_WITH_MD5           0x02050080
98ebfedea0SLionel Sambuc # define SSL2_CK_DES_64_CBC_WITH_MD5             0x02060040
99ebfedea0SLionel Sambuc # define SSL2_CK_DES_64_CBC_WITH_SHA             0x02060140/* v3 */
100ebfedea0SLionel Sambuc # define SSL2_CK_DES_192_EDE3_CBC_WITH_MD5       0x020700c0
101ebfedea0SLionel Sambuc # define SSL2_CK_DES_192_EDE3_CBC_WITH_SHA       0x020701c0/* v3 */
102ebfedea0SLionel Sambuc # define SSL2_CK_RC4_64_WITH_MD5                 0x02080080/* MS hack */
103ebfedea0SLionel Sambuc 
104ebfedea0SLionel Sambuc # define SSL2_CK_DES_64_CFB64_WITH_MD5_1         0x02ff0800/* SSLeay */
105ebfedea0SLionel Sambuc # define SSL2_CK_NULL                            0x02ff0810/* SSLeay */
106ebfedea0SLionel Sambuc 
107ebfedea0SLionel Sambuc # define SSL2_TXT_DES_64_CFB64_WITH_MD5_1        "DES-CFB-M1"
108ebfedea0SLionel Sambuc # define SSL2_TXT_NULL_WITH_MD5                  "NULL-MD5"
109ebfedea0SLionel Sambuc # define SSL2_TXT_RC4_128_WITH_MD5               "RC4-MD5"
110ebfedea0SLionel Sambuc # define SSL2_TXT_RC4_128_EXPORT40_WITH_MD5      "EXP-RC4-MD5"
111ebfedea0SLionel Sambuc # define SSL2_TXT_RC2_128_CBC_WITH_MD5           "RC2-CBC-MD5"
112ebfedea0SLionel Sambuc # define SSL2_TXT_RC2_128_CBC_EXPORT40_WITH_MD5  "EXP-RC2-CBC-MD5"
113ebfedea0SLionel Sambuc # define SSL2_TXT_IDEA_128_CBC_WITH_MD5          "IDEA-CBC-MD5"
114ebfedea0SLionel Sambuc # define SSL2_TXT_DES_64_CBC_WITH_MD5            "DES-CBC-MD5"
115ebfedea0SLionel Sambuc # define SSL2_TXT_DES_64_CBC_WITH_SHA            "DES-CBC-SHA"
116ebfedea0SLionel Sambuc # define SSL2_TXT_DES_192_EDE3_CBC_WITH_MD5      "DES-CBC3-MD5"
117ebfedea0SLionel Sambuc # define SSL2_TXT_DES_192_EDE3_CBC_WITH_SHA      "DES-CBC3-SHA"
118ebfedea0SLionel Sambuc # define SSL2_TXT_RC4_64_WITH_MD5                "RC4-64-MD5"
119ebfedea0SLionel Sambuc 
120ebfedea0SLionel Sambuc # define SSL2_TXT_NULL                           "NULL"
121ebfedea0SLionel Sambuc 
122ebfedea0SLionel Sambuc /* Flags for the SSL_CIPHER.algorithm2 field */
123ebfedea0SLionel Sambuc # define SSL2_CF_5_BYTE_ENC                      0x01
124ebfedea0SLionel Sambuc # define SSL2_CF_8_BYTE_ENC                      0x02
125ebfedea0SLionel Sambuc 
126ebfedea0SLionel Sambuc /* Certificate Type Codes */
127ebfedea0SLionel Sambuc # define SSL2_CT_X509_CERTIFICATE                0x01
128ebfedea0SLionel Sambuc 
129ebfedea0SLionel Sambuc /* Authentication Type Code */
130ebfedea0SLionel Sambuc # define SSL2_AT_MD5_WITH_RSA_ENCRYPTION         0x01
131ebfedea0SLionel Sambuc 
132ebfedea0SLionel Sambuc # define SSL2_MAX_SSL_SESSION_ID_LENGTH          32
133ebfedea0SLionel Sambuc 
134ebfedea0SLionel Sambuc /* Upper/Lower Bounds */
135ebfedea0SLionel Sambuc # define SSL2_MAX_MASTER_KEY_LENGTH_IN_BITS      256
136ebfedea0SLionel Sambuc # ifdef OPENSSL_SYS_MPE
137ebfedea0SLionel Sambuc #  define SSL2_MAX_RECORD_LENGTH_2_BYTE_HEADER    29998u
138ebfedea0SLionel Sambuc # else
139*0a6a1f1dSLionel Sambuc #  define SSL2_MAX_RECORD_LENGTH_2_BYTE_HEADER    32767u
140*0a6a1f1dSLionel Sambuc                                                        /* 2^15-1 */
141ebfedea0SLionel Sambuc # endif
142ebfedea0SLionel Sambuc # define SSL2_MAX_RECORD_LENGTH_3_BYTE_HEADER    16383/* 2^14-1 */
143ebfedea0SLionel Sambuc 
144ebfedea0SLionel Sambuc # define SSL2_CHALLENGE_LENGTH   16
145*0a6a1f1dSLionel Sambuc /*
146*0a6a1f1dSLionel Sambuc  * #define SSL2_CHALLENGE_LENGTH 32
147*0a6a1f1dSLionel Sambuc  */
148ebfedea0SLionel Sambuc # define SSL2_MIN_CHALLENGE_LENGTH       16
149ebfedea0SLionel Sambuc # define SSL2_MAX_CHALLENGE_LENGTH       32
150ebfedea0SLionel Sambuc # define SSL2_CONNECTION_ID_LENGTH       16
151ebfedea0SLionel Sambuc # define SSL2_MAX_CONNECTION_ID_LENGTH   16
152ebfedea0SLionel Sambuc # define SSL2_SSL_SESSION_ID_LENGTH      16
153ebfedea0SLionel Sambuc # define SSL2_MAX_CERT_CHALLENGE_LENGTH  32
154ebfedea0SLionel Sambuc # define SSL2_MIN_CERT_CHALLENGE_LENGTH  16
155ebfedea0SLionel Sambuc # define SSL2_MAX_KEY_MATERIAL_LENGTH    24
156ebfedea0SLionel Sambuc 
157ebfedea0SLionel Sambuc # ifndef HEADER_SSL_LOCL_H
158ebfedea0SLionel Sambuc #  define  CERT           char
159ebfedea0SLionel Sambuc # endif
160ebfedea0SLionel Sambuc 
161ebfedea0SLionel Sambuc # ifndef OPENSSL_NO_SSL_INTERN
162ebfedea0SLionel Sambuc 
163*0a6a1f1dSLionel Sambuc typedef struct ssl2_state_st {
164ebfedea0SLionel Sambuc     int three_byte_header;
165ebfedea0SLionel Sambuc     int clear_text;             /* clear text */
166ebfedea0SLionel Sambuc     int escape;                 /* not used in SSLv2 */
167ebfedea0SLionel Sambuc     int ssl2_rollback;          /* used if SSLv23 rolled back to SSLv2 */
168*0a6a1f1dSLionel Sambuc     /*
169*0a6a1f1dSLionel Sambuc      * non-blocking io info, used to make sure the same args were passwd
170*0a6a1f1dSLionel Sambuc      */
171ebfedea0SLionel Sambuc     unsigned int wnum;          /* number of bytes sent so far */
172ebfedea0SLionel Sambuc     int wpend_tot;
173ebfedea0SLionel Sambuc     const unsigned char *wpend_buf;
174ebfedea0SLionel Sambuc     int wpend_off;              /* offset to data to write */
175ebfedea0SLionel Sambuc     int wpend_len;              /* number of bytes passwd to write */
176ebfedea0SLionel Sambuc     int wpend_ret;              /* number of bytes to return to caller */
177ebfedea0SLionel Sambuc     /* buffer raw data */
178ebfedea0SLionel Sambuc     int rbuf_left;
179ebfedea0SLionel Sambuc     int rbuf_offs;
180ebfedea0SLionel Sambuc     unsigned char *rbuf;
181ebfedea0SLionel Sambuc     unsigned char *wbuf;
182*0a6a1f1dSLionel Sambuc     unsigned char *write_ptr;   /* used to point to the start due to 2/3 byte
183*0a6a1f1dSLionel Sambuc                                  * header. */
184ebfedea0SLionel Sambuc     unsigned int padding;
185ebfedea0SLionel Sambuc     unsigned int rlength;       /* passed to ssl2_enc */
186ebfedea0SLionel Sambuc     int ract_data_length;       /* Set when things are encrypted. */
187ebfedea0SLionel Sambuc     unsigned int wlength;       /* passed to ssl2_enc */
188ebfedea0SLionel Sambuc     int wact_data_length;       /* Set when things are decrypted. */
189ebfedea0SLionel Sambuc     unsigned char *ract_data;
190ebfedea0SLionel Sambuc     unsigned char *wact_data;
191ebfedea0SLionel Sambuc     unsigned char *mac_data;
192ebfedea0SLionel Sambuc     unsigned char *read_key;
193ebfedea0SLionel Sambuc     unsigned char *write_key;
194ebfedea0SLionel Sambuc     /* Stuff specifically to do with this SSL session */
195ebfedea0SLionel Sambuc     unsigned int challenge_length;
196ebfedea0SLionel Sambuc     unsigned char challenge[SSL2_MAX_CHALLENGE_LENGTH];
197ebfedea0SLionel Sambuc     unsigned int conn_id_length;
198ebfedea0SLionel Sambuc     unsigned char conn_id[SSL2_MAX_CONNECTION_ID_LENGTH];
199ebfedea0SLionel Sambuc     unsigned int key_material_length;
200ebfedea0SLionel Sambuc     unsigned char key_material[SSL2_MAX_KEY_MATERIAL_LENGTH * 2];
201ebfedea0SLionel Sambuc     unsigned long read_sequence;
202ebfedea0SLionel Sambuc     unsigned long write_sequence;
203ebfedea0SLionel Sambuc     struct {
204ebfedea0SLionel Sambuc         unsigned int conn_id_length;
205ebfedea0SLionel Sambuc         unsigned int cert_type;
206ebfedea0SLionel Sambuc         unsigned int cert_length;
207ebfedea0SLionel Sambuc         unsigned int csl;
208ebfedea0SLionel Sambuc         unsigned int clear;
209ebfedea0SLionel Sambuc         unsigned int enc;
210ebfedea0SLionel Sambuc         unsigned char ccl[SSL2_MAX_CERT_CHALLENGE_LENGTH];
211ebfedea0SLionel Sambuc         unsigned int cipher_spec_length;
212ebfedea0SLionel Sambuc         unsigned int session_id_length;
213ebfedea0SLionel Sambuc         unsigned int clen;
214ebfedea0SLionel Sambuc         unsigned int rlen;
215ebfedea0SLionel Sambuc     } tmp;
216ebfedea0SLionel Sambuc } SSL2_STATE;
217ebfedea0SLionel Sambuc 
218ebfedea0SLionel Sambuc # endif
219ebfedea0SLionel Sambuc 
220ebfedea0SLionel Sambuc /* SSLv2 */
221ebfedea0SLionel Sambuc /* client */
222ebfedea0SLionel Sambuc # define SSL2_ST_SEND_CLIENT_HELLO_A             (0x10|SSL_ST_CONNECT)
223ebfedea0SLionel Sambuc # define SSL2_ST_SEND_CLIENT_HELLO_B             (0x11|SSL_ST_CONNECT)
224ebfedea0SLionel Sambuc # define SSL2_ST_GET_SERVER_HELLO_A              (0x20|SSL_ST_CONNECT)
225ebfedea0SLionel Sambuc # define SSL2_ST_GET_SERVER_HELLO_B              (0x21|SSL_ST_CONNECT)
226ebfedea0SLionel Sambuc # define SSL2_ST_SEND_CLIENT_MASTER_KEY_A        (0x30|SSL_ST_CONNECT)
227ebfedea0SLionel Sambuc # define SSL2_ST_SEND_CLIENT_MASTER_KEY_B        (0x31|SSL_ST_CONNECT)
228ebfedea0SLionel Sambuc # define SSL2_ST_SEND_CLIENT_FINISHED_A          (0x40|SSL_ST_CONNECT)
229ebfedea0SLionel Sambuc # define SSL2_ST_SEND_CLIENT_FINISHED_B          (0x41|SSL_ST_CONNECT)
230ebfedea0SLionel Sambuc # define SSL2_ST_SEND_CLIENT_CERTIFICATE_A       (0x50|SSL_ST_CONNECT)
231ebfedea0SLionel Sambuc # define SSL2_ST_SEND_CLIENT_CERTIFICATE_B       (0x51|SSL_ST_CONNECT)
232ebfedea0SLionel Sambuc # define SSL2_ST_SEND_CLIENT_CERTIFICATE_C       (0x52|SSL_ST_CONNECT)
233ebfedea0SLionel Sambuc # define SSL2_ST_SEND_CLIENT_CERTIFICATE_D       (0x53|SSL_ST_CONNECT)
234ebfedea0SLionel Sambuc # define SSL2_ST_GET_SERVER_VERIFY_A             (0x60|SSL_ST_CONNECT)
235ebfedea0SLionel Sambuc # define SSL2_ST_GET_SERVER_VERIFY_B             (0x61|SSL_ST_CONNECT)
236ebfedea0SLionel Sambuc # define SSL2_ST_GET_SERVER_FINISHED_A           (0x70|SSL_ST_CONNECT)
237ebfedea0SLionel Sambuc # define SSL2_ST_GET_SERVER_FINISHED_B           (0x71|SSL_ST_CONNECT)
238ebfedea0SLionel Sambuc # define SSL2_ST_CLIENT_START_ENCRYPTION         (0x80|SSL_ST_CONNECT)
239ebfedea0SLionel Sambuc # define SSL2_ST_X509_GET_CLIENT_CERTIFICATE     (0x90|SSL_ST_CONNECT)
240ebfedea0SLionel Sambuc /* server */
241ebfedea0SLionel Sambuc # define SSL2_ST_GET_CLIENT_HELLO_A              (0x10|SSL_ST_ACCEPT)
242ebfedea0SLionel Sambuc # define SSL2_ST_GET_CLIENT_HELLO_B              (0x11|SSL_ST_ACCEPT)
243ebfedea0SLionel Sambuc # define SSL2_ST_GET_CLIENT_HELLO_C              (0x12|SSL_ST_ACCEPT)
244ebfedea0SLionel Sambuc # define SSL2_ST_SEND_SERVER_HELLO_A             (0x20|SSL_ST_ACCEPT)
245ebfedea0SLionel Sambuc # define SSL2_ST_SEND_SERVER_HELLO_B             (0x21|SSL_ST_ACCEPT)
246ebfedea0SLionel Sambuc # define SSL2_ST_GET_CLIENT_MASTER_KEY_A         (0x30|SSL_ST_ACCEPT)
247ebfedea0SLionel Sambuc # define SSL2_ST_GET_CLIENT_MASTER_KEY_B         (0x31|SSL_ST_ACCEPT)
248ebfedea0SLionel Sambuc # define SSL2_ST_SEND_SERVER_VERIFY_A            (0x40|SSL_ST_ACCEPT)
249ebfedea0SLionel Sambuc # define SSL2_ST_SEND_SERVER_VERIFY_B            (0x41|SSL_ST_ACCEPT)
250ebfedea0SLionel Sambuc # define SSL2_ST_SEND_SERVER_VERIFY_C            (0x42|SSL_ST_ACCEPT)
251ebfedea0SLionel Sambuc # define SSL2_ST_GET_CLIENT_FINISHED_A           (0x50|SSL_ST_ACCEPT)
252ebfedea0SLionel Sambuc # define SSL2_ST_GET_CLIENT_FINISHED_B           (0x51|SSL_ST_ACCEPT)
253ebfedea0SLionel Sambuc # define SSL2_ST_SEND_SERVER_FINISHED_A          (0x60|SSL_ST_ACCEPT)
254ebfedea0SLionel Sambuc # define SSL2_ST_SEND_SERVER_FINISHED_B          (0x61|SSL_ST_ACCEPT)
255ebfedea0SLionel Sambuc # define SSL2_ST_SEND_REQUEST_CERTIFICATE_A      (0x70|SSL_ST_ACCEPT)
256ebfedea0SLionel Sambuc # define SSL2_ST_SEND_REQUEST_CERTIFICATE_B      (0x71|SSL_ST_ACCEPT)
257ebfedea0SLionel Sambuc # define SSL2_ST_SEND_REQUEST_CERTIFICATE_C      (0x72|SSL_ST_ACCEPT)
258ebfedea0SLionel Sambuc # define SSL2_ST_SEND_REQUEST_CERTIFICATE_D      (0x73|SSL_ST_ACCEPT)
259ebfedea0SLionel Sambuc # define SSL2_ST_SERVER_START_ENCRYPTION         (0x80|SSL_ST_ACCEPT)
260ebfedea0SLionel Sambuc # define SSL2_ST_X509_GET_SERVER_CERTIFICATE     (0x90|SSL_ST_ACCEPT)
261ebfedea0SLionel Sambuc 
262ebfedea0SLionel Sambuc #ifdef  __cplusplus
263ebfedea0SLionel Sambuc }
264ebfedea0SLionel Sambuc #endif
265ebfedea0SLionel Sambuc #endif
266