summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bio_meth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bio/bio_meth.c')
-rw-r--r--src/lib/libcrypto/bio/bio_meth.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libcrypto/bio/bio_meth.c b/src/lib/libcrypto/bio/bio_meth.c
index b9c07d5111..d7d100df95 100644
--- a/src/lib/libcrypto/bio/bio_meth.c
+++ b/src/lib/libcrypto/bio/bio_meth.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bio_meth.c,v 1.7 2022/01/07 09:02:17 tb Exp $ */ 1/* $OpenBSD: bio_meth.c,v 1.8 2022/01/14 08:40:57 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> 3 * Copyright (c) 2018 Theo Buehler <tb@openbsd.org>
4 * 4 *
@@ -135,15 +135,13 @@ BIO_meth_set_destroy(BIO_METHOD *biom, int (*destroy)(BIO *))
135long 135long
136(*BIO_meth_get_callback_ctrl(const BIO_METHOD *biom))(BIO *, int, BIO_info_cb *) 136(*BIO_meth_get_callback_ctrl(const BIO_METHOD *biom))(BIO *, int, BIO_info_cb *)
137{ 137{
138 return 138 return biom->callback_ctrl;
139 (long (*)(BIO *, int, BIO_info_cb *))biom->callback_ctrl; /* XXX */
140} 139}
141 140
142int 141int
143BIO_meth_set_callback_ctrl(BIO_METHOD *biom, 142BIO_meth_set_callback_ctrl(BIO_METHOD *biom,
144 long (*callback_ctrl)(BIO *, int, BIO_info_cb *)) 143 long (*callback_ctrl)(BIO *, int, BIO_info_cb *))
145{ 144{
146 biom->callback_ctrl = 145 biom->callback_ctrl = callback_ctrl;
147 (long (*)(BIO *, int, bio_info_cb *))callback_ctrl; /* XXX */
148 return 1; 146 return 1;
149} 147}