diff options
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
-rw-r--r-- | src/lib/libssl/ssl_lib.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c index 142771c423..ef2a92ffe3 100644 --- a/src/lib/libssl/ssl_lib.c +++ b/src/lib/libssl/ssl_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_lib.c,v 1.264 2021/09/04 15:21:45 beck Exp $ */ | 1 | /* $OpenBSD: ssl_lib.c,v 1.265 2021/09/08 12:32:07 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 | * |
@@ -614,6 +614,13 @@ SSL_get_rbio(const SSL *s) | |||
614 | return (s->rbio); | 614 | return (s->rbio); |
615 | } | 615 | } |
616 | 616 | ||
617 | void | ||
618 | SSL_set0_rbio(SSL *s, BIO *rbio) | ||
619 | { | ||
620 | BIO_free_all(s->rbio); | ||
621 | s->rbio = rbio; | ||
622 | } | ||
623 | |||
617 | BIO * | 624 | BIO * |
618 | SSL_get_wbio(const SSL *s) | 625 | SSL_get_wbio(const SSL *s) |
619 | { | 626 | { |