From 4a45052f637f8486f2bfc31e5cd050e49f7e0064 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 24 Oct 2021 13:46:56 +0000 Subject: Prepare to provide BIO_get_init() ok beck jsing --- src/lib/libcrypto/bio/bio_lib.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/bio/bio_lib.c') diff --git a/src/lib/libcrypto/bio/bio_lib.c b/src/lib/libcrypto/bio/bio_lib.c index 7ef1784e13..05f0258947 100644 --- a/src/lib/libcrypto/bio/bio_lib.c +++ b/src/lib/libcrypto/bio/bio_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bio_lib.c,v 1.29 2019/04/14 17:39:03 jsing Exp $ */ +/* $OpenBSD: bio_lib.c,v 1.30 2021/10/24 13:46:56 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -170,6 +170,12 @@ BIO_set_data(BIO *a, void *ptr) a->ptr = ptr; } +int +BIO_get_init(BIO *a) +{ + return a->init; +} + void BIO_set_init(BIO *a, int init) { -- cgit v1.2.3-55-g6feb