summaryrefslogtreecommitdiff
path: root/src/regress
diff options
context:
space:
mode:
authorjsing <>2022-01-04 12:53:31 +0000
committerjsing <>2022-01-04 12:53:31 +0000
commit1a7cc6fb282b8ea2dda029734dc811a2b8be05aa (patch)
tree677e8d374c2a5e8377c22892318d9e86c208563a /src/regress
parenteecca3168d4e6703e9f977f8f602e55d994ff03e (diff)
downloadopenbsd-1a7cc6fb282b8ea2dda029734dc811a2b8be05aa.tar.gz
openbsd-1a7cc6fb282b8ea2dda029734dc811a2b8be05aa.tar.bz2
openbsd-1a7cc6fb282b8ea2dda029734dc811a2b8be05aa.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/regress')
0 files changed, 0 insertions, 0 deletions