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_md.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_md.c')
-rw-r--r-- | src/lib/libcrypto/evp/bio_md.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/evp/bio_md.c b/src/lib/libcrypto/evp/bio_md.c index b1973746a7..44f72185dc 100644 --- a/src/lib/libcrypto/evp/bio_md.c +++ b/src/lib/libcrypto/evp/bio_md.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio_md.c,v 1.14 2014/07/11 08:44:48 jsing Exp $ */ | 1 | /* $OpenBSD: bio_md.c,v 1.15 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 | * |
@@ -74,7 +74,7 @@ static int md_new(BIO *h); | |||
74 | static int md_free(BIO *data); | 74 | static int md_free(BIO *data); |
75 | static long md_callback_ctrl(BIO *h, int cmd, bio_info_cb *fp); | 75 | static long md_callback_ctrl(BIO *h, int cmd, bio_info_cb *fp); |
76 | 76 | ||
77 | static BIO_METHOD methods_md = { | 77 | static const BIO_METHOD methods_md = { |
78 | .type = BIO_TYPE_MD, | 78 | .type = BIO_TYPE_MD, |
79 | .name = "message digest", | 79 | .name = "message digest", |
80 | .bwrite = md_write, | 80 | .bwrite = md_write, |
@@ -86,7 +86,7 @@ static BIO_METHOD methods_md = { | |||
86 | .callback_ctrl = md_callback_ctrl | 86 | .callback_ctrl = md_callback_ctrl |
87 | }; | 87 | }; |
88 | 88 | ||
89 | BIO_METHOD * | 89 | const BIO_METHOD * |
90 | BIO_f_md(void) | 90 | BIO_f_md(void) |
91 | { | 91 | { |
92 | return (&methods_md); | 92 | return (&methods_md); |