error code fixes:

* fix TLS layer to consistently use WOLFSSL_FATAL_ERROR for error retvals, rather than literal -1.
* add WC_NO_ERR_TRACE() wrapper around LENGTH_ONLY_E (it does not signify an error condition).
* refactor errcode handling for traceability in wolfSSL_DSA_do_sign(), wolfSSL_DH_size(), wolfSSL_EC_KEY_get_conv_form(), wolfSSL_d2i_DSA_SIG(), wolfSSL_DSA_do_sign(), SetDhInternal(), and wolfSSL_EC_KEY_get_conv_form().
This commit is contained in:
Daniel Pouzzner
2024-09-06 19:33:48 -05:00
parent 398f8c90e2
commit c81c9be9ce
36 changed files with 551 additions and 545 deletions

View File

@@ -458,7 +458,7 @@ static int DoBase64_Encode(const byte* in, word32 inLen, byte* out,
*outLen = i;
if (ret == 0)
return getSzOnly ? LENGTH_ONLY_E : 0;
return getSzOnly ? WC_NO_ERR_TRACE(LENGTH_ONLY_E) : 0;
return ret;
}