Improve the implementation of BIO_push(3) such that it changes nothing
authorschwarze <schwarze@openbsd.org>
Wed, 7 Dec 2022 23:08:47 +0000 (23:08 +0000)
committerschwarze <schwarze@openbsd.org>
Wed, 7 Dec 2022 23:08:47 +0000 (23:08 +0000)
commit2181dbec822e4d5e40993d0c2893700992d8bc06
tree47257d112d0fc841e3587ea23b131a43384bd22b
parent4befd8f05a38bbe6df8f0ba4c4ec6b50fafb5c36
Improve the implementation of BIO_push(3) such that it changes nothing
and reports failure if a call would result in a cycle.
The algorithm used was originally suggested by jsing@.
Feedback and OK tb@.
lib/libcrypto/bio/bio_lib.c
lib/libcrypto/man/BIO_push.3