ssl23.h revision 296465
194576Sdes/* ssl/ssl23.h */ 294576Sdes/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 394576Sdes * All rights reserved. 494576Sdes * 594576Sdes * This package is an SSL implementation written 694576Sdes * by Eric Young (eay@cryptsoft.com). 794576Sdes * The implementation was written so as to conform with Netscapes SSL. 894576Sdes * 994576Sdes * This library is free for commercial and non-commercial use as long as 1094576Sdes * the following conditions are aheared to. The following conditions 1194576Sdes * apply to all code found in this distribution, be it the RC4, RSA, 1294576Sdes * lhash, DES, etc., code; not just the SSL code. The SSL documentation 1394576Sdes * included with this distribution is covered by the same copyright terms 1494576Sdes * except that the holder is Tim Hudson (tjh@cryptsoft.com). 1594576Sdes * 1694576Sdes * Copyright remains Eric Young's, and as such any Copyright notices in 1794576Sdes * the code are not to be removed. 1894576Sdes * If this package is used in a product, Eric Young should be given attribution 1994576Sdes * as the author of the parts of the library used. 2094576Sdes * This can be in the form of a textual message at program startup or 2194576Sdes * in documentation (online or textual) provided with the package. 2294576Sdes * 2394576Sdes * Redistribution and use in source and binary forms, with or without 2494576Sdes * modification, are permitted provided that the following conditions 2594576Sdes * are met: 2694576Sdes * 1. Redistributions of source code must retain the copyright 2794576Sdes * notice, this list of conditions and the following disclaimer. 2894576Sdes * 2. Redistributions in binary form must reproduce the above copyright 2994576Sdes * notice, this list of conditions and the following disclaimer in the 3094576Sdes * documentation and/or other materials provided with the distribution. 3194576Sdes * 3. All advertising materials mentioning features or use of this software 3294576Sdes * must display the following acknowledgement: 3394576Sdes * "This product includes cryptographic software written by 3494576Sdes * Eric Young (eay@cryptsoft.com)" 3594576Sdes * The word 'cryptographic' can be left out if the rouines from the library 3694576Sdes * being used are not cryptographic related :-). 3794576Sdes * 4. If you include any Windows specific code (or a derivative thereof) from 3894576Sdes * the apps directory (application code) you must include an acknowledgement: 3994576Sdes * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" 4094576Sdes * 4194576Sdes * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND 4294576Sdes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 4394576Sdes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 4494576Sdes * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 4594576Sdes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 4694576Sdes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 4794576Sdes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 4894576Sdes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 4994576Sdes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 5094576Sdes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 5194576Sdes * SUCH DAMAGE. 5294576Sdes * 5396198Sdes * The licence and distribution terms for any publically available version or 5494576Sdes * derivative of this code cannot be changed. i.e. this code cannot simply be 5594576Sdes * copied and put under another distribution licence 5694576Sdes * [including the GNU Public Licence.] 5794576Sdes */ 5894576Sdes 5994576Sdes#ifndef HEADER_SSL23_H 6094576Sdes# define HEADER_SSL23_H 6194576Sdes 6294576Sdes#ifdef __cplusplus 63extern "C" { 64#endif 65 66/* 67 * client 68 */ 69/* write to server */ 70# define SSL23_ST_CW_CLNT_HELLO_A (0x210|SSL_ST_CONNECT) 71# define SSL23_ST_CW_CLNT_HELLO_B (0x211|SSL_ST_CONNECT) 72/* read from server */ 73# define SSL23_ST_CR_SRVR_HELLO_A (0x220|SSL_ST_CONNECT) 74# define SSL23_ST_CR_SRVR_HELLO_B (0x221|SSL_ST_CONNECT) 75 76/* server */ 77/* read from client */ 78# define SSL23_ST_SR_CLNT_HELLO_A (0x210|SSL_ST_ACCEPT) 79# define SSL23_ST_SR_CLNT_HELLO_B (0x211|SSL_ST_ACCEPT) 80 81#ifdef __cplusplus 82} 83#endif 84#endif 85