diff options
author | tb <> | 2022-01-05 20:22:26 +0000 |
---|---|---|
committer | tb <> | 2022-01-05 20:22:26 +0000 |
commit | 21c9a0ff72332d0ed2c5b5bd6f41a189b9fc2685 (patch) | |
tree | dc2a96fb8e6cbbc67511171b81a4063942c50b86 /src/lib | |
parent | 5a7fbd7859d7bab801f5daf68d5523fc85311d17 (diff) | |
download | openbsd-21c9a0ff72332d0ed2c5b5bd6f41a189b9fc2685.tar.gz openbsd-21c9a0ff72332d0ed2c5b5bd6f41a189b9fc2685.tar.bz2 openbsd-21c9a0ff72332d0ed2c5b5bd6f41a189b9fc2685.zip |
Prepare to provide BIO_set_next().
This will be needed in libssl and freerdp after the next bump.
ok inoguchi jsing
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/bio/bio.h | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bio_lib.c | 8 |
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); | |||
632 | void BIO_free_all(BIO *a); | 632 | void BIO_free_all(BIO *a); |
633 | BIO * BIO_find_type(BIO *b, int bio_type); | 633 | BIO * BIO_find_type(BIO *b, int bio_type); |
634 | BIO * BIO_next(BIO *b); | 634 | BIO * BIO_next(BIO *b); |
635 | #if defined(LIBRESSL_OPAQUE_BIO) || defined(LIBRESSL_CRYPTO_INTERNAL) | ||
636 | void BIO_set_next(BIO *b, BIO *next); | ||
637 | #endif | ||
635 | BIO * BIO_get_retry_BIO(BIO *bio, int *reason); | 638 | BIO * BIO_get_retry_BIO(BIO *bio, int *reason); |
636 | int BIO_get_retry_reason(BIO *bio); | 639 | int BIO_get_retry_reason(BIO *bio); |
637 | BIO * BIO_dup_chain(BIO *in); | 640 | BIO * 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 | ||
591 | void | 591 | void |
592 | BIO_set_next(BIO *b, BIO *next) | ||
593 | { | ||
594 | b->next_bio = next; | ||
595 | } | ||
596 | |||
597 | void | ||
592 | BIO_free_all(BIO *bio) | 598 | BIO_free_all(BIO *bio) |
593 | { | 599 | { |
594 | BIO *b; | 600 | BIO *b; |