summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bf_null.c
diff options
context:
space:
mode:
authortb <>2018-05-01 13:29:10 +0000
committertb <>2018-05-01 13:29:10 +0000
commit82267b005082127062ce8593ce4963d09c361e2e (patch)
tree7876885f1d21e5b53f5a28cdd2d502808082a4fc /src/lib/libcrypto/bio/bf_null.c
parent8b1e85eca7f06a392dbd8ae9b560599523c8de07 (diff)
downloadopenbsd-82267b005082127062ce8593ce4963d09c361e2e.tar.gz
openbsd-82267b005082127062ce8593ce4963d09c361e2e.tar.bz2
openbsd-82267b005082127062ce8593ce4963d09c361e2e.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/bf_null.c')
-rw-r--r--src/lib/libcrypto/bio/bf_null.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bio/bf_null.c b/src/lib/libcrypto/bio/bf_null.c
index 09d54b6b21..25abb8a574 100644
--- a/src/lib/libcrypto/bio/bf_null.c
+++ b/src/lib/libcrypto/bio/bf_null.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bf_null.c,v 1.11 2014/07/11 08:44:47 jsing Exp $ */ 1/* $OpenBSD: bf_null.c,v 1.12 2018/05/01 13:29:09 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 *
@@ -73,7 +73,7 @@ static int nullf_new(BIO *h);
73static int nullf_free(BIO *data); 73static int nullf_free(BIO *data);
74static long nullf_callback_ctrl(BIO *h, int cmd, bio_info_cb *fp); 74static long nullf_callback_ctrl(BIO *h, int cmd, bio_info_cb *fp);
75 75
76static BIO_METHOD methods_nullf = { 76static const BIO_METHOD methods_nullf = {
77 .type = BIO_TYPE_NULL_FILTER, 77 .type = BIO_TYPE_NULL_FILTER,
78 .name = "NULL filter", 78 .name = "NULL filter",
79 .bwrite = nullf_write, 79 .bwrite = nullf_write,
@@ -86,7 +86,7 @@ static BIO_METHOD methods_nullf = {
86 .callback_ctrl = nullf_callback_ctrl 86 .callback_ctrl = nullf_callback_ctrl
87}; 87};
88 88
89BIO_METHOD * 89const BIO_METHOD *
90BIO_f_null(void) 90BIO_f_null(void)
91{ 91{
92 return (&methods_nullf); 92 return (&methods_nullf);