Deleted Added
full compact
s23_clnt.c (63249) s23_clnt.c (68654)
1/* ssl/s23_clnt.c */
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 *

--- 41 unchanged lines hidden (view full) ---

50 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
51 * SUCH DAMAGE.
52 *
53 * The licence and distribution terms for any publically available version or
54 * derivative of this code cannot be changed. i.e. this code cannot simply be
55 * copied and put under another distribution licence
56 * [including the GNU Public Licence.]
57 *
1/* ssl/s23_clnt.c */
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 *

--- 41 unchanged lines hidden (view full) ---

50 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
51 * SUCH DAMAGE.
52 *
53 * The licence and distribution terms for any publically available version or
54 * derivative of this code cannot be changed. i.e. this code cannot simply be
55 * copied and put under another distribution licence
56 * [including the GNU Public Licence.]
57 *
58 * $FreeBSD: head/crypto/openssl/ssl/s23_clnt.c 59194 2000-04-13 07:15:03Z kris $
58 * $FreeBSD: head/crypto/openssl/ssl/s23_clnt.c 68654 2000-11-13 02:20:29Z kris $
59 */
60
61#include <stdio.h>
62#include <openssl/buffer.h>
63#include <openssl/rand.h>
64#include <openssl/objects.h>
65#include <openssl/evp.h>
66#include "ssl_locl.h"

--- 296 unchanged lines hidden (view full) ---

363 if (!BUF_MEM_grow(s->init_buf,
364 SSL2_MAX_RECORD_LENGTH_3_BYTE_HEADER))
365 {
366 SSLerr(SSL_F_SSL23_GET_SERVER_HELLO,ERR_R_BUF_LIB);
367 goto err;
368 }
369
370 s->state=SSL2_ST_GET_SERVER_HELLO_A;
59 */
60
61#include <stdio.h>
62#include <openssl/buffer.h>
63#include <openssl/rand.h>
64#include <openssl/objects.h>
65#include <openssl/evp.h>
66#include "ssl_locl.h"

--- 296 unchanged lines hidden (view full) ---

363 if (!BUF_MEM_grow(s->init_buf,
364 SSL2_MAX_RECORD_LENGTH_3_BYTE_HEADER))
365 {
366 SSLerr(SSL_F_SSL23_GET_SERVER_HELLO,ERR_R_BUF_LIB);
367 goto err;
368 }
369
370 s->state=SSL2_ST_GET_SERVER_HELLO_A;
371 s->s2->ssl2_rollback=1;
371 if (!(s->client_version == SSL2_VERSION))
372 /* use special padding (SSL 3.0 draft/RFC 2246, App. E.2) */
373 s->s2->ssl2_rollback=1;
372
373 /* setup the 5 bytes we have read so we get them from
374 * the sslv2 buffer */
375 s->rstate=SSL_ST_READ_HEADER;
376 s->packet_length=n;
377 s->packet= &(s->s2->rbuf[0]);
378 memcpy(s->packet,buf,n);
379 s->s2->rbuf_left=n;

--- 96 unchanged lines hidden ---
374
375 /* setup the 5 bytes we have read so we get them from
376 * the sslv2 buffer */
377 s->rstate=SSL_ST_READ_HEADER;
378 s->packet_length=n;
379 s->packet= &(s->s2->rbuf[0]);
380 memcpy(s->packet,buf,n);
381 s->s2->rbuf_left=n;

--- 96 unchanged lines hidden ---