ssl2.h (109999) | ssl2.h (238405) |
---|---|
1/* ssl/ssl2.h */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 141 unchanged lines hidden (view full) --- 150#define SSL2_MAX_CERT_CHALLENGE_LENGTH 32 151#define SSL2_MIN_CERT_CHALLENGE_LENGTH 16 152#define SSL2_MAX_KEY_MATERIAL_LENGTH 24 153 154#ifndef HEADER_SSL_LOCL_H 155#define CERT char 156#endif 157 | 1/* ssl/ssl2.h */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 141 unchanged lines hidden (view full) --- 150#define SSL2_MAX_CERT_CHALLENGE_LENGTH 32 151#define SSL2_MIN_CERT_CHALLENGE_LENGTH 16 152#define SSL2_MAX_KEY_MATERIAL_LENGTH 24 153 154#ifndef HEADER_SSL_LOCL_H 155#define CERT char 156#endif 157 |
158#ifndef OPENSSL_NO_SSL_INTERN 159 |
|
158typedef struct ssl2_state_st 159 { 160 int three_byte_header; 161 int clear_text; /* clear text */ 162 int escape; /* not used in SSLv2 */ 163 int ssl2_rollback; /* used if SSLv23 rolled back to SSLv2 */ 164 165 /* non-blocking io info, used to make sure the same --- 48 unchanged lines hidden (view full) --- 214 unsigned char ccl[SSL2_MAX_CERT_CHALLENGE_LENGTH]; 215 unsigned int cipher_spec_length; 216 unsigned int session_id_length; 217 unsigned int clen; 218 unsigned int rlen; 219 } tmp; 220 } SSL2_STATE; 221 | 160typedef struct ssl2_state_st 161 { 162 int three_byte_header; 163 int clear_text; /* clear text */ 164 int escape; /* not used in SSLv2 */ 165 int ssl2_rollback; /* used if SSLv23 rolled back to SSLv2 */ 166 167 /* non-blocking io info, used to make sure the same --- 48 unchanged lines hidden (view full) --- 216 unsigned char ccl[SSL2_MAX_CERT_CHALLENGE_LENGTH]; 217 unsigned int cipher_spec_length; 218 unsigned int session_id_length; 219 unsigned int clen; 220 unsigned int rlen; 221 } tmp; 222 } SSL2_STATE; 223 |
224#endif 225 |
|
222/* SSLv2 */ 223/* client */ 224#define SSL2_ST_SEND_CLIENT_HELLO_A (0x10|SSL_ST_CONNECT) 225#define SSL2_ST_SEND_CLIENT_HELLO_B (0x11|SSL_ST_CONNECT) 226#define SSL2_ST_GET_SERVER_HELLO_A (0x20|SSL_ST_CONNECT) 227#define SSL2_ST_GET_SERVER_HELLO_B (0x21|SSL_ST_CONNECT) 228#define SSL2_ST_SEND_CLIENT_MASTER_KEY_A (0x30|SSL_ST_CONNECT) 229#define SSL2_ST_SEND_CLIENT_MASTER_KEY_B (0x31|SSL_ST_CONNECT) --- 39 unchanged lines hidden --- | 226/* SSLv2 */ 227/* client */ 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) --- 39 unchanged lines hidden --- |