Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Langley <agl@chromium.org>2015-02-06 22:52:16 +0300
committerAdam Langley <agl@chromium.org>2015-02-10 04:35:31 +0300
commit29b186736c1e95e2005b13674a6930b282b55e21 (patch)
tree02ddb5e6055c305410dcea5f9730e7e294d18702 /crypto/err/pem.errordata
parent65226257c1c49eac4a739b9d57409b52dfbb5d45 (diff)
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
Diffstat (limited to 'crypto/err/pem.errordata')
-rw-r--r--crypto/err/pem.errordata52
1 files changed, 52 insertions, 0 deletions
diff --git a/crypto/err/pem.errordata b/crypto/err/pem.errordata
new file mode 100644
index 00000000..46529195
--- /dev/null
+++ b/crypto/err/pem.errordata
@@ -0,0 +1,52 @@
+PEM,function,107,PEM_ASN1_read
+PEM,function,106,PEM_ASN1_read_bio
+PEM,function,114,PEM_ASN1_write
+PEM,function,119,PEM_ASN1_write_bio
+PEM,function,109,PEM_X509_INFO_read
+PEM,function,112,PEM_X509_INFO_read_bio
+PEM,function,113,PEM_X509_INFO_write_bio
+PEM,function,120,PEM_do_header
+PEM,function,108,PEM_get_EVP_CIPHER_INFO
+PEM,function,111,PEM_read
+PEM,function,105,PEM_read_DHparams
+PEM,function,104,PEM_read_PrivateKey
+PEM,function,123,PEM_read_bio
+PEM,function,100,PEM_read_bio_DHparams
+PEM,function,110,PEM_read_bio_Parameters
+PEM,function,117,PEM_read_bio_PrivateKey
+PEM,function,102,PEM_write
+PEM,function,118,PEM_write_PrivateKey
+PEM,function,121,PEM_write_bio
+PEM,function,115,d2i_PKCS8PrivateKey_bio
+PEM,function,116,d2i_PKCS8PrivateKey_fp
+PEM,function,122,do_pk8pkey
+PEM,function,103,do_pk8pkey_fp
+PEM,function,101,load_iv
+PEM,reason,118,BAD_BASE64_DECODE
+PEM,reason,108,BAD_DECRYPT
+PEM,reason,105,BAD_END_LINE
+PEM,reason,103,BAD_IV_CHARS
+PEM,reason,107,BAD_MAGIC_NUMBER
+PEM,reason,120,BAD_PASSWORD_READ
+PEM,reason,125,BAD_VERSION_NUMBER
+PEM,reason,113,BIO_WRITE_FAILURE
+PEM,reason,106,CIPHER_IS_NULL
+PEM,reason,104,ERROR_CONVERTING_PRIVATE_KEY
+PEM,reason,126,EXPECTING_PRIVATE_KEY_BLOB
+PEM,reason,116,EXPECTING_PUBLIC_KEY_BLOB
+PEM,reason,114,INCONSISTENT_HEADER
+PEM,reason,112,KEYBLOB_HEADER_PARSE_ERROR
+PEM,reason,117,KEYBLOB_TOO_SHORT
+PEM,reason,124,NOT_DEK_INFO
+PEM,reason,123,NOT_ENCRYPTED
+PEM,reason,101,NOT_PROC_TYPE
+PEM,reason,100,NO_START_LINE
+PEM,reason,111,PROBLEMS_GETTING_PASSWORD
+PEM,reason,115,PUBLIC_KEY_NO_RSA
+PEM,reason,110,PVK_DATA_TOO_SHORT
+PEM,reason,127,PVK_TOO_SHORT
+PEM,reason,119,READ_KEY
+PEM,reason,102,SHORT_HEADER
+PEM,reason,122,UNSUPPORTED_CIPHER
+PEM,reason,109,UNSUPPORTED_ENCRYPTION
+PEM,reason,121,UNSUPPORTED_KEY_COMPONENTS