boringssl/crypto/evp
David Benjamin 15e4deb165 d2i: don't update input pointer on failure
(Imported from upstream's 728bcd59d3d41e152aead0d15acc51a8958536d3.)

Actually this one was reported by us, but the commit message doesn't
mention this.

This is slightly modified from upstream's version to fix some problems
noticed in import. Specifically one of d2i_X509_AUX's success paths is
bust and d2i_PrivateKey still updates on one error path. Resolve the
latter by changing both it and d2i_AutoPrivateKey to explicitly hit the
error path on ret == NULL. This lets us remove the NULL check in
d2i_AutoPrivateKey.

We'll want to report the problems back upstream.

Change-Id: Ifcfc965ca6d5ec0a08ac154854bd351cafbaba25
Reviewed-on: https://boringssl-review.googlesource.com/5948
Reviewed-by: Adam Langley <agl@google.com>
2015-09-28 22:15:17 +00:00
..
algorithm.c Remove the func parameter to OPENSSL_PUT_ERROR. 2015-07-16 02:02:37 +00:00
CMakeLists.txt Move arm_arch.h and fix up lots of include paths. 2015-08-26 01:57:59 +00:00
digestsign.c Remove the func parameter to OPENSSL_PUT_ERROR. 2015-07-16 02:02:37 +00:00
evp_asn1.c d2i: don't update input pointer on failure 2015-09-28 22:15:17 +00:00
evp_ctx.c Remove the func parameter to OPENSSL_PUT_ERROR. 2015-07-16 02:02:37 +00:00
evp_extra_test.cc Parse RSAPrivateKey with CBS. 2015-07-07 22:50:53 +00:00
evp_test.cc Fix Windows build. 2015-08-05 21:26:34 +00:00
evp_tests.txt Implement ECDSA_SIG_{parse,marshal} with crypto/bytestring. 2015-07-07 02:28:42 +00:00
evp.c Recognize PEM-encoded DSA private keys. 2015-08-21 17:39:05 +00:00
internal.h Fix warning about unused |EVP_PKEY_METHOD.ctrl_str|. 2015-08-07 16:11:08 +00:00
p_dsa_asn1.c RT3774: double-free in DSA 2015-07-31 22:31:37 +00:00
p_ec_asn1.c Remove the func parameter to OPENSSL_PUT_ERROR. 2015-07-16 02:02:37 +00:00
p_ec.c Remove superfluous SHA-1 dependency from EVP ECDSA code. 2015-09-15 23:18:44 +00:00
p_rsa_asn1.c Work around even more Estonian ID card misissuances. 2015-09-23 20:35:47 +00:00
p_rsa.c Remove the func parameter to OPENSSL_PUT_ERROR. 2015-07-16 02:02:37 +00:00
pbkdf_test.cc Rename BIO_print_errors_fp back to ERR_print_errors_fp & refactor it. 2015-04-13 20:23:29 +00:00
pbkdf.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
sign.c Take advantage of normalized return values. 2015-03-13 19:40:42 +00:00