projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adapt cipher implementations to opaque EVP_CIPHER_CTX
[oweals/openssl.git]
/
crypto
/
evp
/
bio_enc.c
diff --git
a/crypto/evp/bio_enc.c
b/crypto/evp/bio_enc.c
index 86a2dc5743e68c1671f29f09b3c01d53881e2058..2e6ce33e4e5a4c25ed960968a2d78936c7c80f75 100644
(file)
--- a/
crypto/evp/bio_enc.c
+++ b/
crypto/evp/bio_enc.c
@@
-58,7
+58,7
@@
#include <stdio.h>
#include <errno.h>
#include <stdio.h>
#include <errno.h>
-#include "cryptlib.h"
+#include "
internal/
cryptlib.h"
#include <openssl/buffer.h>
#include <openssl/evp.h>
#include <openssl/buffer.h>
#include <openssl/evp.h>
@@
-112,17
+112,13
@@
static int enc_new(BIO *bi)
{
BIO_ENC_CTX *ctx;
{
BIO_ENC_CTX *ctx;
- ctx = OPENSSL_
m
alloc(sizeof(*ctx));
+ ctx = OPENSSL_
z
alloc(sizeof(*ctx));
if (ctx == NULL)
return (0);
if (ctx == NULL)
return (0);
- EVP_CIPHER_CTX_init(&ctx->cipher);
- ctx->buf_len = 0;
- ctx->buf_off = 0;
+ EVP_CIPHER_CTX_init(&ctx->cipher);
ctx->cont = 1;
ctx->cont = 1;
- ctx->finished = 0;
ctx->ok = 1;
ctx->ok = 1;
-
bi->init = 0;
bi->ptr = (char *)ctx;
bi->flags = 0;
bi->init = 0;
bi->ptr = (char *)ctx;
bi->flags = 0;