summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_client.c
diff options
context:
space:
mode:
authorjsing <>2022-01-04 12:53:31 +0000
committerjsing <>2022-01-04 12:53:31 +0000
commit905a06fca980e325f12820ac5834e102e3f99918 (patch)
tree677e8d374c2a5e8377c22892318d9e86c208563a /src/lib/libssl/tls13_client.c
parentec5ad311caff3c64cd3d3b5db2ad5155419c6714 (diff)
downloadopenbsd-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_client.c')
0 files changed, 0 insertions, 0 deletions