ssl_lib.c (68651) | ssl_lib.c (72613) |
---|---|
1/*! \file ssl/ssl_lib.c 2 * \brief Version independent SSL functions. 3 */ 4/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 5 * All rights reserved. 6 * 7 * This package is an SSL implementation written 8 * by Eric Young (eay@cryptsoft.com). --- 105 unchanged lines hidden (view full) --- 114 s->type=0; 115 116 s->state=SSL_ST_BEFORE|((s->server)?SSL_ST_ACCEPT:SSL_ST_CONNECT); 117 118 s->version=s->method->version; 119 s->client_version=s->version; 120 s->rwstate=SSL_NOTHING; 121 s->rstate=SSL_ST_READ_HEADER; | 1/*! \file ssl/ssl_lib.c 2 * \brief Version independent SSL functions. 3 */ 4/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 5 * All rights reserved. 6 * 7 * This package is an SSL implementation written 8 * by Eric Young (eay@cryptsoft.com). --- 105 unchanged lines hidden (view full) --- 114 s->type=0; 115 116 s->state=SSL_ST_BEFORE|((s->server)?SSL_ST_ACCEPT:SSL_ST_CONNECT); 117 118 s->version=s->method->version; 119 s->client_version=s->version; 120 s->rwstate=SSL_NOTHING; 121 s->rstate=SSL_ST_READ_HEADER; |
122#if 0 |
|
122 s->read_ahead=s->ctx->read_ahead; | 123 s->read_ahead=s->ctx->read_ahead; |
124#endif |
|
123 124 if (s->init_buf != NULL) 125 { 126 BUF_MEM_free(s->init_buf); 127 s->init_buf=NULL; 128 } 129 130 ssl_clear_cipher_ctx(s); --- 93 unchanged lines hidden (view full) --- 224 if (!s->method->ssl_new(s)) 225 goto err; 226 227 s->quiet_shutdown=ctx->quiet_shutdown; 228 s->references=1; 229 s->server=(ctx->method->ssl_accept == ssl_undefined_function)?0:1; 230 s->options=ctx->options; 231 s->mode=ctx->mode; | 125 126 if (s->init_buf != NULL) 127 { 128 BUF_MEM_free(s->init_buf); 129 s->init_buf=NULL; 130 } 131 132 ssl_clear_cipher_ctx(s); --- 93 unchanged lines hidden (view full) --- 226 if (!s->method->ssl_new(s)) 227 goto err; 228 229 s->quiet_shutdown=ctx->quiet_shutdown; 230 s->references=1; 231 s->server=(ctx->method->ssl_accept == ssl_undefined_function)?0:1; 232 s->options=ctx->options; 233 s->mode=ctx->mode; |
234 s->read_ahead=ctx->read_ahead; /* used to happen in SSL_clear */ |
|
232 SSL_clear(s); 233 234 CRYPTO_new_ex_data(ssl_meth,s,&s->ex_data); 235 236 return(s); 237err: 238 if (s != NULL) 239 { --- 1822 unchanged lines hidden --- | 235 SSL_clear(s); 236 237 CRYPTO_new_ex_data(ssl_meth,s,&s->ex_data); 238 239 return(s); 240err: 241 if (s != NULL) 242 { --- 1822 unchanged lines hidden --- |