diff options
author | jsing <> | 2022-01-04 12:53:31 +0000 |
---|---|---|
committer | jsing <> | 2022-01-04 12:53:31 +0000 |
commit | 905a06fca980e325f12820ac5834e102e3f99918 (patch) | |
tree | 677e8d374c2a5e8377c22892318d9e86c208563a /src/lib/libssl/tls13_server.c | |
parent | ec5ad311caff3c64cd3d3b5db2ad5155419c6714 (diff) | |
download | openbsd-905a06fca980e325f12820ac5834e102e3f99918.tar.gz openbsd-905a06fca980e325f12820ac5834e102e3f99918.tar.bz2 openbsd-905a06fca980e325f12820ac5834e102e3f99918.zip |
Return 0 on failure from send/get kex functions in the legacy stack.
In the legacy stack, a message handling function returns -1 for failure,
0 for need more data and 1 for success (although in extra special cases
2 may also be used). However, the various send/get kex functions only
need to indicate success or failure - switch these to return 0 on failure
(rather than -1) and use normal result testing.
This leaves GOST unchanged for now, as that code is special and needs
extra work.
ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/tls13_server.c')
0 files changed, 0 insertions, 0 deletions