diff options
author | tb <> | 2018-05-02 15:51:41 +0000 |
---|---|---|
committer | tb <> | 2018-05-02 15:51:41 +0000 |
commit | 7f29a6625f497f02beaea0c30e17d4084e4851e5 (patch) | |
tree | 81ad224bb116b46338273c29efaaae67ff4051ac /src/lib/libcrypto/evp/bio_b64.c | |
parent | 66cfd2f5d49458fe9a3bb27319840e5bd209a81e (diff) | |
download | openbsd-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_b64.c')
-rw-r--r-- | src/lib/libcrypto/evp/bio_b64.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/evp/bio_b64.c b/src/lib/libcrypto/evp/bio_b64.c index b54e8793ec..a13d26a884 100644 --- a/src/lib/libcrypto/evp/bio_b64.c +++ b/src/lib/libcrypto/evp/bio_b64.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio_b64.c,v 1.20 2015/02/07 13:19:15 doug Exp $ */ | 1 | /* $OpenBSD: bio_b64.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 | * |
@@ -91,7 +91,7 @@ typedef struct b64_struct { | |||
91 | char tmp[B64_BLOCK_SIZE]; | 91 | char tmp[B64_BLOCK_SIZE]; |
92 | } BIO_B64_CTX; | 92 | } BIO_B64_CTX; |
93 | 93 | ||
94 | static BIO_METHOD methods_b64 = { | 94 | static const BIO_METHOD methods_b64 = { |
95 | .type = BIO_TYPE_BASE64, | 95 | .type = BIO_TYPE_BASE64, |
96 | .name = "base64 encoding", | 96 | .name = "base64 encoding", |
97 | .bwrite = b64_write, | 97 | .bwrite = b64_write, |
@@ -103,7 +103,7 @@ static BIO_METHOD methods_b64 = { | |||
103 | .callback_ctrl = b64_callback_ctrl | 103 | .callback_ctrl = b64_callback_ctrl |
104 | }; | 104 | }; |
105 | 105 | ||
106 | BIO_METHOD * | 106 | const BIO_METHOD * |
107 | BIO_f_base64(void) | 107 | BIO_f_base64(void) |
108 | { | 108 | { |
109 | return (&methods_b64); | 109 | return (&methods_b64); |