boringssl/crypto/x509
David Benjamin 0248889950 Don't mix and match libraries and errors.
The same library code applies for both the error and the function, so modules
cannot easily report errors from each other. Switch evp/algorithm.c's error
codes to the EVP library. Remove the original error codes so it's obvious some
changes are needed.

- X509_R_DIGEST_AND_KEY_TYPE_NOT_SUPPORTED -> EVP_R_DIGEST_AND_KEY_TYPE_NOT_SUPPORTED
  ASN1_R_DIGEST_AND_KEY_TYPE_NOT_SUPPORTED -> EVP_R_DIGEST_AND_KEY_TYPE_NOT_SUPPORTED
  (Actually, the X509 version of this error code doesn't exist in OpenSSL. It should
   have been ASN1.)

- ASN1_R_UNKNOWN_SIGNATURE_ALGORITHM -> EVP_R_UNKNOWN_SIGNATURE_ALGORITHM

- ASN1_R_WRONG_PUBLIC_KEY_TYPE -> EVP_R_WRONG_PUBLIC_KEY_TYPE

- ASN1_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM -> EVP_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM

Change-Id: I05b1a05b465d800c85f7d63ca74588edf40847b9
Reviewed-on: https://boringssl-review.googlesource.com/1940
Reviewed-by: Adam Langley <agl@google.com>
2014-10-13 22:56:28 +00:00
..
a_digest.c Fix a_{digest,verify}.c error codepaths. 2014-10-06 23:50:31 +00:00
a_sign.c Add EVP_DigestVerifyInitFromAlgorithm and EVP_DigestSignAlgorithm. 2014-10-09 21:52:52 +00:00
a_strex.c Const correctness. 2014-06-20 13:17:36 -07:00
a_verify.c Add EVP_DigestVerifyInitFromAlgorithm and EVP_DigestSignAlgorithm. 2014-10-09 21:52:52 +00:00
asn1_gen.c Remove misspelled error code. 2014-10-09 21:03:42 +00:00
by_dir.c Don't compare signed vs. unsigned. 2014-10-01 02:17:38 +00:00
by_file.c Inital import. 2014-06-20 13:17:32 -07:00
charmap.h Inital import. 2014-06-20 13:17:32 -07:00
CMakeLists.txt Add PKCS7_bundle_certificates. 2014-08-07 18:12:25 +00:00
i2d_pr.c Inital import. 2014-06-20 13:17:32 -07:00
pkcs7_test.c Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
pkcs7.c Rework support for ASN.1 BER. 2014-08-25 21:38:08 +00:00
t_crl.c Inital import. 2014-06-20 13:17:32 -07:00
t_x509.c Memory leak and NULL dereference fixes. 2014-07-28 17:05:12 -07:00
t_x509a.c Inital import. 2014-06-20 13:17:32 -07:00
vpm_int.h Fixes to host checking. 2014-06-20 13:17:40 -07:00
x509_att.c Inital import. 2014-06-20 13:17:32 -07:00
x509_cmp.c unifdef a bunch of OPENSSL_NO_* ifdefs. 2014-08-28 00:41:34 +00:00
x509_d2.c Inital import. 2014-06-20 13:17:32 -07:00
x509_def.c Inital import. 2014-06-20 13:17:32 -07:00
x509_error.c Don't mix and match libraries and errors. 2014-10-13 22:56:28 +00:00
x509_ext.c Inital import. 2014-06-20 13:17:32 -07:00
x509_lu.c Add X509_up_ref and use it internally. 2014-08-07 00:06:34 +00:00
x509_obj.c Remove CHARSET_EBCDIC 2014-07-07 19:30:35 +00:00
x509_r2x.c Inital import. 2014-06-20 13:17:32 -07:00
x509_req.c unifdef a bunch of OPENSSL_NO_* ifdefs. 2014-08-28 00:41:34 +00:00
x509_set.c Inital import. 2014-06-20 13:17:32 -07:00
x509_trs.c Const correctness. 2014-06-20 13:17:36 -07:00
x509_txt.c Inital import. 2014-06-20 13:17:32 -07:00
x509_v3.c Inital import. 2014-06-20 13:17:32 -07:00
x509_vfy.c Add X509_up_ref and use it internally. 2014-08-07 00:06:34 +00:00
x509_vpm.c Fix mis-sized allocation in x509_vpm.c 2014-07-30 00:33:49 +00:00
x509.c Inital import. 2014-06-20 13:17:32 -07:00
x509cset.c Inital import. 2014-06-20 13:17:32 -07:00
x509name.c Inital import. 2014-06-20 13:17:32 -07:00
x509rset.c Inital import. 2014-06-20 13:17:32 -07:00
x509spki.c Introduce EVP_DecodeBase64. 2014-08-25 23:00:28 +00:00
x509type.c Inital import. 2014-06-20 13:17:32 -07:00
x_algor.c Inital import. 2014-06-20 13:17:32 -07:00
x_all.c unifdef a bunch of OPENSSL_NO_* ifdefs. 2014-08-28 00:41:34 +00:00
x_attrib.c Inital import. 2014-06-20 13:17:32 -07:00
x_crl.c unifdef a bunch of OPENSSL_NO_* ifdefs. 2014-08-28 00:41:34 +00:00
x_exten.c Inital import. 2014-06-20 13:17:32 -07:00
x_info.c Inital import. 2014-06-20 13:17:32 -07:00
x_name.c Inital import. 2014-06-20 13:17:32 -07:00
x_pkey.c Inital import. 2014-06-20 13:17:32 -07:00
x_pubkey.c unifdef a bunch of OPENSSL_NO_* ifdefs. 2014-08-28 00:41:34 +00:00
x_req.c Inital import. 2014-06-20 13:17:32 -07:00
x_sig.c Inital import. 2014-06-20 13:17:32 -07:00
x_spki.c Inital import. 2014-06-20 13:17:32 -07:00
x_val.c Inital import. 2014-06-20 13:17:32 -07:00
x_x509.c Add X509_up_ref and use it internally. 2014-08-07 00:06:34 +00:00
x_x509a.c Inital import. 2014-06-20 13:17:32 -07:00