From 93b4c9ceb476b480a4ee81b5b43b72ba3b1810c3 Mon Sep 17 00:00:00 2001 From: tb <> Date: Tue, 20 Feb 2018 17:55:26 +0000 Subject: Provide BIO_{g,s}et_shutdown(). ok jsing --- src/lib/libcrypto/bio/bio_lib.c | 14 +++++++++++++- 1 file changed, 13 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 b2acd01342..8ad54cefd2 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.25 2018/02/20 17:15:27 jsing Exp $ */ +/* $OpenBSD: bio_lib.c,v 1.26 2018/02/20 17:55:26 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -169,6 +169,18 @@ BIO_set_init(BIO *a, int init) a->init = init; } +int +BIO_get_shutdown(BIO *a) +{ + return (a->shutdown); +} + +void +BIO_set_shutdown(BIO *a, int shut) +{ + a->shutdown = shut; +} + void BIO_clear_flags(BIO *b, int flags) { -- cgit v1.2.3-55-g6feb