summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/bio_enc.c
diff options
context:
space:
mode:
authortb <>2018-05-02 15:51:41 +0000
committertb <>2018-05-02 15:51:41 +0000
commit7f29a6625f497f02beaea0c30e17d4084e4851e5 (patch)
tree81ad224bb116b46338273c29efaaae67ff4051ac /src/lib/libcrypto/evp/bio_enc.c
parent66cfd2f5d49458fe9a3bb27319840e5bd209a81e (diff)
downloadopenbsd-7f29a6625f497f02beaea0c30e17d4084e4851e5.tar.gz
openbsd-7f29a6625f497f02beaea0c30e17d4084e4851e5.tar.bz2
openbsd-7f29a6625f497f02beaea0c30e17d4084e4851e5.zip
Add const qualifiers to return value of BIO_f_{base64,cipher,md}().
tested in bulk by sthen ok jsing
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);