summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bio')
-rw-r--r--src/lib/libcrypto/bio/bio.h4
-rw-r--r--src/lib/libcrypto/bio/bio_lib.c14
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);
597void *BIO_get_data(BIO *a); 597void *BIO_get_data(BIO *a);
598void BIO_set_data(BIO *a, void *ptr); 598void BIO_set_data(BIO *a, void *ptr);
599void BIO_set_init(BIO *a, int init); 599void BIO_set_init(BIO *a, int init);
600int BIO_get_shutdown(BIO *a);
601void BIO_set_shutdown(BIO *a, int shut);
600void BIO_vfree(BIO *a); 602void BIO_vfree(BIO *a);
601int BIO_read(BIO *b, void *data, int len) 603int 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
172int
173BIO_get_shutdown(BIO *a)
174{
175 return (a->shutdown);
176}
177
178void
179BIO_set_shutdown(BIO *a, int shut)
180{
181 a->shutdown = shut;
182}
183
172void 184void
173BIO_clear_flags(BIO *b, int flags) 185BIO_clear_flags(BIO *b, int flags)
174{ 186{