summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bio_lib.c
diff options
context:
space:
mode:
authortb <>2018-02-18 12:58:25 +0000
committertb <>2018-02-18 12:58:25 +0000
commit9e320b370b52d7100229aad540de9a8bc5cf2266 (patch)
treeac1d981df5d82d44a2761e1df0287d35d5e39bca /src/lib/libcrypto/bio/bio_lib.c
parent08088224c26400ca4e52e683e20d87c097025de9 (diff)
downloadopenbsd-9e320b370b52d7100229aad540de9a8bc5cf2266.tar.gz
openbsd-9e320b370b52d7100229aad540de9a8bc5cf2266.tar.bz2
openbsd-9e320b370b52d7100229aad540de9a8bc5cf2266.zip
Provide BIO_{g,s}et_data() and BIO_set_init().
ok jsing
Diffstat (limited to 'src/lib/libcrypto/bio/bio_lib.c')
-rw-r--r--src/lib/libcrypto/bio/bio_lib.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bio/bio_lib.c b/src/lib/libcrypto/bio/bio_lib.c
index 86ccbdc202..4e5405d6af 100644
--- a/src/lib/libcrypto/bio/bio_lib.c
+++ b/src/lib/libcrypto/bio/bio_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bio_lib.c,v 1.23 2017/01/29 17:49:22 beck Exp $ */ 1/* $OpenBSD: bio_lib.c,v 1.24 2018/02/18 12:58:25 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -137,6 +137,24 @@ BIO_vfree(BIO *a)
137 BIO_free(a); 137 BIO_free(a);
138} 138}
139 139
140void *
141BIO_get_data(BIO *a)
142{
143 return (a->ptr);
144}
145
146void
147BIO_set_data(BIO *a, void *ptr)
148{
149 a->ptr = ptr;
150}
151
152void
153BIO_set_init(BIO *a, int init)
154{
155 a->init = init;
156}
157
140void 158void
141BIO_clear_flags(BIO *b, int flags) 159BIO_clear_flags(BIO *b, int flags)
142{ 160{