| Ticket Hash: | 006bd0c74e0a21fad58e6ef5f994f884a11fa741 | ||
| Title: | PATCH: BIO_CTRL_PUSH not handled | ||
| Status: | Closed | Type: | Code Defect |
| Severity: | Severe | Priority: | Immediate |
| Subsystem: | Resolution: | Fixed | |
| Last Modified: |
2024-05-28 00:20:10 1.43 years ago |
Created: |
2022-11-07 02:06:34 2.98 years ago |
| Version Found In: | 1.8.0 | ||
| User Comments: | ||||||
ssteidl added on 2022-11-07 02:06:34:
BIO_CTRL_PUSH is an optional value that is not handled in the tlsBIO:BioCtrl(). The larger problem is that the library does not support new optional commands because it returns -2 for unknown cmds in BioCtrl(). I would suggest changing the default return value to 0. I confirmed that this fixed the issue. tcltls version: 1.8.0 (trunk as of today) OS: FreeBSD 12.3 Openssl version: 1.1.1q Patch
Example of problem
gustafn3 added on 2023-10-22 09:40:24:
Ignoring all unknown controls is not a good idea. Since not all OpenSSL versions and variants support "BIO_CTRL_POP" and "BIO_CTRL_PUSH", the following is change is a more proper patch. This was tested with Tcl 8.6.13, tcltls-1.7.22 and OpenSSL 3.1.3 (19 Sep 2023).
jan.nijtmans added on 2024-02-22 17:47:13:
bohagan added on 2024-05-28 00:20:10:
Fixed in [602c39a56cdd7856] | ||||||