summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/bio/bio.h5
-rw-r--r--src/lib/libcrypto/bio/bio_lib.c8
2 files changed, 11 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bio/bio.h b/src/lib/libcrypto/bio/bio.h
index b147e13e5f..9697c8ad3b 100644
--- a/src/lib/libcrypto/bio/bio.h
+++ b/src/lib/libcrypto/bio/bio.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: bio.h,v 1.48 2021/11/29 18:37:34 tb Exp $ */ 1/* $OpenBSD: bio.h,v 1.49 2022/01/05 20:22:26 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 *
@@ -632,6 +632,9 @@ BIO * BIO_pop(BIO *b);
632void BIO_free_all(BIO *a); 632void BIO_free_all(BIO *a);
633BIO * BIO_find_type(BIO *b, int bio_type); 633BIO * BIO_find_type(BIO *b, int bio_type);
634BIO * BIO_next(BIO *b); 634BIO * BIO_next(BIO *b);
635#if defined(LIBRESSL_OPAQUE_BIO) || defined(LIBRESSL_CRYPTO_INTERNAL)
636void BIO_set_next(BIO *b, BIO *next);
637#endif
635BIO * BIO_get_retry_BIO(BIO *bio, int *reason); 638BIO * BIO_get_retry_BIO(BIO *bio, int *reason);
636int BIO_get_retry_reason(BIO *bio); 639int BIO_get_retry_reason(BIO *bio);
637BIO * BIO_dup_chain(BIO *in); 640BIO * BIO_dup_chain(BIO *in);
diff --git a/src/lib/libcrypto/bio/bio_lib.c b/src/lib/libcrypto/bio/bio_lib.c
index 85eb0f0c77..51289ad295 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.31 2021/12/09 15:28:58 schwarze Exp $ */ 1/* $OpenBSD: bio_lib.c,v 1.32 2022/01/05 20:22:26 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 *
@@ -589,6 +589,12 @@ BIO_next(BIO *b)
589} 589}
590 590
591void 591void
592BIO_set_next(BIO *b, BIO *next)
593{
594 b->next_bio = next;
595}
596
597void
592BIO_free_all(BIO *bio) 598BIO_free_all(BIO *bio)
593{ 599{
594 BIO *b; 600 BIO *b;