diff options
Diffstat (limited to 'src/lib/libcrypto/bio')
-rw-r--r-- | src/lib/libcrypto/bio/bio.h | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bio_lib.c | 14 |
2 files changed, 16 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bio/bio.h b/src/lib/libcrypto/bio/bio.h index 1d34f082ee..39a04bda56 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.34 2018/02/20 17:15:27 jsing Exp $ */ | 1 | /* $OpenBSD: bio.h,v 1.35 2018/02/20 17:55: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 | * |
@@ -597,6 +597,8 @@ int BIO_free(BIO *a); | |||
597 | void *BIO_get_data(BIO *a); | 597 | void *BIO_get_data(BIO *a); |
598 | void BIO_set_data(BIO *a, void *ptr); | 598 | void BIO_set_data(BIO *a, void *ptr); |
599 | void BIO_set_init(BIO *a, int init); | 599 | void BIO_set_init(BIO *a, int init); |
600 | int BIO_get_shutdown(BIO *a); | ||
601 | void BIO_set_shutdown(BIO *a, int shut); | ||
600 | void BIO_vfree(BIO *a); | 602 | void BIO_vfree(BIO *a); |
601 | int BIO_read(BIO *b, void *data, int len) | 603 | int BIO_read(BIO *b, void *data, int len) |
602 | __attribute__((__bounded__(__buffer__,2,3))); | 604 | __attribute__((__bounded__(__buffer__,2,3))); |
diff --git a/src/lib/libcrypto/bio/bio_lib.c b/src/lib/libcrypto/bio/bio_lib.c index b2acd01342..8ad54cefd2 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.25 2018/02/20 17:15:27 jsing Exp $ */ | 1 | /* $OpenBSD: bio_lib.c,v 1.26 2018/02/20 17:55: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 | * |
@@ -169,6 +169,18 @@ BIO_set_init(BIO *a, int init) | |||
169 | a->init = init; | 169 | a->init = init; |
170 | } | 170 | } |
171 | 171 | ||
172 | int | ||
173 | BIO_get_shutdown(BIO *a) | ||
174 | { | ||
175 | return (a->shutdown); | ||
176 | } | ||
177 | |||
178 | void | ||
179 | BIO_set_shutdown(BIO *a, int shut) | ||
180 | { | ||
181 | a->shutdown = shut; | ||
182 | } | ||
183 | |||
172 | void | 184 | void |
173 | BIO_clear_flags(BIO *b, int flags) | 185 | BIO_clear_flags(BIO *b, int flags) |
174 | { | 186 | { |