1281681Srpaulo/* ssl/ssl23.h */
2281681Srpaulo/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3281681Srpaulo * All rights reserved.
4281681Srpaulo *
5281681Srpaulo * This package is an SSL implementation written
6281681Srpaulo * by Eric Young (eay@cryptsoft.com).
7281681Srpaulo * The implementation was written so as to conform with Netscapes SSL.
8281681Srpaulo *
9281681Srpaulo * This library is free for commercial and non-commercial use as long as
10281681Srpaulo * the following conditions are aheared to.  The following conditions
11281681Srpaulo * apply to all code found in this distribution, be it the RC4, RSA,
12281681Srpaulo * lhash, DES, etc., code; not just the SSL code.  The SSL documentation
13281681Srpaulo * included with this distribution is covered by the same copyright terms
14281681Srpaulo * except that the holder is Tim Hudson (tjh@cryptsoft.com).
15281681Srpaulo *
16281681Srpaulo * Copyright remains Eric Young's, and as such any Copyright notices in
17281681Srpaulo * the code are not to be removed.
18281681Srpaulo * If this package is used in a product, Eric Young should be given attribution
19281681Srpaulo * as the author of the parts of the library used.
20281681Srpaulo * This can be in the form of a textual message at program startup or
21281681Srpaulo * in documentation (online or textual) provided with the package.
22281681Srpaulo *
23281681Srpaulo * Redistribution and use in source and binary forms, with or without
24281681Srpaulo * modification, are permitted provided that the following conditions
25281681Srpaulo * are met:
26281681Srpaulo * 1. Redistributions of source code must retain the copyright
27281681Srpaulo *    notice, this list of conditions and the following disclaimer.
28281681Srpaulo * 2. Redistributions in binary form must reproduce the above copyright
29281681Srpaulo *    notice, this list of conditions and the following disclaimer in the
30281681Srpaulo *    documentation and/or other materials provided with the distribution.
31281681Srpaulo * 3. All advertising materials mentioning features or use of this software
32281681Srpaulo *    must display the following acknowledgement:
33281681Srpaulo *    "This product includes cryptographic software written by
34281681Srpaulo *     Eric Young (eay@cryptsoft.com)"
35281681Srpaulo *    The word 'cryptographic' can be left out if the rouines from the library
36281681Srpaulo *    being used are not cryptographic related :-).
37281681Srpaulo * 4. If you include any Windows specific code (or a derivative thereof) from
38281681Srpaulo *    the apps directory (application code) you must include an acknowledgement:
39281681Srpaulo *    "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
40281681Srpaulo *
41281681Srpaulo * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
42281681Srpaulo * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
43281681Srpaulo * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
44281681Srpaulo * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
45281681Srpaulo * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
46281681Srpaulo * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
47281681Srpaulo * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48281681Srpaulo * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
49281681Srpaulo * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
50281681Srpaulo * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
51281681Srpaulo * SUCH DAMAGE.
52281681Srpaulo *
53281681Srpaulo * The licence and distribution terms for any publically available version or
54281681Srpaulo * derivative of this code cannot be changed.  i.e. this code cannot simply be
55281681Srpaulo * copied and put under another distribution licence
56281681Srpaulo * [including the GNU Public Licence.]
57281681Srpaulo */
58281681Srpaulo
59281681Srpaulo#ifndef HEADER_SSL23_H
60281681Srpaulo# define HEADER_SSL23_H
61281681Srpaulo
62281681Srpaulo#ifdef  __cplusplus
63281681Srpauloextern "C" {
64281681Srpaulo#endif
65281681Srpaulo
66281681Srpaulo/*
67281681Srpaulo * client
68281681Srpaulo */
69281681Srpaulo/* write to server */
70281681Srpaulo# define SSL23_ST_CW_CLNT_HELLO_A        (0x210|SSL_ST_CONNECT)
71281681Srpaulo# define SSL23_ST_CW_CLNT_HELLO_B        (0x211|SSL_ST_CONNECT)
72281681Srpaulo/* read from server */
73281681Srpaulo# define SSL23_ST_CR_SRVR_HELLO_A        (0x220|SSL_ST_CONNECT)
74281681Srpaulo# define SSL23_ST_CR_SRVR_HELLO_B        (0x221|SSL_ST_CONNECT)
75281681Srpaulo
76281681Srpaulo/* server */
77281681Srpaulo/* read from client */
78281681Srpaulo# define SSL23_ST_SR_CLNT_HELLO_A        (0x210|SSL_ST_ACCEPT)
79281681Srpaulo# define SSL23_ST_SR_CLNT_HELLO_B        (0x211|SSL_ST_ACCEPT)
80281681Srpaulo
81281681Srpaulo#ifdef  __cplusplus
82281681Srpaulo}
83281681Srpaulo#endif
84281681Srpaulo#endif
85281681Srpaulo