boringssl/include/openssl
Adam Langley 5129e2d695 Align EVP return values with BoringSSL convention.
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>
2014-07-29 21:47:51 +00:00
..
aead.h Add AES Key Wrap mode. 2014-07-28 21:32:39 +00:00
aes.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
asn1_mac.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
asn1.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
asn1t.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
base64.h Document that EVP_EncodeBlock writes a trailing NUL. 2014-07-18 00:55:18 +00:00
base.h Add <opensslfeatures.h> to ease migration from OpenSSL. 2014-07-28 18:51:33 +00:00
bio.h Have BIO_get_mem_data return a size_t and uint8_t* 2014-07-18 17:22:05 +00:00
bn.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
buf.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
bytestring.h Port ssl3_get_client_hello to CBS. 2014-07-15 18:30:09 +00:00
chacha.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
cipher.h Make EVP_CIPHER_CTX_copy work in GCM mode. 2014-07-28 17:05:13 -07:00
conf.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
cpu.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
crypto.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
des.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
dh.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
digest.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
dsa.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
dtls1.h Port ssl3_get_client_hello to CBS. 2014-07-15 18:30:09 +00:00
ec_key.h Introduce EVP_PKEY_is_opaque to replace RSA_METHOD_FLAG_NO_CHECK. 2014-07-18 23:35:04 +00:00
ec.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
ecdh.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
ecdsa.h Align EVP return values with BoringSSL convention. 2014-07-29 21:47:51 +00:00
engine.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
err.h Add OpenSSL-compatible alias for ERR_FLAG_STRING flag. 2014-07-28 19:00:28 +00:00
evp.h Align EVP return values with BoringSSL convention. 2014-07-29 21:47:51 +00:00
ex_data.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
hmac.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
lhash_macros.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
lhash.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
md5.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
mem.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
modes.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
obj_dat.h Fix OID encoding for one component. 2014-07-28 17:05:12 -07:00
obj_mac.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
obj.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
objects.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
opensslfeatures.h Add <opensslfeatures.h> to ease migration from OpenSSL. 2014-07-28 18:51:33 +00:00
opensslv.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
ossl_typ.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
pem.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
pkcs7.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
pkcs8.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
pkcs12.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
poly1305.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
pqueue.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
rand.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
rc4.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
rsa.h Align EVP return values with BoringSSL convention. 2014-07-29 21:47:51 +00:00
safe_stack.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
sha.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
srtp.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
ssl2.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
ssl3.h Change CCS_OK to EXPECT_CCS. 2014-07-25 17:58:58 +00:00
ssl23.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
ssl.h Change CCS_OK to EXPECT_CCS. 2014-07-25 17:58:58 +00:00
stack_macros.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
stack.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
thread.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
time_support.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
tls1.h Remove last remnants of GOST support. 2014-07-24 21:10:53 +00:00
type_check.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
x509_vfy.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
x509.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
x509v3.h Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00