diff options
Diffstat (limited to 'src/lib/libcrypto/evp/bio_enc.c')
-rw-r--r-- | src/lib/libcrypto/evp/bio_enc.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/lib/libcrypto/evp/bio_enc.c b/src/lib/libcrypto/evp/bio_enc.c index 8fe9a45e48..3362c25768 100644 --- a/src/lib/libcrypto/evp/bio_enc.c +++ b/src/lib/libcrypto/evp/bio_enc.c | |||
@@ -87,18 +87,16 @@ typedef struct enc_struct | |||
87 | char buf[ENC_BLOCK_SIZE+BUF_OFFSET+2]; | 87 | char buf[ENC_BLOCK_SIZE+BUF_OFFSET+2]; |
88 | } BIO_ENC_CTX; | 88 | } BIO_ENC_CTX; |
89 | 89 | ||
90 | static BIO_METHOD methods_enc= | 90 | static BIO_METHOD methods_enc= { |
91 | { | 91 | .type = BIO_TYPE_CIPHER, |
92 | BIO_TYPE_CIPHER,"cipher", | 92 | .name = "cipher", |
93 | enc_write, | 93 | .bwrite = enc_write, |
94 | enc_read, | 94 | .bread = enc_read, |
95 | NULL, /* enc_puts, */ | 95 | .ctrl = enc_ctrl, |
96 | NULL, /* enc_gets, */ | 96 | .create = enc_new, |
97 | enc_ctrl, | 97 | .destroy = enc_free, |
98 | enc_new, | 98 | .callback_ctrl = enc_callback_ctrl |
99 | enc_free, | 99 | }; |
100 | enc_callback_ctrl, | ||
101 | }; | ||
102 | 100 | ||
103 | BIO_METHOD *BIO_f_cipher(void) | 101 | BIO_METHOD *BIO_f_cipher(void) |
104 | { | 102 | { |