summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_ciph.c
diff options
context:
space:
mode:
authorjsing <>2020-09-13 15:04:35 +0000
committerjsing <>2020-09-13 15:04:35 +0000
commitd4ce94026054ddc9823835f05362112ffea9eec0 (patch)
tree66217926431671cbe7e0cf55889348dd2d802dcc /src/lib/libssl/ssl_ciph.c
parenta4d31f145a27e5e19f4268f23ec6d9702fdce6e1 (diff)
downloadopenbsd-d4ce94026054ddc9823835f05362112ffea9eec0.tar.gz
openbsd-d4ce94026054ddc9823835f05362112ffea9eec0.tar.bz2
openbsd-d4ce94026054ddc9823835f05362112ffea9eec0.zip
Improve handling of BIO_read()/BIO_write() failures in the TLSv1.3 stack.
When BIO returns a failure, it does not always add an error to the error stack. In the case of the legacy stack, this was generally handled by the guesswork performed by SSL_get_error(). However, in the case of the new stack we push an 'unknown' error onto the stack. Improve this situation by specifically checking errno in the case of a BIO_read() or BIO_write() failure. If the error stack is empty then push a SYSerror() with the errno which is preferable to the 'unknown' error later. Noted by bluhm@ via syslogd regress. ok beck@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_ciph.c')
0 files changed, 0 insertions, 0 deletions