summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bio_local.h
diff options
context:
space:
mode:
authortb <>2022-12-02 19:44:04 +0000
committertb <>2022-12-02 19:44:04 +0000
commit1443fca68ffae5ceceac8fd474f197973e87d300 (patch)
tree5794ade176b91bfa4582fc50d6870cb255dba4ef /src/lib/libcrypto/bio/bio_local.h
parent491dd78777dac52aaab51fc26e3b929046e5005e (diff)
downloadopenbsd-1443fca68ffae5ceceac8fd474f197973e87d300.tar.gz
openbsd-1443fca68ffae5ceceac8fd474f197973e87d300.tar.bz2
openbsd-1443fca68ffae5ceceac8fd474f197973e87d300.zip
Revert bio_prev removal
As schwarze points out, you can pop any BIO in a chain, not just the first one (bonus points for a great name for this API). The internal doubly linked was used to fix up the BIO chain bio was part of when you BIO_pop() a bio that wasn't in the first position, which is explicitly allowed in our documentation and implied by OpenSSL's.
Diffstat (limited to 'src/lib/libcrypto/bio/bio_local.h')
-rw-r--r--src/lib/libcrypto/bio/bio_local.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bio/bio_local.h b/src/lib/libcrypto/bio/bio_local.h
index 94dd460bc5..4eecf7e04a 100644
--- a/src/lib/libcrypto/bio/bio_local.h
+++ b/src/lib/libcrypto/bio/bio_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: bio_local.h,v 1.4 2022/11/28 07:50:00 tb Exp $ */ 1/* $OpenBSD: bio_local.h,v 1.5 2022/12/02 19:44:04 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 *
@@ -87,6 +87,7 @@ struct bio_st {
87 int num; 87 int num;
88 void *ptr; 88 void *ptr;
89 struct bio_st *next_bio; /* used by filter BIOs */ 89 struct bio_st *next_bio; /* used by filter BIOs */
90 struct bio_st *prev_bio; /* used by filter BIOs */
90 int references; 91 int references;
91 unsigned long num_read; 92 unsigned long num_read;
92 unsigned long num_write; 93 unsigned long num_write;