summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bss_bio.c
diff options
context:
space:
mode:
authortb <>2018-05-01 13:29:10 +0000
committertb <>2018-05-01 13:29:10 +0000
commit0348b99054499311191f1db880064066ce1c64b2 (patch)
tree7876885f1d21e5b53f5a28cdd2d502808082a4fc /src/lib/libcrypto/bio/bss_bio.c
parenta8b69163d3bb4f0d18483bcbdec0f92c676330df (diff)
downloadopenbsd-0348b99054499311191f1db880064066ce1c64b2.tar.gz
openbsd-0348b99054499311191f1db880064066ce1c64b2.tar.bz2
openbsd-0348b99054499311191f1db880064066ce1c64b2.zip
const for BIO_{new,set}() and most of the BIO_{f,s}_*() family of
functions. ok beck, jsing
Diffstat (limited to 'src/lib/libcrypto/bio/bss_bio.c')
-rw-r--r--src/lib/libcrypto/bio/bss_bio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bio/bss_bio.c b/src/lib/libcrypto/bio/bss_bio.c
index 20eb9a9829..74f86a51ee 100644
--- a/src/lib/libcrypto/bio/bss_bio.c
+++ b/src/lib/libcrypto/bio/bss_bio.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bss_bio.c,v 1.23 2017/01/29 17:49:22 beck Exp $ */ 1/* $OpenBSD: bss_bio.c,v 1.24 2018/05/01 13:29:09 tb Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2003 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2003 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -94,7 +94,7 @@ static int bio_puts(BIO *bio, const char *str);
94static int bio_make_pair(BIO *bio1, BIO *bio2); 94static int bio_make_pair(BIO *bio1, BIO *bio2);
95static void bio_destroy_pair(BIO *bio); 95static void bio_destroy_pair(BIO *bio);
96 96
97static BIO_METHOD methods_biop = { 97static const BIO_METHOD methods_biop = {
98 .type = BIO_TYPE_BIO, 98 .type = BIO_TYPE_BIO,
99 .name = "BIO pair", 99 .name = "BIO pair",
100 .bwrite = bio_write, 100 .bwrite = bio_write,
@@ -105,7 +105,7 @@ static BIO_METHOD methods_biop = {
105 .destroy = bio_free 105 .destroy = bio_free
106}; 106};
107 107
108BIO_METHOD * 108const BIO_METHOD *
109BIO_s_bio(void) 109BIO_s_bio(void)
110{ 110{
111 return &methods_biop; 111 return &methods_biop;