CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]   2022/01/04 05:53:31

Modified files:
        lib/libssl     : ssl_clnt.c ssl_srvr.c 

Log message:
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@

Reply via email to