5129e2d695
Where possible, functions should return one for success and zero for error. The use of additional negative values to indicate an error is, itself, error prone. This change fixes many EVP functions to remove the possibility of negative return values. Existing code that is testing for <= 0 will continue to function, although there is the possibility that some code was differentiating between negative values (error) and zero (invalid signature) for the verify functions and will now show the wrong error message. Change-Id: I982512596bb18a82df65861394dbd7487783bd3d Reviewed-on: https://boringssl-review.googlesource.com/1333 Reviewed-by: Adam Langley <agl@google.com> |
||
---|---|---|
.. | ||
asn1.c | ||
CMakeLists.txt | ||
digestsign.c | ||
evp_ctx.c | ||
evp_error.c | ||
evp.c | ||
example_sign.c | ||
internal.h | ||
p_ec_asn1.c | ||
p_ec.c | ||
p_hmac_asn1.c | ||
p_hmac.c | ||
p_rsa_asn1.c | ||
p_rsa.c | ||
pbkdf.c | ||
sign.c |