summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/bio_enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/evp/bio_enc.c')
-rw-r--r--src/lib/libcrypto/evp/bio_enc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/evp/bio_enc.c b/src/lib/libcrypto/evp/bio_enc.c
index 7c7cf9a8b3..712222a7cd 100644
--- a/src/lib/libcrypto/evp/bio_enc.c
+++ b/src/lib/libcrypto/evp/bio_enc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bio_enc.c,v 1.20 2017/05/02 03:59:44 deraadt Exp $ */ 1/* $OpenBSD: bio_enc.c,v 1.21 2018/05/02 15:51:41 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -87,7 +87,7 @@ 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
90static BIO_METHOD methods_enc = { 90static const BIO_METHOD methods_enc = {
91 .type = BIO_TYPE_CIPHER, 91 .type = BIO_TYPE_CIPHER,
92 .name = "cipher", 92 .name = "cipher",
93 .bwrite = enc_write, 93 .bwrite = enc_write,
@@ -98,7 +98,7 @@ static BIO_METHOD methods_enc = {
98 .callback_ctrl = enc_callback_ctrl 98 .callback_ctrl = enc_callback_ctrl
99}; 99};
100 100
101BIO_METHOD * 101const BIO_METHOD *
102BIO_f_cipher(void) 102BIO_f_cipher(void)
103{ 103{
104 return (&methods_enc); 104 return (&methods_enc);