summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bf_nbio.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_nbio.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_nbio.c')
-rw-r--r--src/lib/libcrypto/bio/bf_nbio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bio/bf_nbio.c b/src/lib/libcrypto/bio/bf_nbio.c
index 24e2e7e8b9..05fa9161fb 100644
--- a/src/lib/libcrypto/bio/bf_nbio.c
+++ b/src/lib/libcrypto/bio/bf_nbio.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bf_nbio.c,v 1.19 2015/02/07 13:19:15 doug Exp $ */ 1/* $OpenBSD: bf_nbio.c,v 1.20 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 *
@@ -80,7 +80,7 @@ typedef struct nbio_test_st {
80 int lwn; 80 int lwn;
81} NBIO_TEST; 81} NBIO_TEST;
82 82
83static BIO_METHOD methods_nbiof = { 83static const BIO_METHOD methods_nbiof = {
84 .type = BIO_TYPE_NBIO_TEST, 84 .type = BIO_TYPE_NBIO_TEST,
85 .name = "non-blocking IO test filter", 85 .name = "non-blocking IO test filter",
86 .bwrite = nbiof_write, 86 .bwrite = nbiof_write,
@@ -93,7 +93,7 @@ static BIO_METHOD methods_nbiof = {
93 .callback_ctrl = nbiof_callback_ctrl 93 .callback_ctrl = nbiof_callback_ctrl
94}; 94};
95 95
96BIO_METHOD * 96const BIO_METHOD *
97BIO_f_nbio_test(void) 97BIO_f_nbio_test(void)
98{ 98{
99 return (&methods_nbiof); 99 return (&methods_nbiof);