diff options
author | tb <> | 2023-12-15 13:48:59 +0000 |
---|---|---|
committer | tb <> | 2023-12-15 13:48:59 +0000 |
commit | 51088b62ca9f22f2160fa0ce90bdd0441e8178dd (patch) | |
tree | 1a7bd27a2765b812f4ef633b95f00e3b5a3f4d2f /src/lib/libssl/ssl_srvr.c | |
parent | d97db60c4f81d255da31d14e7811f19d3505ff6b (diff) | |
download | openbsd-51088b62ca9f22f2160fa0ce90bdd0441e8178dd.tar.gz openbsd-51088b62ca9f22f2160fa0ce90bdd0441e8178dd.tar.bz2 openbsd-51088b62ca9f22f2160fa0ce90bdd0441e8178dd.zip |
Fix a return value confusion in chacha20_poly1305_cipher()
On overlong input, chacha20_poly1305_cipher() would return 0, which in
EVP_CipherUpdate() and EVP_CipherFinal() signals success with no data
written since EVP_CIPH_FLAG_CUSTOM_CIPHER is set. In order to signal an
error, we need to return -1. Obviously.
ok jsing
Diffstat (limited to 'src/lib/libssl/ssl_srvr.c')
0 files changed, 0 insertions, 0 deletions