wolfSSL / wolfssl

The wolfSSL library is a small, fast, portable implementation of TLS/SSL for embedded devices to the cloud. wolfSSL supports up to TLS 1.3 and DTLS 1.3!
https://www.wolfssl.com
GNU General Public License v2.0
2.22k stars 798 forks source link

ret will be set to 1 (WOLFSSL_SUCCESS), the rest checks for 'ret == 0' #7678

Closed bandi13 closed 1 week ago

bandi13 commented 1 week ago

Need to use another type of return code

This came up as an issue uncovered with our TLSFuzzer. A piece of code was fixed that wasn't checking if ret != 0 and set it to something else. Then subsequent code would work correctly because now ret == 0. When that code was fixed, this issue popped up where the cipher suite was being returned as TLS_NULL_WITH_NULL_NULL.