summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/bio/bio_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/bio/bio_lib.c')
-rw-r--r--lib/libcrypto/bio/bio_lib.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/lib/libcrypto/bio/bio_lib.c b/lib/libcrypto/bio/bio_lib.c
index 86ccbdc202a..4e5405d6afb 100644
--- a/lib/libcrypto/bio/bio_lib.c
+++ b/lib/libcrypto/bio/bio_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bio_lib.c,v 1.23 2017/01/29 17:49:22 beck Exp $ */
+/* $OpenBSD: bio_lib.c,v 1.24 2018/02/18 12:58:25 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -137,6 +137,24 @@ BIO_vfree(BIO *a)
BIO_free(a);
}
+void *
+BIO_get_data(BIO *a)
+{
+ return (a->ptr);
+}
+
+void
+BIO_set_data(BIO *a, void *ptr)
+{
+ a->ptr = ptr;
+}
+
+void
+BIO_set_init(BIO *a, int init)
+{
+ a->init = init;
+}
+
void
BIO_clear_flags(BIO *b, int flags)
{