diff options
author | 2018-02-18 12:58:25 +0000 | |
---|---|---|
committer | 2018-02-18 12:58:25 +0000 | |
commit | b47f35fc0fdadbb7bcc45988f3e8c8ca81f55ff3 (patch) | |
tree | cb458e63e5a37f45c75baff62d062b5907143d11 /lib/libcrypto/bio/bio_lib.c | |
parent | Provide RSA_{g,s}et0_crt_params() (diff) | |
download | wireguard-openbsd-b47f35fc0fdadbb7bcc45988f3e8c8ca81f55ff3.tar.xz wireguard-openbsd-b47f35fc0fdadbb7bcc45988f3e8c8ca81f55ff3.zip |
Provide BIO_{g,s}et_data() and BIO_set_init().
ok jsing
Diffstat (limited to 'lib/libcrypto/bio/bio_lib.c')
-rw-r--r-- | lib/libcrypto/bio/bio_lib.c | 20 |
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) { |