diff options
Diffstat (limited to 'src/lib/libcrypto/bio/bio_lib.c')
-rw-r--r-- | src/lib/libcrypto/bio/bio_lib.c | 20 |
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 | ||
140 | void * | ||
141 | BIO_get_data(BIO *a) | ||
142 | { | ||
143 | return (a->ptr); | ||
144 | } | ||
145 | |||
146 | void | ||
147 | BIO_set_data(BIO *a, void *ptr) | ||
148 | { | ||
149 | a->ptr = ptr; | ||
150 | } | ||
151 | |||
152 | void | ||
153 | BIO_set_init(BIO *a, int init) | ||
154 | { | ||
155 | a->init = init; | ||
156 | } | ||
157 | |||
140 | void | 158 | void |
141 | BIO_clear_flags(BIO *b, int flags) | 159 | BIO_clear_flags(BIO *b, int flags) |
142 | { | 160 | { |