boringssl/crypto/x509
Adam Langley 29b186736c Precompute sorted array for error strings.
Previously, error strings were kept in arrays for each subdirectory and
err.c would iterate over them all and insert them at init time to a hash
table.

This means that, even if you have a shared library and lots of processes
using that, each process has ~30KB of private memory from building that
hash table.

This this change, all the error strings are built into a sorted list and
are thus static data. This means that processes can share the error
information and it actually saves binary space because of all the
pointer overhead in the old scheme. Also it saves the time taken
building the hash table at startup.

This removes support for externally-supplied error string data.

Change-Id: Ifca04f335c673a048e1a3e76ff2b69c7264635be
2015-02-09 17:35:31 -08: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 Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
a_verify.c Fix various certificate fingerprint issues. 2015-01-09 19:41:59 +00:00
asn1_gen.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
by_dir.c Fix some unchecked mallocs. 2015-02-09 19:39:41 +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 Precompute sorted array for error strings. 2015-02-09 17:35:31 -08:00
i2d_pr.c Inital import. 2014-06-20 13:17:32 -07:00
pkcs7_test.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
pkcs7.c Rework support for ASN.1 BER. 2014-08-25 21:38:08 +00:00
t_crl.c Shush some dead assignments. 2014-11-06 01:34:33 +00:00
t_x509.c Use inner algorithm when printing certificate. 2015-01-26 18:37:23 +00: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 Remove string.h from base.h. 2015-02-02 19:14:15 +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_ext.c Inital import. 2014-06-20 13:17:32 -07:00
x509_lu.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
x509_obj.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
x509_r2x.c Inital import. 2014-06-20 13:17:32 -07:00
x509_req.c Tag a number of globals as const. 2015-01-14 21:53:00 +00:00
x509_set.c Omit version for v1 certificates. 2014-11-10 13:45:32 -08:00
x509_trs.c Fix error handling in X509_PURPOSE_add and X509_TRUST_add. 2014-11-06 01:44:43 +00: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 Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
x509_vpm.c Remove string.h from base.h. 2015-02-02 19:14:15 +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 Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
x509rset.c Inital import. 2014-06-20 13:17:32 -07:00
x509spki.c Remove string.h from base.h. 2015-02-02 19:14:15 +00:00
x509type.c Inital import. 2014-06-20 13:17:32 -07:00
x_algor.c Fix various certificate fingerprint issues. 2015-01-09 19:41:59 +00:00
x_all.c Fix various certificate fingerprint issues. 2015-01-09 19:41:59 +00:00
x_attrib.c Inital import. 2014-06-20 13:17:32 -07:00
x_crl.c Tag a number of globals as const. 2015-01-14 21:53:00 +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 Fix memory leak on malloc failure. 2015-02-10 01:23:34 +00:00
x_pkey.c Remove string.h from base.h. 2015-02-02 19:14:15 +00: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