From 7de4d3a68913b50be213d1f95ad168ee17570641 Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 14 Jan 2022 08:40:57 +0000 Subject: Implement new-style OpenSSL BIO callbacks This provides support for new-style BIO callbacks in BIO_{read,write,gets,puts}() and a helper function to work out whether it should call the new or the old style callback. It also adds a few typedefs and minor code cleanup as well as the BIO_{get,set}_callback_ex() from jsing, ok tb --- src/lib/libcrypto/bio/bf_null.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/libcrypto/bio/bf_null.c') diff --git a/src/lib/libcrypto/bio/bf_null.c b/src/lib/libcrypto/bio/bf_null.c index 1a935cf26b..129def8c99 100644 --- a/src/lib/libcrypto/bio/bf_null.c +++ b/src/lib/libcrypto/bio/bf_null.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bf_null.c,v 1.13 2022/01/07 09:02:17 tb Exp $ */ +/* $OpenBSD: bf_null.c,v 1.14 2022/01/14 08:40:57 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -73,7 +73,7 @@ static int nullf_gets(BIO *h, char *str, int size); static long nullf_ctrl(BIO *h, int cmd, long arg1, void *arg2); static int nullf_new(BIO *h); static int nullf_free(BIO *data); -static long nullf_callback_ctrl(BIO *h, int cmd, bio_info_cb *fp); +static long nullf_callback_ctrl(BIO *h, int cmd, BIO_info_cb *fp); static const BIO_METHOD methods_nullf = { .type = BIO_TYPE_NULL_FILTER, @@ -167,7 +167,7 @@ nullf_ctrl(BIO *b, int cmd, long num, void *ptr) } static long -nullf_callback_ctrl(BIO *b, int cmd, bio_info_cb *fp) +nullf_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp) { long ret = 1; -- cgit v1.2.3-55-g6feb