Deleted Added
full compact
bio_enc.c (68651) bio_enc.c (100936)
1/* crypto/evp/bio_enc.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 *

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

101 return(&methods_enc);
102 }
103
104static int enc_new(BIO *bi)
105 {
106 BIO_ENC_CTX *ctx;
107
108 ctx=(BIO_ENC_CTX *)OPENSSL_malloc(sizeof(BIO_ENC_CTX));
1/* crypto/evp/bio_enc.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 *

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

101 return(&methods_enc);
102 }
103
104static int enc_new(BIO *bi)
105 {
106 BIO_ENC_CTX *ctx;
107
108 ctx=(BIO_ENC_CTX *)OPENSSL_malloc(sizeof(BIO_ENC_CTX));
109 EVP_CIPHER_CTX_init(&ctx->cipher);
110 if (ctx == NULL) return(0);
109 if (ctx == NULL) return(0);
110 EVP_CIPHER_CTX_init(&ctx->cipher);
111
112 ctx->buf_len=0;
113 ctx->buf_off=0;
114 ctx->cont=1;
115 ctx->finished=0;
116 ctx->ok=1;
117
118 bi->init=0;

--- 307 unchanged lines hidden ---
111
112 ctx->buf_len=0;
113 ctx->buf_off=0;
114 ctx->cont=1;
115 ctx->finished=0;
116 ctx->ok=1;
117
118 bi->init=0;

--- 307 unchanged lines hidden ---