Running make_errors.go every time a function is renamed is incredibly tedious. Plus we keep getting them wrong. Instead, sample __func__ (__FUNCTION__ in MSVC) in the OPENSSL_PUT_ERROR macro and store it alongside file and line number. This doesn't change the format of ERR_print_errors, however ERR_error_string_n now uses the placeholder "OPENSSL_internal" rather than an actual function name since that only takes the uint32_t packed error code as input. This updates err scripts to not emit the function string table. The OPENSSL_PUT_ERROR invocations, for now, still include the extra parameter. That will be removed in a follow-up. BUG=468039 Change-Id: Iaa2ef56991fb58892fa8a1283b3b8b995fbb308d Reviewed-on: https://boringssl-review.googlesource.com/5275 Reviewed-by: Adam Langley <agl@google.com>kris/onging/CECPQ3_patch15
@@ -69,17 +69,10 @@ | |||
OPENSSL_DECLARE_ERROR_REASON(ASN1, MALLOC_FAILURE); | |||
/* Cross-module errors from crypto/x509/i2d_pr.c */ | |||
OPENSSL_DECLARE_ERROR_FUNCTION(ASN1, i2d_PrivateKey); | |||
OPENSSL_DECLARE_ERROR_REASON(ASN1, UNSUPPORTED_PUBLIC_KEY_TYPE); | |||
/* Cross-module errors from crypto/x509/asn1_gen.c. | |||
* TODO(davidben): Remove these once asn1_gen.c is gone. */ | |||
OPENSSL_DECLARE_ERROR_FUNCTION(ASN1, ASN1_generate_v3); | |||
OPENSSL_DECLARE_ERROR_FUNCTION(ASN1, asn1_cb); | |||
OPENSSL_DECLARE_ERROR_FUNCTION(ASN1, parse_tagging); | |||
OPENSSL_DECLARE_ERROR_FUNCTION(ASN1, append_exp); | |||
OPENSSL_DECLARE_ERROR_FUNCTION(ASN1, asn1_str2type); | |||
OPENSSL_DECLARE_ERROR_FUNCTION(ASN1, bitstr_cb); | |||
OPENSSL_DECLARE_ERROR_REASON(ASN1, DEPTH_EXCEEDED); | |||
OPENSSL_DECLARE_ERROR_REASON(ASN1, ILLEGAL_BITSTRING_FORMAT); | |||
OPENSSL_DECLARE_ERROR_REASON(ASN1, ILLEGAL_BOOLEAN); | |||
@@ -8,10 +8,8 @@ add_custom_command( | |||
asn1.errordata | |||
bio.errordata | |||
bn.errordata | |||
buf.errordata | |||
cipher.errordata | |||
conf.errordata | |||
crypto.errordata | |||
dh.errordata | |||
digest.errordata | |||
dsa.errordata | |||
@@ -1,152 +1,88 @@ | |||
ASN1,function,100,ASN1_BIT_STRING_set_bit | |||
ASN1,function,101,ASN1_ENUMERATED_set | |||
ASN1,function,102,ASN1_ENUMERATED_to_BN | |||
ASN1,function,103,ASN1_GENERALIZEDTIME_adj | |||
ASN1,function,104,ASN1_INTEGER_set | |||
ASN1,function,105,ASN1_INTEGER_to_BN | |||
ASN1,function,106,ASN1_OBJECT_new | |||
ASN1,function,107,ASN1_PCTX_new | |||
ASN1,function,108,ASN1_STRING_TABLE_add | |||
ASN1,function,109,ASN1_STRING_set | |||
ASN1,function,110,ASN1_STRING_type_new | |||
ASN1,function,111,ASN1_TIME_adj | |||
ASN1,function,112,ASN1_UTCTIME_adj | |||
ASN1,function,113,ASN1_d2i_fp | |||
ASN1,function,114,ASN1_dup | |||
ASN1,function,115,ASN1_generate_v3 | |||
ASN1,function,116,ASN1_get_object | |||
ASN1,function,117,ASN1_i2d_bio | |||
ASN1,function,118,ASN1_i2d_fp | |||
ASN1,function,119,ASN1_item_d2i_fp | |||
ASN1,function,120,ASN1_item_dup | |||
ASN1,function,121,ASN1_item_ex_d2i | |||
ASN1,function,122,ASN1_item_i2d_bio | |||
ASN1,function,123,ASN1_item_i2d_fp | |||
ASN1,function,124,ASN1_item_pack | |||
ASN1,function,125,ASN1_item_unpack | |||
ASN1,function,126,ASN1_mbstring_ncopy | |||
ASN1,function,127,ASN1_template_new | |||
ASN1,function,128,BIO_new_NDEF | |||
ASN1,function,129,BN_to_ASN1_ENUMERATED | |||
ASN1,function,130,BN_to_ASN1_INTEGER | |||
ASN1,function,131,a2d_ASN1_OBJECT | |||
ASN1,function,132,a2i_ASN1_ENUMERATED | |||
ASN1,function,133,a2i_ASN1_INTEGER | |||
ASN1,function,134,a2i_ASN1_STRING | |||
ASN1,function,135,append_exp | |||
ASN1,function,136,asn1_cb | |||
ASN1,function,137,asn1_check_tlen | |||
ASN1,function,138,asn1_collate_primitive | |||
ASN1,function,139,asn1_collect | |||
ASN1,function,140,asn1_d2i_ex_primitive | |||
ASN1,function,141,asn1_d2i_read_bio | |||
ASN1,function,142,asn1_do_adb | |||
ASN1,function,143,asn1_ex_c2i | |||
ASN1,function,144,asn1_find_end | |||
ASN1,function,145,asn1_item_ex_combine_new | |||
ASN1,function,146,asn1_str2type | |||
ASN1,function,147,asn1_template_ex_d2i | |||
ASN1,function,148,asn1_template_noexp_d2i | |||
ASN1,function,149,bitstr_cb | |||
ASN1,function,150,c2i_ASN1_BIT_STRING | |||
ASN1,function,151,c2i_ASN1_INTEGER | |||
ASN1,function,152,c2i_ASN1_OBJECT | |||
ASN1,function,153,collect_data | |||
ASN1,function,154,d2i_ASN1_BOOLEAN | |||
ASN1,function,155,d2i_ASN1_OBJECT | |||
ASN1,function,156,d2i_ASN1_UINTEGER | |||
ASN1,function,157,d2i_ASN1_UTCTIME | |||
ASN1,function,158,d2i_ASN1_bytes | |||
ASN1,function,159,d2i_ASN1_type_bytes | |||
ASN1,function,160,i2d_ASN1_TIME | |||
ASN1,function,161,i2d_PrivateKey | |||
ASN1,function,162,long_c2i | |||
ASN1,function,163,parse_tagging | |||
ASN1,reason,100,ASN1_LENGTH_MISMATCH | |||
ASN1,reason,101,AUX_ERROR | |||
ASN1,reason,102,BAD_GET_ASN1_OBJECT_CALL | |||
ASN1,reason,103,BAD_OBJECT_HEADER | |||
ASN1,reason,104,BMPSTRING_IS_WRONG_LENGTH | |||
ASN1,reason,105,BN_LIB | |||
ASN1,reason,106,BOOLEAN_IS_WRONG_LENGTH | |||
ASN1,reason,107,BUFFER_TOO_SMALL | |||
ASN1,reason,108,DECODE_ERROR | |||
ASN1,reason,109,DEPTH_EXCEEDED | |||
ASN1,reason,110,ENCODE_ERROR | |||
ASN1,reason,111,ERROR_GETTING_TIME | |||
ASN1,reason,112,EXPECTING_AN_ASN1_SEQUENCE | |||
ASN1,reason,113,EXPECTING_AN_INTEGER | |||
ASN1,reason,114,EXPECTING_AN_OBJECT | |||
ASN1,reason,115,EXPECTING_A_BOOLEAN | |||
ASN1,reason,116,EXPECTING_A_TIME | |||
ASN1,reason,117,EXPLICIT_LENGTH_MISMATCH | |||
ASN1,reason,118,EXPLICIT_TAG_NOT_CONSTRUCTED | |||
ASN1,reason,119,FIELD_MISSING | |||
ASN1,reason,120,FIRST_NUM_TOO_LARGE | |||
ASN1,reason,121,HEADER_TOO_LONG | |||
ASN1,reason,122,ILLEGAL_BITSTRING_FORMAT | |||
ASN1,reason,123,ILLEGAL_BOOLEAN | |||
ASN1,reason,124,ILLEGAL_CHARACTERS | |||
ASN1,reason,125,ILLEGAL_FORMAT | |||
ASN1,reason,126,ILLEGAL_HEX | |||
ASN1,reason,127,ILLEGAL_IMPLICIT_TAG | |||
ASN1,reason,128,ILLEGAL_INTEGER | |||
ASN1,reason,129,ILLEGAL_NESTED_TAGGING | |||
ASN1,reason,130,ILLEGAL_NULL | |||
ASN1,reason,131,ILLEGAL_NULL_VALUE | |||
ASN1,reason,132,ILLEGAL_OBJECT | |||
ASN1,reason,133,ILLEGAL_OPTIONAL_ANY | |||
ASN1,reason,134,ILLEGAL_OPTIONS_ON_ITEM_TEMPLATE | |||
ASN1,reason,135,ILLEGAL_TAGGED_ANY | |||
ASN1,reason,136,ILLEGAL_TIME_VALUE | |||
ASN1,reason,137,INTEGER_NOT_ASCII_FORMAT | |||
ASN1,reason,138,INTEGER_TOO_LARGE_FOR_LONG | |||
ASN1,reason,139,INVALID_BIT_STRING_BITS_LEFT | |||
ASN1,reason,140,INVALID_BMPSTRING_LENGTH | |||
ASN1,reason,141,INVALID_DIGIT | |||
ASN1,reason,142,INVALID_MODIFIER | |||
ASN1,reason,143,INVALID_NUMBER | |||
ASN1,reason,144,INVALID_OBJECT_ENCODING | |||
ASN1,reason,145,INVALID_SEPARATOR | |||
ASN1,reason,146,INVALID_TIME_FORMAT | |||
ASN1,reason,147,INVALID_UNIVERSALSTRING_LENGTH | |||
ASN1,reason,148,INVALID_UTF8STRING | |||
ASN1,reason,149,LIST_ERROR | |||
ASN1,reason,150,MALLOC_FAILURE | |||
ASN1,reason,151,MISSING_ASN1_EOS | |||
ASN1,reason,152,MISSING_EOC | |||
ASN1,reason,153,MISSING_SECOND_NUMBER | |||
ASN1,reason,154,MISSING_VALUE | |||
ASN1,reason,155,MSTRING_NOT_UNIVERSAL | |||
ASN1,reason,156,MSTRING_WRONG_TAG | |||
ASN1,reason,157,NESTED_ASN1_ERROR | |||
ASN1,reason,158,NESTED_ASN1_STRING | |||
ASN1,reason,159,NON_HEX_CHARACTERS | |||
ASN1,reason,160,NOT_ASCII_FORMAT | |||
ASN1,reason,161,NOT_ENOUGH_DATA | |||
ASN1,reason,162,NO_MATCHING_CHOICE_TYPE | |||
ASN1,reason,163,NULL_IS_WRONG_LENGTH | |||
ASN1,reason,164,OBJECT_NOT_ASCII_FORMAT | |||
ASN1,reason,165,ODD_NUMBER_OF_CHARS | |||
ASN1,reason,166,SECOND_NUMBER_TOO_LARGE | |||
ASN1,reason,167,SEQUENCE_LENGTH_MISMATCH | |||
ASN1,reason,168,SEQUENCE_NOT_CONSTRUCTED | |||
ASN1,reason,169,SEQUENCE_OR_SET_NEEDS_CONFIG | |||
ASN1,reason,170,SHORT_LINE | |||
ASN1,reason,171,STREAMING_NOT_SUPPORTED | |||
ASN1,reason,172,STRING_TOO_LONG | |||
ASN1,reason,173,STRING_TOO_SHORT | |||
ASN1,reason,174,TAG_VALUE_TOO_HIGH | |||
ASN1,reason,175,TIME_NOT_ASCII_FORMAT | |||
ASN1,reason,176,TOO_LONG | |||
ASN1,reason,177,TYPE_NOT_CONSTRUCTED | |||
ASN1,reason,178,TYPE_NOT_PRIMITIVE | |||
ASN1,reason,179,UNEXPECTED_EOC | |||
ASN1,reason,180,UNIVERSALSTRING_IS_WRONG_LENGTH | |||
ASN1,reason,181,UNKNOWN_FORMAT | |||
ASN1,reason,182,UNKNOWN_TAG | |||
ASN1,reason,183,UNSUPPORTED_ANY_DEFINED_BY_TYPE | |||
ASN1,reason,184,UNSUPPORTED_PUBLIC_KEY_TYPE | |||
ASN1,reason,185,UNSUPPORTED_TYPE | |||
ASN1,reason,186,WRONG_TAG | |||
ASN1,reason,187,WRONG_TYPE | |||
ASN1,100,ASN1_LENGTH_MISMATCH | |||
ASN1,101,AUX_ERROR | |||
ASN1,102,BAD_GET_ASN1_OBJECT_CALL | |||
ASN1,103,BAD_OBJECT_HEADER | |||
ASN1,104,BMPSTRING_IS_WRONG_LENGTH | |||
ASN1,105,BN_LIB | |||
ASN1,106,BOOLEAN_IS_WRONG_LENGTH | |||
ASN1,107,BUFFER_TOO_SMALL | |||
ASN1,108,DECODE_ERROR | |||
ASN1,109,DEPTH_EXCEEDED | |||
ASN1,110,ENCODE_ERROR | |||
ASN1,111,ERROR_GETTING_TIME | |||
ASN1,112,EXPECTING_AN_ASN1_SEQUENCE | |||
ASN1,113,EXPECTING_AN_INTEGER | |||
ASN1,114,EXPECTING_AN_OBJECT | |||
ASN1,115,EXPECTING_A_BOOLEAN | |||
ASN1,116,EXPECTING_A_TIME | |||
ASN1,117,EXPLICIT_LENGTH_MISMATCH | |||
ASN1,118,EXPLICIT_TAG_NOT_CONSTRUCTED | |||
ASN1,119,FIELD_MISSING | |||
ASN1,120,FIRST_NUM_TOO_LARGE | |||
ASN1,121,HEADER_TOO_LONG | |||
ASN1,122,ILLEGAL_BITSTRING_FORMAT | |||
ASN1,123,ILLEGAL_BOOLEAN | |||
ASN1,124,ILLEGAL_CHARACTERS | |||
ASN1,125,ILLEGAL_FORMAT | |||
ASN1,126,ILLEGAL_HEX | |||
ASN1,127,ILLEGAL_IMPLICIT_TAG | |||
ASN1,128,ILLEGAL_INTEGER | |||
ASN1,129,ILLEGAL_NESTED_TAGGING | |||
ASN1,130,ILLEGAL_NULL | |||
ASN1,131,ILLEGAL_NULL_VALUE | |||
ASN1,132,ILLEGAL_OBJECT | |||
ASN1,133,ILLEGAL_OPTIONAL_ANY | |||
ASN1,134,ILLEGAL_OPTIONS_ON_ITEM_TEMPLATE | |||
ASN1,135,ILLEGAL_TAGGED_ANY | |||
ASN1,136,ILLEGAL_TIME_VALUE | |||
ASN1,137,INTEGER_NOT_ASCII_FORMAT | |||
ASN1,138,INTEGER_TOO_LARGE_FOR_LONG | |||
ASN1,139,INVALID_BIT_STRING_BITS_LEFT | |||
ASN1,140,INVALID_BMPSTRING_LENGTH | |||
ASN1,141,INVALID_DIGIT | |||
ASN1,142,INVALID_MODIFIER | |||
ASN1,143,INVALID_NUMBER | |||
ASN1,144,INVALID_OBJECT_ENCODING | |||
ASN1,145,INVALID_SEPARATOR | |||
ASN1,146,INVALID_TIME_FORMAT | |||
ASN1,147,INVALID_UNIVERSALSTRING_LENGTH | |||
ASN1,148,INVALID_UTF8STRING | |||
ASN1,149,LIST_ERROR | |||
ASN1,150,MALLOC_FAILURE | |||
ASN1,151,MISSING_ASN1_EOS | |||
ASN1,152,MISSING_EOC | |||
ASN1,153,MISSING_SECOND_NUMBER | |||
ASN1,154,MISSING_VALUE | |||
ASN1,155,MSTRING_NOT_UNIVERSAL | |||
ASN1,156,MSTRING_WRONG_TAG | |||
ASN1,157,NESTED_ASN1_ERROR | |||
ASN1,158,NESTED_ASN1_STRING | |||
ASN1,159,NON_HEX_CHARACTERS | |||
ASN1,160,NOT_ASCII_FORMAT | |||
ASN1,161,NOT_ENOUGH_DATA | |||
ASN1,162,NO_MATCHING_CHOICE_TYPE | |||
ASN1,163,NULL_IS_WRONG_LENGTH | |||
ASN1,164,OBJECT_NOT_ASCII_FORMAT | |||
ASN1,165,ODD_NUMBER_OF_CHARS | |||
ASN1,166,SECOND_NUMBER_TOO_LARGE | |||
ASN1,167,SEQUENCE_LENGTH_MISMATCH | |||
ASN1,168,SEQUENCE_NOT_CONSTRUCTED | |||
ASN1,169,SEQUENCE_OR_SET_NEEDS_CONFIG | |||
ASN1,170,SHORT_LINE | |||
ASN1,171,STREAMING_NOT_SUPPORTED | |||
ASN1,172,STRING_TOO_LONG | |||
ASN1,173,STRING_TOO_SHORT | |||
ASN1,174,TAG_VALUE_TOO_HIGH | |||
ASN1,175,TIME_NOT_ASCII_FORMAT | |||
ASN1,176,TOO_LONG | |||
ASN1,177,TYPE_NOT_CONSTRUCTED | |||
ASN1,178,TYPE_NOT_PRIMITIVE | |||
ASN1,179,UNEXPECTED_EOC | |||
ASN1,180,UNIVERSALSTRING_IS_WRONG_LENGTH | |||
ASN1,181,UNKNOWN_FORMAT | |||
ASN1,182,UNKNOWN_TAG | |||
ASN1,183,UNSUPPORTED_ANY_DEFINED_BY_TYPE | |||
ASN1,184,UNSUPPORTED_PUBLIC_KEY_TYPE | |||
ASN1,185,UNSUPPORTED_TYPE | |||
ASN1,186,WRONG_TAG | |||
ASN1,187,WRONG_TYPE |
@@ -1,36 +1,17 @@ | |||
BIO,function,100,BIO_callback_ctrl | |||
BIO,function,101,BIO_ctrl | |||
BIO,function,102,BIO_new | |||
BIO,function,103,BIO_new_file | |||
BIO,function,104,BIO_new_mem_buf | |||
BIO,function,118,BIO_printf | |||
BIO,function,105,BIO_zero_copy_get_read_buf | |||
BIO,function,106,BIO_zero_copy_get_read_buf_done | |||
BIO,function,107,BIO_zero_copy_get_write_buf | |||
BIO,function,108,BIO_zero_copy_get_write_buf_done | |||
BIO,function,109,bio_io | |||
BIO,function,110,bio_make_pair | |||
BIO,function,111,bio_write | |||
BIO,function,112,buffer_ctrl | |||
BIO,function,113,conn_ctrl | |||
BIO,function,114,conn_state | |||
BIO,function,115,file_ctrl | |||
BIO,function,116,file_read | |||
BIO,function,117,mem_write | |||
BIO,reason,100,BAD_FOPEN_MODE | |||
BIO,reason,101,BROKEN_PIPE | |||
BIO,reason,102,CONNECT_ERROR | |||
BIO,reason,103,ERROR_SETTING_NBIO | |||
BIO,reason,104,INVALID_ARGUMENT | |||
BIO,reason,105,IN_USE | |||
BIO,reason,106,KEEPALIVE | |||
BIO,reason,107,NBIO_CONNECT_ERROR | |||
BIO,reason,108,NO_HOSTNAME_SPECIFIED | |||
BIO,reason,109,NO_PORT_SPECIFIED | |||
BIO,reason,110,NO_SUCH_FILE | |||
BIO,reason,111,NULL_PARAMETER | |||
BIO,reason,112,SYS_LIB | |||
BIO,reason,113,UNABLE_TO_CREATE_SOCKET | |||
BIO,reason,114,UNINITIALIZED | |||
BIO,reason,115,UNSUPPORTED_METHOD | |||
BIO,reason,116,WRITE_TO_READ_ONLY_BIO | |||
BIO,100,BAD_FOPEN_MODE | |||
BIO,101,BROKEN_PIPE | |||
BIO,102,CONNECT_ERROR | |||
BIO,103,ERROR_SETTING_NBIO | |||
BIO,104,INVALID_ARGUMENT | |||
BIO,105,IN_USE | |||
BIO,106,KEEPALIVE | |||
BIO,107,NBIO_CONNECT_ERROR | |||
BIO,108,NO_HOSTNAME_SPECIFIED | |||
BIO,109,NO_PORT_SPECIFIED | |||
BIO,110,NO_SUCH_FILE | |||
BIO,111,NULL_PARAMETER | |||
BIO,112,SYS_LIB | |||
BIO,113,UNABLE_TO_CREATE_SOCKET | |||
BIO,114,UNINITIALIZED | |||
BIO,115,UNSUPPORTED_METHOD | |||
BIO,116,WRITE_TO_READ_ONLY_BIO |
@@ -1,48 +1,19 @@ | |||
BN,function,100,BN_CTX_get | |||
BN,function,101,BN_CTX_new | |||
BN,function,102,BN_CTX_start | |||
BN,function,127,BN_bn2cbb | |||
BN,function,103,BN_bn2dec | |||
BN,function,104,BN_bn2hex | |||
BN,function,128,BN_cbs2unsigned | |||
BN,function,105,BN_div | |||
BN,function,106,BN_div_recp | |||
BN,function,107,BN_exp | |||
BN,function,108,BN_generate_dsa_nonce | |||
BN,function,109,BN_generate_prime_ex | |||
BN,function,125,BN_lshift | |||
BN,function,110,BN_mod_exp2_mont | |||
BN,function,111,BN_mod_exp_mont | |||
BN,function,112,BN_mod_exp_mont_consttime | |||
BN,function,113,BN_mod_exp_mont_word | |||
BN,function,114,BN_mod_inverse | |||
BN,function,115,BN_mod_inverse_no_branch | |||
BN,function,116,BN_mod_lshift_quick | |||
BN,function,117,BN_mod_sqrt | |||
BN,function,118,BN_new | |||
BN,function,119,BN_rand | |||
BN,function,120,BN_rand_range | |||
BN,function,126,BN_rshift | |||
BN,function,121,BN_sqrt | |||
BN,function,122,BN_usub | |||
BN,function,123,bn_wexpand | |||
BN,function,124,mod_exp_recp | |||
BN,reason,100,ARG2_LT_ARG3 | |||
BN,reason,117,BAD_ENCODING | |||
BN,reason,101,BAD_RECIPROCAL | |||
BN,reason,102,BIGNUM_TOO_LONG | |||
BN,reason,103,BITS_TOO_SMALL | |||
BN,reason,104,CALLED_WITH_EVEN_MODULUS | |||
BN,reason,105,DIV_BY_ZERO | |||
BN,reason,118,ENCODE_ERROR | |||
BN,reason,106,EXPAND_ON_STATIC_BIGNUM_DATA | |||
BN,reason,107,INPUT_NOT_REDUCED | |||
BN,reason,108,INVALID_RANGE | |||
BN,reason,109,NEGATIVE_NUMBER | |||
BN,reason,110,NOT_A_SQUARE | |||
BN,reason,111,NOT_INITIALIZED | |||
BN,reason,112,NO_INVERSE | |||
BN,reason,113,PRIVATE_KEY_TOO_LARGE | |||
BN,reason,114,P_IS_NOT_PRIME | |||
BN,reason,115,TOO_MANY_ITERATIONS | |||
BN,reason,116,TOO_MANY_TEMPORARY_VARIABLES | |||
BN,100,ARG2_LT_ARG3 | |||
BN,117,BAD_ENCODING | |||
BN,101,BAD_RECIPROCAL | |||
BN,102,BIGNUM_TOO_LONG | |||
BN,103,BITS_TOO_SMALL | |||
BN,104,CALLED_WITH_EVEN_MODULUS | |||
BN,105,DIV_BY_ZERO | |||
BN,118,ENCODE_ERROR | |||
BN,106,EXPAND_ON_STATIC_BIGNUM_DATA | |||
BN,107,INPUT_NOT_REDUCED | |||
BN,108,INVALID_RANGE | |||
BN,109,NEGATIVE_NUMBER | |||
BN,110,NOT_A_SQUARE | |||
BN,111,NOT_INITIALIZED | |||
BN,112,NO_INVERSE | |||
BN,113,PRIVATE_KEY_TOO_LARGE | |||
BN,114,P_IS_NOT_PRIME | |||
BN,115,TOO_MANY_ITERATIONS | |||
BN,116,TOO_MANY_TEMPORARY_VARIABLES |
@@ -1,4 +0,0 @@ | |||
BUF,function,100,BUF_MEM_new | |||
BUF,function,101,BUF_memdup | |||
BUF,function,102,BUF_strndup | |||
BUF,function,103,buf_mem_grow |
@@ -1,60 +1,25 @@ | |||
CIPHER,function,100,EVP_AEAD_CTX_init | |||
CIPHER,function,131,EVP_AEAD_CTX_init_with_direction | |||
CIPHER,function,101,EVP_AEAD_CTX_open | |||
CIPHER,function,102,EVP_AEAD_CTX_seal | |||
CIPHER,function,103,EVP_CIPHER_CTX_copy | |||
CIPHER,function,104,EVP_CIPHER_CTX_ctrl | |||
CIPHER,function,105,EVP_CIPHER_CTX_set_key_length | |||
CIPHER,function,106,EVP_CipherInit_ex | |||
CIPHER,function,107,EVP_DecryptFinal_ex | |||
CIPHER,function,108,EVP_EncryptFinal_ex | |||
CIPHER,function,132,aead_aes_ctr_hmac_sha256_init | |||
CIPHER,function,133,aead_aes_ctr_hmac_sha256_open | |||
CIPHER,function,134,aead_aes_ctr_hmac_sha256_seal | |||
CIPHER,function,109,aead_aes_gcm_init | |||
CIPHER,function,110,aead_aes_gcm_open | |||
CIPHER,function,111,aead_aes_gcm_seal | |||
CIPHER,function,112,aead_aes_key_wrap_init | |||
CIPHER,function,113,aead_aes_key_wrap_open | |||
CIPHER,function,114,aead_aes_key_wrap_seal | |||
CIPHER,function,115,aead_chacha20_poly1305_init | |||
CIPHER,function,116,aead_chacha20_poly1305_open | |||
CIPHER,function,117,aead_chacha20_poly1305_seal | |||
CIPHER,function,118,aead_rc4_md5_tls_init | |||
CIPHER,function,119,aead_rc4_md5_tls_open | |||
CIPHER,function,120,aead_rc4_md5_tls_seal | |||
CIPHER,function,121,aead_ssl3_ensure_cipher_init | |||
CIPHER,function,122,aead_ssl3_init | |||
CIPHER,function,123,aead_ssl3_open | |||
CIPHER,function,124,aead_ssl3_seal | |||
CIPHER,function,125,aead_tls_ensure_cipher_init | |||
CIPHER,function,126,aead_tls_init | |||
CIPHER,function,127,aead_tls_open | |||
CIPHER,function,128,aead_tls_seal | |||
CIPHER,function,129,aes_init_key | |||
CIPHER,function,130,aesni_init_key | |||
CIPHER,reason,100,AES_KEY_SETUP_FAILED | |||
CIPHER,reason,101,BAD_DECRYPT | |||
CIPHER,reason,102,BAD_KEY_LENGTH | |||
CIPHER,reason,103,BUFFER_TOO_SMALL | |||
CIPHER,reason,104,CTRL_NOT_IMPLEMENTED | |||
CIPHER,reason,105,CTRL_OPERATION_NOT_IMPLEMENTED | |||
CIPHER,reason,106,DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH | |||
CIPHER,reason,107,INITIALIZATION_ERROR | |||
CIPHER,reason,108,INPUT_NOT_INITIALIZED | |||
CIPHER,reason,109,INVALID_AD_SIZE | |||
CIPHER,reason,110,INVALID_KEY_LENGTH | |||
CIPHER,reason,111,INVALID_NONCE_SIZE | |||
CIPHER,reason,112,INVALID_OPERATION | |||
CIPHER,reason,113,IV_TOO_LARGE | |||
CIPHER,reason,114,NO_CIPHER_SET | |||
CIPHER,reason,124,NO_DIRECTION_SET | |||
CIPHER,reason,115,OUTPUT_ALIASES_INPUT | |||
CIPHER,reason,116,TAG_TOO_LARGE | |||
CIPHER,reason,117,TOO_LARGE | |||
CIPHER,reason,118,UNSUPPORTED_AD_SIZE | |||
CIPHER,reason,119,UNSUPPORTED_INPUT_SIZE | |||
CIPHER,reason,120,UNSUPPORTED_KEY_SIZE | |||
CIPHER,reason,121,UNSUPPORTED_NONCE_SIZE | |||
CIPHER,reason,122,UNSUPPORTED_TAG_SIZE | |||
CIPHER,reason,123,WRONG_FINAL_BLOCK_LENGTH | |||
CIPHER,100,AES_KEY_SETUP_FAILED | |||
CIPHER,101,BAD_DECRYPT | |||
CIPHER,102,BAD_KEY_LENGTH | |||
CIPHER,103,BUFFER_TOO_SMALL | |||
CIPHER,104,CTRL_NOT_IMPLEMENTED | |||
CIPHER,105,CTRL_OPERATION_NOT_IMPLEMENTED | |||
CIPHER,106,DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH | |||
CIPHER,107,INITIALIZATION_ERROR | |||
CIPHER,108,INPUT_NOT_INITIALIZED | |||
CIPHER,109,INVALID_AD_SIZE | |||
CIPHER,110,INVALID_KEY_LENGTH | |||
CIPHER,111,INVALID_NONCE_SIZE | |||
CIPHER,112,INVALID_OPERATION | |||
CIPHER,113,IV_TOO_LARGE | |||
CIPHER,114,NO_CIPHER_SET | |||
CIPHER,124,NO_DIRECTION_SET | |||
CIPHER,115,OUTPUT_ALIASES_INPUT | |||
CIPHER,116,TAG_TOO_LARGE | |||
CIPHER,117,TOO_LARGE | |||
CIPHER,118,UNSUPPORTED_AD_SIZE | |||
CIPHER,119,UNSUPPORTED_INPUT_SIZE | |||
CIPHER,120,UNSUPPORTED_KEY_SIZE | |||
CIPHER,121,UNSUPPORTED_NONCE_SIZE | |||
CIPHER,122,UNSUPPORTED_TAG_SIZE | |||
CIPHER,123,WRONG_FINAL_BLOCK_LENGTH |
@@ -1,10 +1,6 @@ | |||
CONF,function,100,CONF_parse_list | |||
CONF,function,101,NCONF_load | |||
CONF,function,102,def_load_bio | |||
CONF,function,103,str_copy | |||
CONF,reason,100,LIST_CANNOT_BE_NULL | |||
CONF,reason,101,MISSING_CLOSE_SQUARE_BRACKET | |||
CONF,reason,102,MISSING_EQUAL_SIGN | |||
CONF,reason,103,NO_CLOSE_BRACE | |||
CONF,reason,104,UNABLE_TO_CREATE_NEW_SECTION | |||
CONF,reason,105,VARIABLE_HAS_NO_VALUE | |||
CONF,100,LIST_CANNOT_BE_NULL | |||
CONF,101,MISSING_CLOSE_SQUARE_BRACKET | |||
CONF,102,MISSING_EQUAL_SIGN | |||
CONF,103,NO_CLOSE_BRACE | |||
CONF,104,UNABLE_TO_CREATE_NEW_SECTION | |||
CONF,105,VARIABLE_HAS_NO_VALUE |
@@ -1,4 +0,0 @@ | |||
CRYPTO,function,100,CRYPTO_get_ex_new_index | |||
CRYPTO,function,101,CRYPTO_set_ex_data | |||
CRYPTO,function,102,get_class | |||
CRYPTO,function,103,get_func_pointers |
@@ -1,8 +1,4 @@ | |||
DH,function,100,DH_new_method | |||
DH,function,101,compute_key | |||
DH,function,102,generate_key | |||
DH,function,103,generate_parameters | |||
DH,reason,100,BAD_GENERATOR | |||
DH,reason,101,INVALID_PUBKEY | |||
DH,reason,102,MODULUS_TOO_LARGE | |||
DH,reason,103,NO_PRIVATE_VALUE | |||
DH,100,BAD_GENERATOR | |||
DH,101,INVALID_PUBKEY | |||
DH,102,MODULUS_TOO_LARGE | |||
DH,103,NO_PRIVATE_VALUE |
@@ -1,3 +1 @@ | |||
DIGEST,function,100,EVP_DigestInit_ex | |||
DIGEST,function,101,EVP_MD_CTX_copy_ex | |||
DIGEST,reason,100,INPUT_NOT_INITIALIZED | |||
DIGEST,100,INPUT_NOT_INITIALIZED |
@@ -1,9 +1,4 @@ | |||
DSA,function,100,DSA_new_method | |||
DSA,function,101,dsa_sig_cb | |||
DSA,function,102,sign | |||
DSA,function,103,sign_setup | |||
DSA,function,104,verify | |||
DSA,reason,100,BAD_Q_VALUE | |||
DSA,reason,101,MISSING_PARAMETERS | |||
DSA,reason,102,MODULUS_TOO_LARGE | |||
DSA,reason,103,NEED_NEW_SETUP_VALUES | |||
DSA,100,BAD_Q_VALUE | |||
DSA,101,MISSING_PARAMETERS | |||
DSA,102,MODULUS_TOO_LARGE | |||
DSA,103,NEED_NEW_SETUP_VALUES |
@@ -1,95 +1,28 @@ | |||
EC,function,159,BN_to_felem | |||
EC,function,100,EC_GROUP_copy | |||
EC,function,101,EC_GROUP_get_curve_GFp | |||
EC,function,102,EC_GROUP_get_degree | |||
EC,function,103,EC_GROUP_new_by_curve_name | |||
EC,function,166,EC_GROUP_new_curve_GFp | |||
EC,function,104,EC_KEY_check_key | |||
EC,function,105,EC_KEY_copy | |||
EC,function,106,EC_KEY_generate_key | |||
EC,function,165,EC_KEY_new_by_curve_name | |||
EC,function,107,EC_KEY_new_method | |||
EC,function,108,EC_KEY_set_public_key_affine_coordinates | |||
EC,function,109,EC_POINT_add | |||
EC,function,110,EC_POINT_cmp | |||
EC,function,111,EC_POINT_copy | |||
EC,function,112,EC_POINT_dbl | |||
EC,function,113,EC_POINT_dup | |||
EC,function,114,EC_POINT_get_affine_coordinates_GFp | |||
EC,function,115,EC_POINT_invert | |||
EC,function,116,EC_POINT_is_at_infinity | |||
EC,function,117,EC_POINT_is_on_curve | |||
EC,function,118,EC_POINT_make_affine | |||
EC,function,119,EC_POINT_new | |||
EC,function,120,EC_POINT_oct2point | |||
EC,function,121,EC_POINT_point2oct | |||
EC,function,122,EC_POINT_set_affine_coordinates_GFp | |||
EC,function,123,EC_POINT_set_compressed_coordinates_GFp | |||
EC,function,124,EC_POINT_set_to_infinity | |||
EC,function,125,EC_POINTs_make_affine | |||
EC,function,126,compute_wNAF | |||
EC,function,127,d2i_ECPKParameters | |||
EC,function,128,d2i_ECParameters | |||
EC,function,129,d2i_ECPrivateKey | |||
EC,function,130,ec_GFp_mont_field_decode | |||
EC,function,131,ec_GFp_mont_field_encode | |||
EC,function,132,ec_GFp_mont_field_mul | |||
EC,function,133,ec_GFp_mont_field_set_to_one | |||
EC,function,134,ec_GFp_mont_field_sqr | |||
EC,function,135,ec_GFp_mont_group_set_curve | |||
EC,function,160,ec_GFp_nistp256_group_set_curve | |||
EC,function,161,ec_GFp_nistp256_point_get_affine_coordinates | |||
EC,function,162,ec_GFp_nistp256_points_mul | |||
EC,function,136,ec_GFp_simple_group_check_discriminant | |||
EC,function,137,ec_GFp_simple_group_set_curve | |||
EC,function,138,ec_GFp_simple_make_affine | |||
EC,function,139,ec_GFp_simple_oct2point | |||
EC,function,140,ec_GFp_simple_point2oct | |||
EC,function,141,ec_GFp_simple_point_get_affine_coordinates | |||
EC,function,142,ec_GFp_simple_point_set_affine_coordinates | |||
EC,function,143,ec_GFp_simple_points_make_affine | |||
EC,function,144,ec_GFp_simple_set_compressed_coordinates | |||
EC,function,145,ec_asn1_group2pkparameters | |||
EC,function,146,ec_asn1_pkparameters2group | |||
EC,function,163,ec_group_copy | |||
EC,function,147,ec_group_new | |||
EC,function,148,ec_group_new_curve_GFp | |||
EC,function,149,ec_group_new_from_data | |||
EC,function,150,ec_point_set_Jprojective_coordinates_GFp | |||
EC,function,151,ec_pre_comp_new | |||
EC,function,152,ec_wNAF_mul | |||
EC,function,153,ec_wNAF_precompute_mult | |||
EC,function,154,i2d_ECPKParameters | |||
EC,function,155,i2d_ECParameters | |||
EC,function,156,i2d_ECPrivateKey | |||
EC,function,157,i2o_ECPublicKey | |||
EC,function,164,nistp256_pre_comp_new | |||
EC,function,158,o2i_ECPublicKey | |||
EC,reason,126,BIGNUM_OUT_OF_RANGE | |||
EC,reason,100,BUFFER_TOO_SMALL | |||
EC,reason,101,COORDINATES_OUT_OF_RANGE | |||
EC,reason,102,D2I_ECPKPARAMETERS_FAILURE | |||
EC,reason,103,EC_GROUP_NEW_BY_NAME_FAILURE | |||
EC,reason,104,GROUP2PKPARAMETERS_FAILURE | |||
EC,reason,105,I2D_ECPKPARAMETERS_FAILURE | |||
EC,reason,106,INCOMPATIBLE_OBJECTS | |||
EC,reason,107,INVALID_COMPRESSED_POINT | |||
EC,reason,108,INVALID_COMPRESSION_BIT | |||
EC,reason,109,INVALID_ENCODING | |||
EC,reason,110,INVALID_FIELD | |||
EC,reason,111,INVALID_FORM | |||
EC,reason,112,INVALID_GROUP_ORDER | |||
EC,reason,113,INVALID_PRIVATE_KEY | |||
EC,reason,114,MISSING_PARAMETERS | |||
EC,reason,115,MISSING_PRIVATE_KEY | |||
EC,reason,116,NON_NAMED_CURVE | |||
EC,reason,117,NOT_INITIALIZED | |||
EC,reason,118,PKPARAMETERS2GROUP_FAILURE | |||
EC,reason,119,POINT_AT_INFINITY | |||
EC,reason,120,POINT_IS_NOT_ON_CURVE | |||
EC,reason,121,SLOT_FULL | |||
EC,reason,122,UNDEFINED_GENERATOR | |||
EC,reason,123,UNKNOWN_GROUP | |||
EC,reason,124,UNKNOWN_ORDER | |||
EC,reason,127,WRONG_CURVE_PARAMETERS | |||
EC,reason,125,WRONG_ORDER | |||
EC,126,BIGNUM_OUT_OF_RANGE | |||
EC,100,BUFFER_TOO_SMALL | |||
EC,101,COORDINATES_OUT_OF_RANGE | |||
EC,102,D2I_ECPKPARAMETERS_FAILURE | |||
EC,103,EC_GROUP_NEW_BY_NAME_FAILURE | |||
EC,104,GROUP2PKPARAMETERS_FAILURE | |||
EC,105,I2D_ECPKPARAMETERS_FAILURE | |||
EC,106,INCOMPATIBLE_OBJECTS | |||
EC,107,INVALID_COMPRESSED_POINT | |||
EC,108,INVALID_COMPRESSION_BIT | |||
EC,109,INVALID_ENCODING | |||
EC,110,INVALID_FIELD | |||
EC,111,INVALID_FORM | |||
EC,112,INVALID_GROUP_ORDER | |||
EC,113,INVALID_PRIVATE_KEY | |||
EC,114,MISSING_PARAMETERS | |||
EC,115,MISSING_PRIVATE_KEY | |||
EC,116,NON_NAMED_CURVE | |||
EC,117,NOT_INITIALIZED | |||
EC,118,PKPARAMETERS2GROUP_FAILURE | |||
EC,119,POINT_AT_INFINITY | |||
EC,120,POINT_IS_NOT_ON_CURVE | |||
EC,121,SLOT_FULL | |||
EC,122,UNDEFINED_GENERATOR | |||
EC,123,UNKNOWN_GROUP | |||
EC,124,UNKNOWN_ORDER | |||
EC,127,WRONG_CURVE_PARAMETERS | |||
EC,125,WRONG_ORDER |
@@ -1,4 +1,3 @@ | |||
ECDH,function,100,ECDH_compute_key | |||
ECDH,reason,100,KDF_FAILED | |||
ECDH,reason,101,NO_PRIVATE_VALUE | |||
ECDH,reason,102,POINT_ARITHMETIC_FAILURE | |||
ECDH,100,KDF_FAILED | |||
ECDH,101,NO_PRIVATE_VALUE | |||
ECDH,102,POINT_ARITHMETIC_FAILURE |
@@ -1,18 +1,6 @@ | |||
ECDSA,function,106,ECDSA_SIG_from_bytes | |||
ECDSA,function,107,ECDSA_SIG_marshal | |||
ECDSA,function,108,ECDSA_SIG_parse | |||
ECDSA,function,109,ECDSA_SIG_to_bytes | |||
ECDSA,function,100,ECDSA_do_sign_ex | |||
ECDSA,function,101,ECDSA_do_verify | |||
ECDSA,function,102,ECDSA_sign_ex | |||
ECDSA,function,110,ECDSA_verify | |||
ECDSA,function,105,d2i_ECDSA_SIG | |||
ECDSA,function,103,digest_to_bn | |||
ECDSA,function,104,ecdsa_sign_setup | |||
ECDSA,function,112,i2d_ECDSA_SIG | |||
ECDSA,reason,100,BAD_SIGNATURE | |||
ECDSA,reason,105,ENCODE_ERROR | |||
ECDSA,reason,101,MISSING_PARAMETERS | |||
ECDSA,reason,102,NEED_NEW_SETUP_VALUES | |||
ECDSA,reason,103,NOT_IMPLEMENTED | |||
ECDSA,reason,104,RANDOM_NUMBER_GENERATION_FAILED | |||
ECDSA,100,BAD_SIGNATURE | |||
ECDSA,105,ENCODE_ERROR | |||
ECDSA,101,MISSING_PARAMETERS | |||
ECDSA,102,NEED_NEW_SETUP_VALUES | |||
ECDSA,103,NOT_IMPLEMENTED | |||
ECDSA,104,RANDOM_NUMBER_GENERATION_FAILED |
@@ -1 +1 @@ | |||
ENGINE,reason,100,OPERATION_NOT_SUPPORTED | |||
ENGINE,100,OPERATION_NOT_SUPPORTED |
@@ -125,10 +125,6 @@ | |||
#include "../internal.h" | |||
extern const uint32_t kOpenSSLFunctionValues[]; | |||
extern const size_t kOpenSSLFunctionValuesLen; | |||
extern const char kOpenSSLFunctionStringData[]; | |||
extern const uint32_t kOpenSSLReasonValues[]; | |||
extern const size_t kOpenSSLReasonValuesLen; | |||
extern const char kOpenSSLReasonStringData[]; | |||
@@ -259,42 +255,51 @@ static uint32_t get_error_values(int inc, int top, const char **file, int *line, | |||
} | |||
uint32_t ERR_get_error(void) { | |||
return get_error_values(1, 0, NULL, NULL, NULL, NULL); | |||
return get_error_values(1 /* inc */, 0 /* bottom */, NULL, NULL, NULL, NULL); | |||
} | |||
uint32_t ERR_get_error_line(const char **file, int *line) { | |||
return get_error_values(1, 0, file, line, NULL, NULL); | |||
return get_error_values(1 /* inc */, 0 /* bottom */, file, line, NULL, NULL); | |||
} | |||
uint32_t ERR_get_error_line_data(const char **file, int *line, | |||
const char **data, int *flags) { | |||
return get_error_values(1, 0, file, line, data, flags); | |||
return get_error_values(1 /* inc */, 0 /* bottom */, file, line, data, flags); | |||
} | |||
uint32_t ERR_peek_error(void) { | |||
return get_error_values(0, 0, NULL, NULL, NULL, NULL); | |||
return get_error_values(0 /* peek */, 0 /* bottom */, NULL, NULL, NULL, NULL); | |||
} | |||
uint32_t ERR_peek_error_line(const char **file, int *line) { | |||
return get_error_values(0, 0, file, line, NULL, NULL); | |||
return get_error_values(0 /* peek */, 0 /* bottom */, file, line, NULL, NULL); | |||
} | |||
uint32_t ERR_peek_error_line_data(const char **file, int *line, | |||
const char **data, int *flags) { | |||
return get_error_values(0, 0, file, line, data, flags); | |||
return get_error_values(0 /* peek */, 0 /* bottom */, file, line, data, | |||
flags); | |||
} | |||
const char *ERR_peek_function(void) { | |||
ERR_STATE *state = err_get_state(); | |||
if (state == NULL || state->bottom == state->top) { | |||
return NULL; | |||
} | |||
return state->errors[(state->bottom + 1) % ERR_NUM_ERRORS].function; | |||
} | |||
uint32_t ERR_peek_last_error(void) { | |||
return get_error_values(0, 1, NULL, NULL, NULL, NULL); | |||
return get_error_values(0 /* peek */, 1 /* top */, NULL, NULL, NULL, NULL); | |||
} | |||
uint32_t ERR_peek_last_error_line(const char **file, int *line) { | |||
return get_error_values(0, 1, file, line, NULL, NULL); | |||
return get_error_values(0 /* peek */, 1 /* top */, file, line, NULL, NULL); | |||
} | |||
uint32_t ERR_peek_last_error_line_data(const char **file, int *line, | |||
const char **data, int *flags) { | |||
return get_error_values(0, 1, file, line, data, flags); | |||
return get_error_values(0 /* peek */, 1 /* top */, file, line, data, flags); | |||
} | |||
void ERR_clear_error(void) { | |||
@@ -341,40 +346,20 @@ void ERR_clear_system_error(void) { | |||
errno = 0; | |||
} | |||
char *ERR_error_string(uint32_t packed_error, char *ret) { | |||
static char buf[ERR_ERROR_STRING_BUF_LEN]; | |||
if (ret == NULL) { | |||
/* TODO(fork): remove this. */ | |||
ret = buf; | |||
} | |||
#if !defined(NDEBUG) | |||
/* This is aimed to help catch callers who don't provide | |||
* |ERR_ERROR_STRING_BUF_LEN| bytes of space. */ | |||
memset(ret, 0, ERR_ERROR_STRING_BUF_LEN); | |||
#endif | |||
ERR_error_string_n(packed_error, ret, ERR_ERROR_STRING_BUF_LEN); | |||
return ret; | |||
} | |||
void ERR_error_string_n(uint32_t packed_error, char *buf, size_t len) { | |||
char lib_buf[64], func_buf[64], reason_buf[64]; | |||
const char *lib_str, *func_str, *reason_str; | |||
unsigned lib, func, reason; | |||
static void err_error_string(uint32_t packed_error, const char *func_str, | |||
char *buf, size_t len) { | |||
char lib_buf[64], reason_buf[64]; | |||
const char *lib_str, *reason_str; | |||
unsigned lib, reason; | |||
if (len == 0) { | |||
return; | |||
} | |||
lib = ERR_GET_LIB(packed_error); | |||
func = ERR_GET_FUNC(packed_error); | |||
reason = ERR_GET_REASON(packed_error); | |||
lib_str = ERR_lib_error_string(packed_error); | |||
func_str = ERR_func_error_string(packed_error); | |||
reason_str = ERR_reason_error_string(packed_error); | |||
if (lib_str == NULL) { | |||
@@ -383,8 +368,7 @@ void ERR_error_string_n(uint32_t packed_error, char *buf, size_t len) { | |||
} | |||
if (func_str == NULL) { | |||
BIO_snprintf(func_buf, sizeof(func_buf), "func(%u)", func); | |||
func_str = func_buf; | |||
func_str = "OPENSSL_internal"; | |||
} | |||
if (reason_str == NULL) { | |||
@@ -426,6 +410,29 @@ void ERR_error_string_n(uint32_t packed_error, char *buf, size_t len) { | |||
} | |||
} | |||
char *ERR_error_string(uint32_t packed_error, char *ret) { | |||
static char buf[ERR_ERROR_STRING_BUF_LEN]; | |||
if (ret == NULL) { | |||
/* TODO(fork): remove this. */ | |||
ret = buf; | |||
} | |||
#if !defined(NDEBUG) | |||
/* This is aimed to help catch callers who don't provide | |||
* |ERR_ERROR_STRING_BUF_LEN| bytes of space. */ | |||
memset(ret, 0, ERR_ERROR_STRING_BUF_LEN); | |||
#endif | |||
ERR_error_string_n(packed_error, ret, ERR_ERROR_STRING_BUF_LEN); | |||
return ret; | |||
} | |||
void ERR_error_string_n(uint32_t packed_error, char *buf, size_t len) { | |||
err_error_string(packed_error, NULL, buf, len); | |||
} | |||
// err_string_cmp is a compare function for searching error values with | |||
// |bsearch| in |err_string_lookup|. | |||
static int err_string_cmp(const void *a, const void *b) { | |||
@@ -519,36 +526,7 @@ const char *ERR_lib_error_string(uint32_t packed_error) { | |||
} | |||
const char *ERR_func_error_string(uint32_t packed_error) { | |||
const uint32_t lib = ERR_GET_LIB(packed_error); | |||
const uint32_t func = ERR_GET_FUNC(packed_error); | |||
if (lib == ERR_LIB_SYS) { | |||
switch (func) { | |||
case SYS_F_fopen: | |||
return "fopen"; | |||
case SYS_F_fclose: | |||
return "fclose"; | |||
case SYS_F_fread: | |||
return "fread"; | |||
case SYS_F_fwrite: | |||
return "fwrite"; | |||
case SYS_F_socket: | |||
return "socket"; | |||
case SYS_F_setsockopt: | |||
return "setsockopt"; | |||
case SYS_F_connect: | |||
return "connect"; | |||
case SYS_F_getaddrinfo: | |||
return "getaddrinfo"; | |||
default: | |||
return NULL; | |||
} | |||
} | |||
return err_string_lookup(ERR_GET_LIB(packed_error), | |||
ERR_GET_FUNC(packed_error), kOpenSSLFunctionValues, | |||
kOpenSSLFunctionValuesLen, | |||
kOpenSSLFunctionStringData); | |||
return "OPENSSL_internal"; | |||
} | |||
const char *ERR_reason_error_string(uint32_t packed_error) { | |||
@@ -599,12 +577,13 @@ void ERR_print_errors_cb(ERR_print_errors_callback_t callback, void *ctx) { | |||
const unsigned long thread_hash = (uintptr_t) err_get_state(); | |||
for (;;) { | |||
const char *function = ERR_peek_function(); | |||
packed_error = ERR_get_error_line_data(&file, &line, &data, &flags); | |||
if (packed_error == 0) { | |||
break; | |||
} | |||
ERR_error_string_n(packed_error, buf, sizeof(buf)); | |||
err_error_string(packed_error, function, buf, sizeof(buf)); | |||
BIO_snprintf(buf2, sizeof(buf2), "%lu:%s:%s:%d:%s\n", thread_hash, buf, | |||
file, line, (flags & ERR_FLAG_STRING) ? data : ""); | |||
if (callback(buf2, strlen(buf2), ctx) <= 0) { | |||
@@ -644,8 +623,8 @@ static void err_set_error_data(char *data, int flags) { | |||
error->flags = flags; | |||
} | |||
void ERR_put_error(int library, int func, int reason, const char *file, | |||
unsigned line) { | |||
void ERR_put_error(int library, int reason, const char *function, | |||
const char *file, unsigned line) { | |||
ERR_STATE *const state = err_get_state(); | |||
struct err_error_st *error; | |||
@@ -668,9 +647,10 @@ void ERR_put_error(int library, int func, int reason, const char *file, | |||
error = &state->errors[state->top]; | |||
err_clear(error); | |||
error->function = function; | |||
error->file = file; | |||
error->line = line; | |||
error->packed = ERR_PACK(library, func, reason); | |||
error->packed = ERR_PACK(library, reason); | |||
} | |||
/* ERR_add_error_data_vdata takes a variable number of const char* pointers, | |||
@@ -69,7 +69,7 @@ type stringList struct { | |||
// entries is an array of keys and offsets into |stringData|. The | |||
// offsets are in the bottom 15 bits of each uint32 and the key is the | |||
// top 17 bits. | |||
entries []uint32 | |||
entries []uint32 | |||
// internedStrings contains the same strings as are in |stringData|, | |||
// but allows for easy deduplication. It maps a string to its offset in | |||
// |stringData|. | |||
@@ -146,7 +146,7 @@ func (st *stringList) WriteTo(out stringWriter, name string) { | |||
fmt.Fprintf(out, " 0x%x,\n", v) | |||
} | |||
out.WriteString("};\n\n") | |||
out.WriteString("const size_t " + values + "Len = sizeof(" + values + ") / sizeof(" + values + "[0]);\n\n"); | |||
out.WriteString("const size_t " + values + "Len = sizeof(" + values + ") / sizeof(" + values + "[0]);\n\n") | |||
stringData := "kOpenSSL" + name + "StringData" | |||
out.WriteString("const char " + stringData + "[] =\n \"") | |||
@@ -161,8 +161,8 @@ func (st *stringList) WriteTo(out stringWriter, name string) { | |||
} | |||
type errorData struct { | |||
functions, reasons *stringList | |||
libraryMap map[string]uint32 | |||
reasons *stringList | |||
libraryMap map[string]uint32 | |||
} | |||
func (e *errorData) readErrorDataFile(filename string) error { | |||
@@ -184,8 +184,8 @@ func (e *errorData) readErrorDataFile(filename string) error { | |||
continue | |||
} | |||
parts := bytes.Split(line, comma) | |||
if len(parts) != 4 { | |||
return fmt.Errorf("bad line %d in %s: found %d values but want 4", lineNo, filename, len(parts)) | |||
if len(parts) != 3 { | |||
return fmt.Errorf("bad line %d in %s: found %d values but want 3", lineNo, filename, len(parts)) | |||
} | |||
libNum, ok := e.libraryMap[string(parts[0])] | |||
if !ok { | |||
@@ -194,26 +194,18 @@ func (e *errorData) readErrorDataFile(filename string) error { | |||
if libNum >= 64 { | |||
return fmt.Errorf("bad line %d in %s: library value too large", lineNo, filename) | |||
} | |||
key, err := strconv.ParseUint(string(parts[2]), 10 /* base */, 32 /* bit size */) | |||
key, err := strconv.ParseUint(string(parts[1]), 10 /* base */, 32 /* bit size */) | |||
if err != nil { | |||
return fmt.Errorf("bad line %d in %s: %s", lineNo, filename, err) | |||
} | |||
if key >= 2048 { | |||
return fmt.Errorf("bad line %d in %s: key too large", lineNo, filename) | |||
} | |||
value := string(parts[3]) | |||
value := string(parts[2]) | |||
listKey := libNum<<26 | uint32(key)<<15 | |||
switch string(parts[1]) { | |||
case "function": | |||
err = e.functions.Add(listKey, value) | |||
case "reason": | |||
err = e.reasons.Add(listKey, value) | |||
default: | |||
return fmt.Errorf("bad line %d in %s: bad value type", lineNo, filename) | |||
} | |||
err = e.reasons.Add(listKey, value) | |||
if err != nil { | |||
return err | |||
} | |||
@@ -224,7 +216,6 @@ func (e *errorData) readErrorDataFile(filename string) error { | |||
func main() { | |||
e := &errorData{ | |||
functions: newStringList(), | |||
reasons: newStringList(), | |||
libraryMap: make(map[string]uint32), | |||
} | |||
@@ -279,9 +270,8 @@ func main() { | |||
for i, name := range libraryNames { | |||
fmt.Fprintf(out, "OPENSSL_COMPILE_ASSERT(ERR_LIB_%s == %d, library_values_changed_%d);\n", name, i+1, i+1) | |||
} | |||
fmt.Fprintf(out, "OPENSSL_COMPILE_ASSERT(ERR_NUM_LIBS == %d, library_values_changed_num);\n", len(libraryNames) + 1) | |||
fmt.Fprintf(out, "OPENSSL_COMPILE_ASSERT(ERR_NUM_LIBS == %d, library_values_changed_num);\n", len(libraryNames)+1) | |||
out.WriteString("\n") | |||
e.functions.WriteTo(out, "Function") | |||
e.reasons.WriteTo(out, "Reason") | |||
} |
@@ -22,7 +22,7 @@ | |||
static bool TestOverflow() { | |||
for (unsigned i = 0; i < ERR_NUM_ERRORS*2; i++) { | |||
ERR_put_error(1, 2, i+1, "test", 1); | |||
ERR_put_error(1, i+1, "function", "test", 1); | |||
} | |||
for (unsigned i = 0; i < ERR_NUM_ERRORS - 1; i++) { | |||
@@ -50,7 +50,7 @@ static bool TestPutError() { | |||
return false; | |||
} | |||
ERR_put_error(1, 2, 3, "test", 4); | |||
ERR_put_error(1, 2, "function", "test", 4); | |||
ERR_add_error_data(1, "testing"); | |||
int peeked_line, line, peeked_flags, flags; | |||
@@ -58,6 +58,7 @@ static bool TestPutError() { | |||
uint32_t peeked_packed_error = | |||
ERR_peek_error_line_data(&peeked_file, &peeked_line, &peeked_data, | |||
&peeked_flags); | |||
const char *function = ERR_peek_function(); | |||
uint32_t packed_error = ERR_get_error_line_data(&file, &line, &data, &flags); | |||
if (peeked_packed_error != packed_error || | |||
@@ -68,12 +69,12 @@ static bool TestPutError() { | |||
return false; | |||
} | |||
if (strcmp(file, "test") != 0 || | |||
if (strcmp(function, "function") != 0 || | |||
strcmp(file, "test") != 0 || | |||
line != 4 || | |||
(flags & ERR_FLAG_STRING) == 0 || | |||
ERR_GET_LIB(packed_error) != 1 || | |||
ERR_GET_FUNC(packed_error) != 2 || | |||
ERR_GET_REASON(packed_error) != 3 || | |||
ERR_GET_REASON(packed_error) != 2 || | |||
strcmp(data, "testing") != 0) { | |||
fprintf(stderr, "Bad error data returned.\n"); | |||
return false; | |||
@@ -88,7 +89,7 @@ static bool TestClearError() { | |||
return false; | |||
} | |||
ERR_put_error(1, 2, 3, "test", 4); | |||
ERR_put_error(1, 2, "function", "test", 4); | |||
ERR_clear_error(); | |||
if (ERR_get_error() != 0) { | |||
@@ -100,7 +101,7 @@ static bool TestClearError() { | |||
} | |||
static bool TestPrint() { | |||
ERR_put_error(1, 2, 3, "test", 4); | |||
ERR_put_error(1, 2, "function", "test", 4); | |||
ERR_add_error_data(1, "testing"); | |||
uint32_t packed_error = ERR_get_error(); | |||
@@ -113,11 +114,41 @@ static bool TestPrint() { | |||
} | |||
static bool TestRelease() { | |||
ERR_put_error(1, 2, 3, "test", 4); | |||
ERR_put_error(1, 2, "function", "test", 4); | |||
ERR_remove_thread_state(NULL); | |||
return true; | |||
} | |||
static bool HasSuffix(const char *str, const char *suffix) { | |||
size_t suffix_len = strlen(suffix); | |||
size_t str_len = strlen(str); | |||
if (str_len < suffix_len) { | |||
return false; | |||
} | |||
return strcmp(str + str_len - suffix_len, suffix) == 0; | |||
} | |||
static bool TestPutMacro() { | |||
int expected_line = __LINE__ + 1; | |||
OPENSSL_PUT_ERROR(USER, TestPutMacro, ERR_R_INTERNAL_ERROR); | |||
int line; | |||
const char *file; | |||
const char *function = ERR_peek_function(); | |||
uint32_t error = ERR_get_error_line(&file, &line); | |||
if (strcmp(function, "TestPutMacro") != 0 || | |||
!HasSuffix(file, "err_test.cc") || | |||
line != expected_line || | |||
ERR_GET_LIB(error) != ERR_LIB_USER || | |||
ERR_GET_REASON(error) != ERR_R_INTERNAL_ERROR) { | |||
fprintf(stderr, "Bad error data returned.\n"); | |||
return false; | |||
} | |||
return true; | |||
} | |||
int main() { | |||
CRYPTO_library_init(); | |||
@@ -125,7 +156,8 @@ int main() { | |||
!TestPutError() || | |||
!TestClearError() || | |||
!TestPrint() || | |||
!TestRelease()) { | |||
!TestRelease() || | |||
!TestPutMacro()) { | |||
return 1; | |||
} | |||
@@ -1,114 +1,46 @@ | |||
EVP,function,160,EVP_DigestSignAlgorithm | |||
EVP,function,161,EVP_DigestVerifyInitFromAlgorithm | |||
EVP,function,162,EVP_PKEY_CTX_ctrl | |||
EVP,function,163,EVP_PKEY_CTX_dup | |||
EVP,function,159,EVP_PKEY_CTX_get0_rsa_oaep_label | |||
EVP,function,164,EVP_PKEY_copy_parameters | |||
EVP,function,165,EVP_PKEY_decrypt | |||
EVP,function,166,EVP_PKEY_decrypt_init | |||
EVP,function,167,EVP_PKEY_derive | |||
EVP,function,108,EVP_PKEY_derive_init | |||
EVP,function,168,EVP_PKEY_derive_set_peer | |||
EVP,function,110,EVP_PKEY_encrypt | |||
EVP,function,111,EVP_PKEY_encrypt_init | |||
EVP,function,112,EVP_PKEY_get1_DH | |||
EVP,function,169,EVP_PKEY_get1_DSA | |||
EVP,function,114,EVP_PKEY_get1_EC_KEY | |||
EVP,function,115,EVP_PKEY_get1_RSA | |||
EVP,function,116,EVP_PKEY_keygen | |||
EVP,function,170,EVP_PKEY_keygen_init | |||
EVP,function,171,EVP_PKEY_new | |||
EVP,function,172,EVP_PKEY_set_type | |||
EVP,function,120,EVP_PKEY_sign | |||
EVP,function,121,EVP_PKEY_sign_init | |||
EVP,function,122,EVP_PKEY_verify | |||
EVP,function,123,EVP_PKEY_verify_init | |||
EVP,function,173,check_padding_md | |||
EVP,function,125,d2i_AutoPrivateKey | |||
EVP,function,126,d2i_PrivateKey | |||
EVP,function,127,do_EC_KEY_print | |||
EVP,function,174,do_dsa_print | |||
EVP,function,175,do_rsa_print | |||
EVP,function,129,do_sigver_init | |||
EVP,function,176,dsa_param_decode | |||
EVP,function,177,dsa_priv_decode | |||
EVP,function,178,dsa_priv_encode | |||
EVP,function,179,dsa_pub_decode | |||
EVP,function,180,dsa_pub_encode | |||
EVP,function,181,dsa_sig_print | |||
EVP,function,130,eckey_param2type | |||
EVP,function,131,eckey_param_decode | |||
EVP,function,132,eckey_priv_decode | |||
EVP,function,133,eckey_priv_encode | |||
EVP,function,134,eckey_pub_decode | |||
EVP,function,135,eckey_pub_encode | |||
EVP,function,136,eckey_type2param | |||
EVP,function,137,evp_pkey_ctx_new | |||
EVP,function,138,hmac_signctx | |||
EVP,function,139,i2d_PublicKey | |||
EVP,function,182,old_dsa_priv_decode | |||
EVP,function,140,old_ec_priv_decode | |||
EVP,function,141,old_rsa_priv_decode | |||
EVP,function,142,pkey_ec_ctrl | |||
EVP,function,143,pkey_ec_derive | |||
EVP,function,144,pkey_ec_keygen | |||
EVP,function,145,pkey_ec_paramgen | |||
EVP,function,146,pkey_ec_sign | |||
EVP,function,158,pkey_hmac_ctrl | |||
EVP,function,147,pkey_rsa_ctrl | |||
EVP,function,148,pkey_rsa_decrypt | |||
EVP,function,149,pkey_rsa_encrypt | |||
EVP,function,150,pkey_rsa_sign | |||
EVP,function,151,rsa_algor_to_md | |||
EVP,function,152,rsa_digest_verify_init_from_algorithm | |||
EVP,function,153,rsa_mgf1_to_md | |||
EVP,function,154,rsa_priv_decode | |||
EVP,function,155,rsa_priv_encode | |||
EVP,function,156,rsa_pss_to_ctx | |||
EVP,function,157,rsa_pub_decode | |||
EVP,reason,151,BN_DECODE_ERROR | |||
EVP,reason,100,BUFFER_TOO_SMALL | |||
EVP,reason,101,COMMAND_NOT_SUPPORTED | |||
EVP,reason,146,CONTEXT_NOT_INITIALISED | |||
EVP,reason,143,DECODE_ERROR | |||
EVP,reason,104,DIFFERENT_KEY_TYPES | |||
EVP,reason,105,DIFFERENT_PARAMETERS | |||
EVP,reason,147,DIGEST_AND_KEY_TYPE_NOT_SUPPORTED | |||
EVP,reason,107,EXPECTING_AN_EC_KEY_KEY | |||
EVP,reason,141,EXPECTING_AN_RSA_KEY | |||
EVP,reason,109,EXPECTING_A_DH_KEY | |||
EVP,reason,110,EXPECTING_A_DSA_KEY | |||
EVP,reason,111,ILLEGAL_OR_UNSUPPORTED_PADDING_MODE | |||
EVP,reason,112,INVALID_CURVE | |||
EVP,reason,113,INVALID_DIGEST_LENGTH | |||
EVP,reason,114,INVALID_DIGEST_TYPE | |||
EVP,reason,115,INVALID_KEYBITS | |||
EVP,reason,116,INVALID_MGF1_MD | |||
EVP,reason,142,INVALID_OPERATION | |||
EVP,reason,118,INVALID_PADDING_MODE | |||
EVP,reason,119,INVALID_PSS_PARAMETERS | |||
EVP,reason,144,INVALID_PSS_SALTLEN | |||
EVP,reason,121,INVALID_SALT_LENGTH | |||
EVP,reason,122,INVALID_TRAILER | |||
EVP,reason,123,KEYS_NOT_SET | |||
EVP,reason,124,MISSING_PARAMETERS | |||
EVP,reason,125,NO_DEFAULT_DIGEST | |||
EVP,reason,126,NO_KEY_SET | |||
EVP,reason,127,NO_MDC2_SUPPORT | |||
EVP,reason,128,NO_NID_FOR_CURVE | |||
EVP,reason,129,NO_OPERATION_SET | |||
EVP,reason,130,NO_PARAMETERS_SET | |||
EVP,reason,131,OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE | |||
EVP,reason,132,OPERATON_NOT_INITIALIZED | |||
EVP,reason,152,PARAMETER_ENCODING_ERROR | |||
EVP,reason,133,UNKNOWN_DIGEST | |||
EVP,reason,134,UNKNOWN_MASK_DIGEST | |||
EVP,reason,150,UNKNOWN_MESSAGE_DIGEST_ALGORITHM | |||
EVP,reason,145,UNKNOWN_PUBLIC_KEY_TYPE | |||
EVP,reason,149,UNKNOWN_SIGNATURE_ALGORITHM | |||
EVP,reason,138,UNSUPPORTED_ALGORITHM | |||
EVP,reason,139,UNSUPPORTED_MASK_ALGORITHM | |||
EVP,reason,140,UNSUPPORTED_MASK_PARAMETER | |||
EVP,reason,153,UNSUPPORTED_PUBLIC_KEY_TYPE | |||
EVP,reason,154,UNSUPPORTED_SIGNATURE_TYPE | |||
EVP,reason,148,WRONG_PUBLIC_KEY_TYPE | |||
EVP,151,BN_DECODE_ERROR | |||
EVP,100,BUFFER_TOO_SMALL | |||
EVP,101,COMMAND_NOT_SUPPORTED | |||
EVP,146,CONTEXT_NOT_INITIALISED | |||
EVP,143,DECODE_ERROR | |||
EVP,104,DIFFERENT_KEY_TYPES | |||
EVP,105,DIFFERENT_PARAMETERS | |||
EVP,147,DIGEST_AND_KEY_TYPE_NOT_SUPPORTED | |||
EVP,107,EXPECTING_AN_EC_KEY_KEY | |||
EVP,141,EXPECTING_AN_RSA_KEY | |||
EVP,109,EXPECTING_A_DH_KEY | |||
EVP,110,EXPECTING_A_DSA_KEY | |||
EVP,111,ILLEGAL_OR_UNSUPPORTED_PADDING_MODE | |||
EVP,112,INVALID_CURVE | |||
EVP,113,INVALID_DIGEST_LENGTH | |||
EVP,114,INVALID_DIGEST_TYPE | |||
EVP,115,INVALID_KEYBITS | |||
EVP,116,INVALID_MGF1_MD | |||
EVP,142,INVALID_OPERATION | |||
EVP,118,INVALID_PADDING_MODE | |||
EVP,119,INVALID_PSS_PARAMETERS | |||
EVP,144,INVALID_PSS_SALTLEN | |||
EVP,121,INVALID_SALT_LENGTH | |||
EVP,122,INVALID_TRAILER | |||
EVP,123,KEYS_NOT_SET | |||
EVP,124,MISSING_PARAMETERS | |||
EVP,125,NO_DEFAULT_DIGEST | |||
EVP,126,NO_KEY_SET | |||
EVP,127,NO_MDC2_SUPPORT | |||
EVP,128,NO_NID_FOR_CURVE | |||
EVP,129,NO_OPERATION_SET | |||
EVP,130,NO_PARAMETERS_SET | |||
EVP,131,OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE | |||
EVP,132,OPERATON_NOT_INITIALIZED | |||
EVP,152,PARAMETER_ENCODING_ERROR | |||
EVP,133,UNKNOWN_DIGEST | |||
EVP,134,UNKNOWN_MASK_DIGEST | |||
EVP,150,UNKNOWN_MESSAGE_DIGEST_ALGORITHM | |||
EVP,145,UNKNOWN_PUBLIC_KEY_TYPE | |||
EVP,149,UNKNOWN_SIGNATURE_ALGORITHM | |||
EVP,138,UNSUPPORTED_ALGORITHM | |||
EVP,139,UNSUPPORTED_MASK_ALGORITHM | |||
EVP,140,UNSUPPORTED_MASK_PARAMETER | |||
EVP,153,UNSUPPORTED_PUBLIC_KEY_TYPE | |||
EVP,154,UNSUPPORTED_SIGNATURE_TYPE | |||
EVP,148,WRONG_PUBLIC_KEY_TYPE |
@@ -1,2 +1 @@ | |||
HKDF,function,100,HKDF | |||
HKDF,reason,100,OUTPUT_TOO_LARGE | |||
HKDF,100,OUTPUT_TOO_LARGE |
@@ -1,5 +1 @@ | |||
OBJ,function,100,OBJ_create | |||
OBJ,function,101,OBJ_dup | |||
OBJ,function,102,OBJ_nid2obj | |||
OBJ,function,103,OBJ_txt2obj | |||
OBJ,reason,100,UNKNOWN_NID | |||
OBJ,100,UNKNOWN_NID |
@@ -1,39 +1,15 @@ | |||
PEM,function,100,PEM_ASN1_read | |||
PEM,function,101,PEM_ASN1_read_bio | |||
PEM,function,102,PEM_ASN1_write | |||
PEM,function,103,PEM_ASN1_write_bio | |||
PEM,function,104,PEM_X509_INFO_read | |||
PEM,function,105,PEM_X509_INFO_read_bio | |||
PEM,function,106,PEM_X509_INFO_write_bio | |||
PEM,function,107,PEM_do_header | |||
PEM,function,108,PEM_get_EVP_CIPHER_INFO | |||
PEM,function,109,PEM_read | |||
PEM,function,110,PEM_read_DHparams | |||
PEM,function,111,PEM_read_PrivateKey | |||
PEM,function,112,PEM_read_bio | |||
PEM,function,113,PEM_read_bio_DHparams | |||
PEM,function,114,PEM_read_bio_Parameters | |||
PEM,function,115,PEM_read_bio_PrivateKey | |||
PEM,function,116,PEM_write | |||
PEM,function,117,PEM_write_PrivateKey | |||
PEM,function,118,PEM_write_bio | |||
PEM,function,119,d2i_PKCS8PrivateKey_bio | |||
PEM,function,120,d2i_PKCS8PrivateKey_fp | |||
PEM,function,121,do_pk8pkey | |||
PEM,function,122,do_pk8pkey_fp | |||
PEM,function,123,load_iv | |||
PEM,reason,100,BAD_BASE64_DECODE | |||
PEM,reason,101,BAD_DECRYPT | |||
PEM,reason,102,BAD_END_LINE | |||
PEM,reason,103,BAD_IV_CHARS | |||
PEM,reason,104,BAD_PASSWORD_READ | |||
PEM,reason,105,CIPHER_IS_NULL | |||
PEM,reason,106,ERROR_CONVERTING_PRIVATE_KEY | |||
PEM,reason,107,NOT_DEK_INFO | |||
PEM,reason,108,NOT_ENCRYPTED | |||
PEM,reason,109,NOT_PROC_TYPE | |||
PEM,reason,110,NO_START_LINE | |||
PEM,reason,111,READ_KEY | |||
PEM,reason,112,SHORT_HEADER | |||
PEM,reason,113,UNSUPPORTED_CIPHER | |||
PEM,reason,114,UNSUPPORTED_ENCRYPTION | |||
PEM,100,BAD_BASE64_DECODE | |||
PEM,101,BAD_DECRYPT | |||
PEM,102,BAD_END_LINE | |||
PEM,103,BAD_IV_CHARS | |||
PEM,104,BAD_PASSWORD_READ | |||
PEM,105,CIPHER_IS_NULL | |||
PEM,106,ERROR_CONVERTING_PRIVATE_KEY | |||
PEM,107,NOT_DEK_INFO | |||
PEM,108,NOT_ENCRYPTED | |||
PEM,109,NOT_PROC_TYPE | |||
PEM,110,NO_START_LINE | |||
PEM,111,READ_KEY | |||
PEM,112,SHORT_HEADER | |||
PEM,113,UNSUPPORTED_CIPHER | |||
PEM,114,UNSUPPORTED_ENCRYPTION |
@@ -1,43 +1,25 @@ | |||
PKCS8,function,100,EVP_PKCS82PKEY | |||
PKCS8,function,101,EVP_PKEY2PKCS8 | |||
PKCS8,function,102,PKCS12_get_key_and_certs | |||
PKCS8,function,103,PKCS12_handle_content_info | |||
PKCS8,function,104,PKCS12_handle_content_infos | |||
PKCS8,function,105,PKCS5_pbe2_set_iv | |||
PKCS8,function,106,PKCS5_pbe_set | |||
PKCS8,function,107,PKCS5_pbe_set0_algor | |||
PKCS8,function,108,PKCS5_pbkdf2_set | |||
PKCS8,function,109,PKCS8_decrypt | |||
PKCS8,function,110,PKCS8_encrypt | |||
PKCS8,function,111,PKCS8_encrypt_pbe | |||
PKCS8,function,112,pbe_cipher_init | |||
PKCS8,function,113,pbe_crypt | |||
PKCS8,function,114,pkcs12_item_decrypt_d2i | |||
PKCS8,function,115,pkcs12_item_i2d_encrypt | |||
PKCS8,function,116,pkcs12_key_gen_raw | |||
PKCS8,function,117,pkcs12_pbe_keyivgen | |||
PKCS8,reason,100,BAD_PKCS12_DATA | |||
PKCS8,reason,101,BAD_PKCS12_VERSION | |||
PKCS8,reason,102,CIPHER_HAS_NO_OBJECT_IDENTIFIER | |||
PKCS8,reason,103,CRYPT_ERROR | |||
PKCS8,reason,104,DECODE_ERROR | |||
PKCS8,reason,105,ENCODE_ERROR | |||
PKCS8,reason,106,ENCRYPT_ERROR | |||
PKCS8,reason,107,ERROR_SETTING_CIPHER_PARAMS | |||
PKCS8,reason,108,INCORRECT_PASSWORD | |||
PKCS8,reason,109,KEYGEN_FAILURE | |||
PKCS8,reason,110,KEY_GEN_ERROR | |||
PKCS8,reason,111,METHOD_NOT_SUPPORTED | |||
PKCS8,reason,112,MISSING_MAC | |||
PKCS8,reason,113,MULTIPLE_PRIVATE_KEYS_IN_PKCS12 | |||
PKCS8,reason,114,PKCS12_PUBLIC_KEY_INTEGRITY_NOT_SUPPORTED | |||
PKCS8,reason,115,PKCS12_TOO_DEEPLY_NESTED | |||
PKCS8,reason,116,PRIVATE_KEY_DECODE_ERROR | |||
PKCS8,reason,117,PRIVATE_KEY_ENCODE_ERROR | |||
PKCS8,reason,118,TOO_LONG | |||
PKCS8,reason,119,UNKNOWN_ALGORITHM | |||
PKCS8,reason,120,UNKNOWN_CIPHER | |||
PKCS8,reason,121,UNKNOWN_CIPHER_ALGORITHM | |||
PKCS8,reason,122,UNKNOWN_DIGEST | |||
PKCS8,reason,123,UNKNOWN_HASH | |||
PKCS8,reason,124,UNSUPPORTED_PRIVATE_KEY_ALGORITHM | |||
PKCS8,100,BAD_PKCS12_DATA | |||
PKCS8,101,BAD_PKCS12_VERSION | |||
PKCS8,102,CIPHER_HAS_NO_OBJECT_IDENTIFIER | |||
PKCS8,103,CRYPT_ERROR | |||
PKCS8,104,DECODE_ERROR | |||
PKCS8,105,ENCODE_ERROR | |||
PKCS8,106,ENCRYPT_ERROR | |||
PKCS8,107,ERROR_SETTING_CIPHER_PARAMS | |||
PKCS8,108,INCORRECT_PASSWORD | |||
PKCS8,109,KEYGEN_FAILURE | |||
PKCS8,110,KEY_GEN_ERROR | |||
PKCS8,111,METHOD_NOT_SUPPORTED | |||
PKCS8,112,MISSING_MAC | |||
PKCS8,113,MULTIPLE_PRIVATE_KEYS_IN_PKCS12 | |||
PKCS8,114,PKCS12_PUBLIC_KEY_INTEGRITY_NOT_SUPPORTED | |||
PKCS8,115,PKCS12_TOO_DEEPLY_NESTED | |||
PKCS8,116,PRIVATE_KEY_DECODE_ERROR | |||
PKCS8,117,PRIVATE_KEY_ENCODE_ERROR | |||
PKCS8,118,TOO_LONG | |||
PKCS8,119,UNKNOWN_ALGORITHM | |||
PKCS8,120,UNKNOWN_CIPHER | |||
PKCS8,121,UNKNOWN_CIPHER_ALGORITHM | |||
PKCS8,122,UNKNOWN_DIGEST | |||
PKCS8,123,UNKNOWN_HASH | |||
PKCS8,124,UNSUPPORTED_PRIVATE_KEY_ALGORITHM |
@@ -1,87 +1,46 @@ | |||
RSA,function,100,BN_BLINDING_convert_ex | |||
RSA,function,101,BN_BLINDING_create_param | |||
RSA,function,102,BN_BLINDING_invert_ex | |||
RSA,function,103,BN_BLINDING_new | |||
RSA,function,104,BN_BLINDING_update | |||
RSA,function,123,RSA_add_pkcs1_prefix | |||
RSA,function,105,RSA_check_key | |||
RSA,function,135,RSA_marshal_private_key | |||
RSA,function,129,RSA_marshal_public_key | |||
RSA,function,106,RSA_new_method | |||
RSA,function,107,RSA_padding_add_PKCS1_OAEP_mgf1 | |||
RSA,function,108,RSA_padding_add_PKCS1_PSS_mgf1 | |||
RSA,function,109,RSA_padding_add_PKCS1_type_1 | |||
RSA,function,110,RSA_padding_add_PKCS1_type_2 | |||
RSA,function,111,RSA_padding_add_none | |||
RSA,function,112,RSA_padding_check_PKCS1_OAEP_mgf1 | |||
RSA,function,113,RSA_padding_check_PKCS1_type_1 | |||
RSA,function,114,RSA_padding_check_PKCS1_type_2 | |||
RSA,function,115,RSA_padding_check_none | |||
RSA,function,136,RSA_parse_private_key | |||
RSA,function,130,RSA_parse_public_key | |||
RSA,function,137,RSA_private_key_from_bytes | |||
RSA,function,138,RSA_private_key_to_bytes | |||
RSA,function,131,RSA_public_key_from_bytes | |||
RSA,function,132,RSA_public_key_to_bytes | |||
RSA,function,116,RSA_recover_crt_params | |||
RSA,function,117,RSA_sign | |||
RSA,function,118,RSA_verify | |||
RSA,function,119,RSA_verify_PKCS1_PSS_mgf1 | |||
RSA,function,120,decrypt | |||
RSA,function,121,encrypt | |||
RSA,function,139,i2d_RSAPrivateKey | |||
RSA,function,133,i2d_RSAPublicKey | |||
RSA,function,122,keygen | |||
RSA,function,128,keygen_multiprime | |||
RSA,function,134,marshal_integer | |||
RSA,function,124,private_transform | |||
RSA,function,140,rsa_parse_additional_prime | |||
RSA,function,125,rsa_setup_blinding | |||
RSA,function,126,sign_raw | |||
RSA,function,127,verify_raw | |||
RSA,reason,143,BAD_ENCODING | |||
RSA,reason,100,BAD_E_VALUE | |||
RSA,reason,101,BAD_FIXED_HEADER_DECRYPT | |||
RSA,reason,102,BAD_PAD_BYTE_COUNT | |||
RSA,reason,103,BAD_RSA_PARAMETERS | |||
RSA,reason,104,BAD_SIGNATURE | |||
RSA,reason,145,BAD_VERSION | |||
RSA,reason,105,BLOCK_TYPE_IS_NOT_01 | |||
RSA,reason,106,BN_NOT_INITIALIZED | |||
RSA,reason,142,CANNOT_RECOVER_MULTI_PRIME_KEY | |||
RSA,reason,107,CRT_PARAMS_ALREADY_GIVEN | |||
RSA,reason,108,CRT_VALUES_INCORRECT | |||
RSA,reason,109,DATA_LEN_NOT_EQUAL_TO_MOD_LEN | |||
RSA,reason,110,DATA_TOO_LARGE | |||
RSA,reason,111,DATA_TOO_LARGE_FOR_KEY_SIZE | |||
RSA,reason,112,DATA_TOO_LARGE_FOR_MODULUS | |||
RSA,reason,113,DATA_TOO_SMALL | |||
RSA,reason,114,DATA_TOO_SMALL_FOR_KEY_SIZE | |||
RSA,reason,115,DIGEST_TOO_BIG_FOR_RSA_KEY | |||
RSA,reason,116,D_E_NOT_CONGRUENT_TO_1 | |||
RSA,reason,117,EMPTY_PUBLIC_KEY | |||
RSA,reason,144,ENCODE_ERROR | |||
RSA,reason,118,FIRST_OCTET_INVALID | |||
RSA,reason,119,INCONSISTENT_SET_OF_CRT_VALUES | |||
RSA,reason,120,INTERNAL_ERROR | |||
RSA,reason,121,INVALID_MESSAGE_LENGTH | |||
RSA,reason,122,KEY_SIZE_TOO_SMALL | |||
RSA,reason,123,LAST_OCTET_INVALID | |||
RSA,reason,124,MODULUS_TOO_LARGE | |||
RSA,reason,141,MUST_HAVE_AT_LEAST_TWO_PRIMES | |||
RSA,reason,125,NO_PUBLIC_EXPONENT | |||
RSA,reason,126,NULL_BEFORE_BLOCK_MISSING | |||
RSA,reason,127,N_NOT_EQUAL_P_Q | |||
RSA,reason,128,OAEP_DECODING_ERROR | |||
RSA,reason,129,ONLY_ONE_OF_P_Q_GIVEN | |||
RSA,reason,130,OUTPUT_BUFFER_TOO_SMALL | |||
RSA,reason,131,PADDING_CHECK_FAILED | |||
RSA,reason,132,PKCS_DECODING_ERROR | |||
RSA,reason,133,SLEN_CHECK_FAILED | |||
RSA,reason,134,SLEN_RECOVERY_FAILED | |||
RSA,reason,135,TOO_LONG | |||
RSA,reason,136,TOO_MANY_ITERATIONS | |||
RSA,reason,137,UNKNOWN_ALGORITHM_TYPE | |||
RSA,reason,138,UNKNOWN_PADDING_TYPE | |||
RSA,reason,139,VALUE_MISSING | |||
RSA,reason,140,WRONG_SIGNATURE_LENGTH | |||
RSA,143,BAD_ENCODING | |||
RSA,100,BAD_E_VALUE | |||
RSA,101,BAD_FIXED_HEADER_DECRYPT | |||
RSA,102,BAD_PAD_BYTE_COUNT | |||
RSA,103,BAD_RSA_PARAMETERS | |||
RSA,104,BAD_SIGNATURE | |||
RSA,145,BAD_VERSION | |||
RSA,105,BLOCK_TYPE_IS_NOT_01 | |||
RSA,106,BN_NOT_INITIALIZED | |||
RSA,142,CANNOT_RECOVER_MULTI_PRIME_KEY | |||
RSA,107,CRT_PARAMS_ALREADY_GIVEN | |||
RSA,108,CRT_VALUES_INCORRECT | |||
RSA,109,DATA_LEN_NOT_EQUAL_TO_MOD_LEN | |||
RSA,110,DATA_TOO_LARGE | |||
RSA,111,DATA_TOO_LARGE_FOR_KEY_SIZE | |||
RSA,112,DATA_TOO_LARGE_FOR_MODULUS | |||
RSA,113,DATA_TOO_SMALL | |||
RSA,114,DATA_TOO_SMALL_FOR_KEY_SIZE | |||
RSA,115,DIGEST_TOO_BIG_FOR_RSA_KEY | |||
RSA,116,D_E_NOT_CONGRUENT_TO_1 | |||
RSA,117,EMPTY_PUBLIC_KEY | |||
RSA,144,ENCODE_ERROR | |||
RSA,118,FIRST_OCTET_INVALID | |||
RSA,119,INCONSISTENT_SET_OF_CRT_VALUES | |||
RSA,120,INTERNAL_ERROR | |||
RSA,121,INVALID_MESSAGE_LENGTH | |||
RSA,122,KEY_SIZE_TOO_SMALL | |||
RSA,123,LAST_OCTET_INVALID | |||
RSA,124,MODULUS_TOO_LARGE | |||
RSA,141,MUST_HAVE_AT_LEAST_TWO_PRIMES | |||
RSA,125,NO_PUBLIC_EXPONENT | |||
RSA,126,NULL_BEFORE_BLOCK_MISSING | |||
RSA,127,N_NOT_EQUAL_P_Q | |||
RSA,128,OAEP_DECODING_ERROR | |||
RSA,129,ONLY_ONE_OF_P_Q_GIVEN | |||
RSA,130,OUTPUT_BUFFER_TOO_SMALL | |||
RSA,131,PADDING_CHECK_FAILED | |||
RSA,132,PKCS_DECODING_ERROR | |||
RSA,133,SLEN_CHECK_FAILED | |||
RSA,134,SLEN_RECOVERY_FAILED | |||
RSA,135,TOO_LONG | |||
RSA,136,TOO_MANY_ITERATIONS | |||
RSA,137,UNKNOWN_ALGORITHM_TYPE | |||
RSA,138,UNKNOWN_PADDING_TYPE | |||
RSA,139,VALUE_MISSING | |||
RSA,140,WRONG_SIGNATURE_LENGTH |
@@ -1,396 +1,211 @@ | |||
SSL,function,276,SSL_AEAD_CTX_new | |||
SSL,function,277,SSL_AEAD_CTX_open | |||
SSL,function,278,SSL_AEAD_CTX_seal | |||
SSL,function,100,SSL_CTX_check_private_key | |||
SSL,function,283,SSL_CTX_get_tlsext_ticket_keys | |||
SSL,function,101,SSL_CTX_new | |||
SSL,function,272,SSL_CTX_set1_tls_channel_id | |||
SSL,function,102,SSL_CTX_set_cipher_list | |||
SSL,function,103,SSL_CTX_set_cipher_list_tls11 | |||
SSL,function,104,SSL_CTX_set_session_id_context | |||
SSL,function,284,SSL_CTX_set_tlsext_ticket_keys | |||
SSL,function,268,SSL_CTX_set_tmp_dh | |||
SSL,function,269,SSL_CTX_set_tmp_ecdh | |||
SSL,function,105,SSL_CTX_use_PrivateKey | |||
SSL,function,106,SSL_CTX_use_PrivateKey_ASN1 | |||
SSL,function,107,SSL_CTX_use_PrivateKey_file | |||
SSL,function,108,SSL_CTX_use_RSAPrivateKey | |||
SSL,function,109,SSL_CTX_use_RSAPrivateKey_ASN1 | |||
SSL,function,110,SSL_CTX_use_RSAPrivateKey_file | |||
SSL,function,111,SSL_CTX_use_certificate | |||
SSL,function,112,SSL_CTX_use_certificate_ASN1 | |||
SSL,function,113,SSL_CTX_use_certificate_chain_file | |||
SSL,function,114,SSL_CTX_use_certificate_file | |||
SSL,function,115,SSL_CTX_use_psk_identity_hint | |||
SSL,function,280,SSL_SESSION_from_bytes | |||
SSL,function,116,SSL_SESSION_new | |||
SSL,function,281,SSL_SESSION_parse | |||
SSL,function,150,SSL_SESSION_parse_octet_string | |||
SSL,function,151,SSL_SESSION_parse_string | |||
SSL,function,117,SSL_SESSION_print_fp | |||
SSL,function,118,SSL_SESSION_set1_id_context | |||
SSL,function,119,SSL_SESSION_to_bytes_full | |||
SSL,function,120,SSL_accept | |||
SSL,function,121,SSL_add_dir_cert_subjects_to_stack | |||
SSL,function,122,SSL_add_file_cert_subjects_to_stack | |||
SSL,function,123,SSL_check_private_key | |||
SSL,function,124,SSL_clear | |||
SSL,function,125,SSL_connect | |||
SSL,function,126,SSL_do_handshake | |||
SSL,function,127,SSL_load_client_CA_file | |||
SSL,function,128,SSL_new | |||
SSL,function,129,SSL_peek | |||
SSL,function,130,SSL_read | |||
SSL,function,131,SSL_renegotiate | |||
SSL,function,273,SSL_set1_tls_channel_id | |||
SSL,function,132,SSL_set_cipher_list | |||
SSL,function,133,SSL_set_fd | |||
SSL,function,134,SSL_set_rfd | |||
SSL,function,135,SSL_set_session_id_context | |||
SSL,function,274,SSL_set_tlsext_host_name | |||
SSL,function,270,SSL_set_tmp_dh | |||
SSL,function,271,SSL_set_tmp_ecdh | |||
SSL,function,136,SSL_set_wfd | |||
SSL,function,137,SSL_shutdown | |||
SSL,function,138,SSL_use_PrivateKey | |||
SSL,function,139,SSL_use_PrivateKey_ASN1 | |||
SSL,function,140,SSL_use_PrivateKey_file | |||
SSL,function,141,SSL_use_RSAPrivateKey | |||
SSL,function,142,SSL_use_RSAPrivateKey_ASN1 | |||
SSL,function,143,SSL_use_RSAPrivateKey_file | |||
SSL,function,144,SSL_use_certificate | |||
SSL,function,145,SSL_use_certificate_ASN1 | |||
SSL,function,146,SSL_use_certificate_file | |||
SSL,function,147,SSL_use_psk_identity_hint | |||
SSL,function,148,SSL_write | |||
SSL,function,149,d2i_SSL_SESSION | |||
SSL,function,152,do_ssl3_write | |||
SSL,function,153,dtls1_accept | |||
SSL,function,154,dtls1_buffer_record | |||
SSL,function,155,dtls1_check_timeout_num | |||
SSL,function,156,dtls1_connect | |||
SSL,function,157,dtls1_do_write | |||
SSL,function,263,dtls1_get_buffered_message | |||
SSL,function,158,dtls1_get_hello_verify | |||
SSL,function,159,dtls1_get_message | |||
SSL,function,160,dtls1_get_message_fragment | |||
SSL,function,265,dtls1_hm_fragment_new | |||
SSL,function,161,dtls1_preprocess_fragment | |||
SSL,function,264,dtls1_process_fragment | |||
SSL,function,162,dtls1_process_record | |||
SSL,function,163,dtls1_read_bytes | |||
SSL,function,279,dtls1_seal_record | |||
SSL,function,164,dtls1_send_hello_verify_request | |||
SSL,function,165,dtls1_write_app_data | |||
SSL,function,285,ext_ri_parse_clienthello | |||
SSL,function,286,ext_ri_parse_serverhello | |||
SSL,function,287,ext_sigalgs_parse_clienthello | |||
SSL,function,288,ext_sigalgs_parse_serverhello | |||
SSL,function,166,i2d_SSL_SESSION | |||
SSL,function,167,ssl3_accept | |||
SSL,function,169,ssl3_cert_verify_hash | |||
SSL,function,170,ssl3_check_cert_and_algorithm | |||
SSL,function,282,ssl3_check_certificate_for_cipher | |||
SSL,function,171,ssl3_connect | |||
SSL,function,172,ssl3_ctrl | |||
SSL,function,173,ssl3_ctx_ctrl | |||
SSL,function,174,ssl3_digest_cached_records | |||
SSL,function,175,ssl3_do_change_cipher_spec | |||
SSL,function,176,ssl3_expect_change_cipher_spec | |||
SSL,function,177,ssl3_get_cert_status | |||
SSL,function,178,ssl3_get_cert_verify | |||
SSL,function,179,ssl3_get_certificate_request | |||
SSL,function,180,ssl3_get_channel_id | |||
SSL,function,181,ssl3_get_client_certificate | |||
SSL,function,182,ssl3_get_client_hello | |||
SSL,function,183,ssl3_get_client_key_exchange | |||
SSL,function,184,ssl3_get_finished | |||
SSL,function,185,ssl3_get_initial_bytes | |||
SSL,function,186,ssl3_get_message | |||
SSL,function,187,ssl3_get_new_session_ticket | |||
SSL,function,188,ssl3_get_next_proto | |||
SSL,function,189,ssl3_get_record | |||
SSL,function,190,ssl3_get_server_certificate | |||
SSL,function,191,ssl3_get_server_done | |||
SSL,function,192,ssl3_get_server_hello | |||
SSL,function,193,ssl3_get_server_key_exchange | |||
SSL,function,194,ssl3_get_v2_client_hello | |||
SSL,function,195,ssl3_handshake_mac | |||
SSL,function,275,ssl3_output_cert_chain | |||
SSL,function,196,ssl3_prf | |||
SSL,function,197,ssl3_read_bytes | |||
SSL,function,198,ssl3_read_n | |||
SSL,function,267,ssl3_record_sequence_update | |||
SSL,function,266,ssl3_seal_record | |||
SSL,function,199,ssl3_send_cert_verify | |||
SSL,function,200,ssl3_send_certificate_request | |||
SSL,function,201,ssl3_send_channel_id | |||
SSL,function,202,ssl3_send_client_certificate | |||
SSL,function,203,ssl3_send_client_hello | |||
SSL,function,204,ssl3_send_client_key_exchange | |||
SSL,function,205,ssl3_send_server_certificate | |||
SSL,function,206,ssl3_send_server_hello | |||
SSL,function,207,ssl3_send_server_key_exchange | |||
SSL,function,208,ssl3_setup_read_buffer | |||
SSL,function,209,ssl3_setup_write_buffer | |||
SSL,function,210,ssl3_write_bytes | |||
SSL,function,211,ssl3_write_pending | |||
SSL,function,212,ssl_add_cert_chain | |||
SSL,function,213,ssl_add_cert_to_buf | |||
SSL,function,214,ssl_add_clienthello_renegotiate_ext | |||
SSL,function,215,ssl_add_clienthello_tlsext | |||
SSL,function,216,ssl_add_clienthello_use_srtp_ext | |||
SSL,function,217,ssl_add_serverhello_renegotiate_ext | |||
SSL,function,218,ssl_add_serverhello_tlsext | |||
SSL,function,219,ssl_add_serverhello_use_srtp_ext | |||
SSL,function,220,ssl_build_cert_chain | |||
SSL,function,221,ssl_bytes_to_cipher_list | |||
SSL,function,222,ssl_cert_dup | |||
SSL,function,223,ssl_cert_inst | |||
SSL,function,224,ssl_cert_new | |||
SSL,function,225,ssl_check_serverhello_tlsext | |||
SSL,function,226,ssl_check_srvr_ecc_cert_and_alg | |||
SSL,function,227,ssl_cipher_process_rulestr | |||
SSL,function,228,ssl_cipher_strength_sort | |||
SSL,function,229,ssl_create_cipher_list | |||
SSL,function,230,ssl_ctx_log_master_secret | |||
SSL,function,231,ssl_ctx_log_rsa_client_key_exchange | |||
SSL,function,232,ssl_ctx_make_profiles | |||
SSL,function,233,ssl_get_new_session | |||
SSL,function,234,ssl_get_prev_session | |||
SSL,function,235,ssl_get_server_cert_index | |||
SSL,function,236,ssl_get_sign_pkey | |||
SSL,function,237,ssl_init_wbio_buffer | |||
SSL,function,238,ssl_parse_clienthello_renegotiate_ext | |||
SSL,function,239,ssl_parse_clienthello_tlsext | |||
SSL,function,240,ssl_parse_clienthello_use_srtp_ext | |||
SSL,function,241,ssl_parse_serverhello_renegotiate_ext | |||
SSL,function,242,ssl_parse_serverhello_tlsext | |||
SSL,function,243,ssl_parse_serverhello_use_srtp_ext | |||
SSL,function,244,ssl_scan_clienthello_tlsext | |||
SSL,function,245,ssl_scan_serverhello_tlsext | |||
SSL,function,246,ssl_sess_cert_new | |||
SSL,function,247,ssl_set_cert | |||
SSL,function,248,ssl_set_pkey | |||
SSL,function,252,ssl_verify_cert_chain | |||
SSL,function,253,tls12_check_peer_sigalg | |||
SSL,function,254,tls1_aead_ctx_init | |||
SSL,function,255,tls1_cert_verify_mac | |||
SSL,function,256,tls1_change_cipher_state | |||
SSL,function,257,tls1_change_cipher_state_aead | |||
SSL,function,258,tls1_check_duplicate_extensions | |||
SSL,function,259,tls1_enc | |||
SSL,function,260,tls1_export_keying_material | |||
SSL,function,261,tls1_prf | |||
SSL,function,262,tls1_setup_key_block | |||
SSL,reason,100,APP_DATA_IN_HANDSHAKE | |||
SSL,reason,101,ATTEMPT_TO_REUSE_SESSION_IN_DIFFERENT_CONTEXT | |||
SSL,reason,102,BAD_ALERT | |||
SSL,reason,103,BAD_CHANGE_CIPHER_SPEC | |||
SSL,reason,104,BAD_DATA_RETURNED_BY_CALLBACK | |||
SSL,reason,105,BAD_DH_P_LENGTH | |||
SSL,reason,106,BAD_DIGEST_LENGTH | |||
SSL,reason,107,BAD_ECC_CERT | |||
SSL,reason,108,BAD_ECPOINT | |||
SSL,reason,109,BAD_HANDSHAKE_LENGTH | |||
SSL,reason,110,BAD_HANDSHAKE_RECORD | |||
SSL,reason,111,BAD_HELLO_REQUEST | |||
SSL,reason,112,BAD_LENGTH | |||
SSL,reason,113,BAD_PACKET_LENGTH | |||
SSL,reason,114,BAD_RSA_ENCRYPT | |||
SSL,reason,115,BAD_SIGNATURE | |||
SSL,reason,116,BAD_SRTP_MKI_VALUE | |||
SSL,reason,117,BAD_SRTP_PROTECTION_PROFILE_LIST | |||
SSL,reason,118,BAD_SSL_FILETYPE | |||
SSL,reason,119,BAD_WRITE_RETRY | |||
SSL,reason,120,BIO_NOT_SET | |||
SSL,reason,121,BN_LIB | |||
SSL,reason,272,BUFFER_TOO_SMALL | |||
SSL,reason,122,CANNOT_SERIALIZE_PUBLIC_KEY | |||
SSL,reason,123,CA_DN_LENGTH_MISMATCH | |||
SSL,reason,124,CA_DN_TOO_LONG | |||
SSL,reason,125,CCS_RECEIVED_EARLY | |||
SSL,reason,126,CERTIFICATE_VERIFY_FAILED | |||
SSL,reason,127,CERT_CB_ERROR | |||
SSL,reason,128,CERT_LENGTH_MISMATCH | |||
SSL,reason,129,CHANNEL_ID_NOT_P256 | |||
SSL,reason,130,CHANNEL_ID_SIGNATURE_INVALID | |||
SSL,reason,131,CIPHER_CODE_WRONG_LENGTH | |||
SSL,reason,132,CIPHER_OR_HASH_UNAVAILABLE | |||
SSL,reason,133,CLIENTHELLO_PARSE_FAILED | |||
SSL,reason,134,CLIENTHELLO_TLSEXT | |||
SSL,reason,135,CONNECTION_REJECTED | |||
SSL,reason,136,CONNECTION_TYPE_NOT_SET | |||
SSL,reason,137,COOKIE_MISMATCH | |||
SSL,reason,138,D2I_ECDSA_SIG | |||
SSL,reason,139,DATA_BETWEEN_CCS_AND_FINISHED | |||
SSL,reason,140,DATA_LENGTH_TOO_LONG | |||
SSL,reason,141,DECODE_ERROR | |||
SSL,reason,142,DECRYPTION_FAILED | |||
SSL,reason,143,DECRYPTION_FAILED_OR_BAD_RECORD_MAC | |||
SSL,reason,144,DH_PUBLIC_VALUE_LENGTH_IS_WRONG | |||
SSL,reason,145,DIGEST_CHECK_FAILED | |||
SSL,reason,146,DTLS_MESSAGE_TOO_BIG | |||
SSL,reason,147,ECC_CERT_NOT_FOR_SIGNING | |||
SSL,reason,148,EMPTY_SRTP_PROTECTION_PROFILE_LIST | |||
SSL,reason,276,EMS_STATE_INCONSISTENT | |||
SSL,reason,149,ENCRYPTED_LENGTH_TOO_LONG | |||
SSL,reason,150,ERROR_IN_RECEIVED_CIPHER_LIST | |||
SSL,reason,151,EVP_DIGESTSIGNFINAL_FAILED | |||
SSL,reason,152,EVP_DIGESTSIGNINIT_FAILED | |||
SSL,reason,153,EXCESSIVE_MESSAGE_SIZE | |||
SSL,reason,154,EXTRA_DATA_IN_MESSAGE | |||
SSL,reason,271,FRAGMENT_MISMATCH | |||
SSL,reason,155,GOT_A_FIN_BEFORE_A_CCS | |||
SSL,reason,156,GOT_CHANNEL_ID_BEFORE_A_CCS | |||
SSL,reason,157,GOT_NEXT_PROTO_BEFORE_A_CCS | |||
SSL,reason,158,GOT_NEXT_PROTO_WITHOUT_EXTENSION | |||
SSL,reason,159,HANDSHAKE_FAILURE_ON_CLIENT_HELLO | |||
SSL,reason,160,HANDSHAKE_RECORD_BEFORE_CCS | |||
SSL,reason,161,HTTPS_PROXY_REQUEST | |||
SSL,reason,162,HTTP_REQUEST | |||
SSL,reason,163,INAPPROPRIATE_FALLBACK | |||
SSL,reason,164,INVALID_COMMAND | |||
SSL,reason,165,INVALID_MESSAGE | |||
SSL,reason,166,INVALID_SSL_SESSION | |||
SSL,reason,167,INVALID_TICKET_KEYS_LENGTH | |||
SSL,reason,168,LENGTH_MISMATCH | |||
SSL,reason,169,LIBRARY_HAS_NO_CIPHERS | |||
SSL,reason,170,MISSING_DH_KEY | |||
SSL,reason,171,MISSING_ECDSA_SIGNING_CERT | |||
SSL,reason,172,MISSING_RSA_CERTIFICATE | |||
SSL,reason,173,MISSING_RSA_ENCRYPTING_CERT | |||
SSL,reason,174,MISSING_RSA_SIGNING_CERT | |||
SSL,reason,175,MISSING_TMP_DH_KEY | |||
SSL,reason,176,MISSING_TMP_ECDH_KEY | |||
SSL,reason,177,MIXED_SPECIAL_OPERATOR_WITH_GROUPS | |||
SSL,reason,178,MTU_TOO_SMALL | |||
SSL,reason,179,NESTED_GROUP | |||
SSL,reason,180,NO_CERTIFICATES_RETURNED | |||
SSL,reason,181,NO_CERTIFICATE_ASSIGNED | |||
SSL,reason,182,NO_CERTIFICATE_SET | |||
SSL,reason,183,NO_CIPHERS_AVAILABLE | |||
SSL,reason,184,NO_CIPHERS_PASSED | |||
SSL,reason,185,NO_CIPHERS_SPECIFIED | |||
SSL,reason,186,NO_CIPHER_MATCH | |||
SSL,reason,187,NO_COMPRESSION_SPECIFIED | |||
SSL,reason,188,NO_METHOD_SPECIFIED | |||
SSL,reason,189,NO_P256_SUPPORT | |||
SSL,reason,190,NO_PRIVATE_KEY_ASSIGNED | |||
SSL,reason,191,NO_RENEGOTIATION | |||
SSL,reason,192,NO_REQUIRED_DIGEST | |||
SSL,reason,193,NO_SHARED_CIPHER | |||
SSL,reason,194,NO_SHARED_SIGATURE_ALGORITHMS | |||
SSL,reason,195,NO_SRTP_PROFILES | |||
SSL,reason,196,NULL_SSL_CTX | |||
SSL,reason,197,NULL_SSL_METHOD_PASSED | |||
SSL,reason,198,OLD_SESSION_CIPHER_NOT_RETURNED | |||
SSL,reason,273,OLD_SESSION_VERSION_NOT_RETURNED | |||
SSL,reason,274,OUTPUT_ALIASES_INPUT | |||
SSL,reason,199,PACKET_LENGTH_TOO_LONG | |||
SSL,reason,200,PARSE_TLSEXT | |||
SSL,reason,201,PATH_TOO_LONG | |||
SSL,reason,202,PEER_DID_NOT_RETURN_A_CERTIFICATE | |||
SSL,reason,203,PEER_ERROR_UNSUPPORTED_CERTIFICATE_TYPE | |||
SSL,reason,204,PROTOCOL_IS_SHUTDOWN | |||
SSL,reason,205,PSK_IDENTITY_NOT_FOUND | |||
SSL,reason,206,PSK_NO_CLIENT_CB | |||
SSL,reason,207,PSK_NO_SERVER_CB | |||
SSL,reason,208,READ_BIO_NOT_SET | |||
SSL,reason,209,READ_TIMEOUT_EXPIRED | |||
SSL,reason,210,RECORD_LENGTH_MISMATCH | |||
SSL,reason,211,RECORD_TOO_LARGE | |||
SSL,reason,212,RENEGOTIATE_EXT_TOO_LONG | |||
SSL,reason,213,RENEGOTIATION_ENCODING_ERR | |||
SSL,reason,214,RENEGOTIATION_MISMATCH | |||
SSL,reason,215,REQUIRED_CIPHER_MISSING | |||
SSL,reason,275,RESUMED_EMS_SESSION_WITHOUT_EMS_EXTENSION | |||
SSL,reason,277,RESUMED_NON_EMS_SESSION_WITH_EMS_EXTENSION | |||
SSL,reason,216,SCSV_RECEIVED_WHEN_RENEGOTIATING | |||
SSL,reason,217,SERVERHELLO_TLSEXT | |||
SSL,reason,218,SESSION_ID_CONTEXT_UNINITIALIZED | |||
SSL,reason,219,SESSION_MAY_NOT_BE_CREATED | |||
SSL,reason,220,SIGNATURE_ALGORITHMS_ERROR | |||
SSL,reason,280,SIGNATURE_ALGORITHMS_EXTENSION_SENT_BY_SERVER | |||
SSL,reason,221,SRTP_COULD_NOT_ALLOCATE_PROFILES | |||
SSL,reason,222,SRTP_PROTECTION_PROFILE_LIST_TOO_LONG | |||
SSL,reason,223,SRTP_UNKNOWN_PROTECTION_PROFILE | |||
SSL,reason,224,SSL3_EXT_INVALID_SERVERNAME | |||
SSL,reason,225,SSL3_EXT_INVALID_SERVERNAME_TYPE | |||
SSL,reason,1042,SSLV3_ALERT_BAD_CERTIFICATE | |||
SSL,reason,1020,SSLV3_ALERT_BAD_RECORD_MAC | |||
SSL,reason,1045,SSLV3_ALERT_CERTIFICATE_EXPIRED | |||
SSL,reason,1044,SSLV3_ALERT_CERTIFICATE_REVOKED | |||
SSL,reason,1046,SSLV3_ALERT_CERTIFICATE_UNKNOWN | |||
SSL,reason,1000,SSLV3_ALERT_CLOSE_NOTIFY | |||
SSL,reason,1030,SSLV3_ALERT_DECOMPRESSION_FAILURE | |||
SSL,reason,1040,SSLV3_ALERT_HANDSHAKE_FAILURE | |||
SSL,reason,1047,SSLV3_ALERT_ILLEGAL_PARAMETER | |||
SSL,reason,1041,SSLV3_ALERT_NO_CERTIFICATE | |||
SSL,reason,1010,SSLV3_ALERT_UNEXPECTED_MESSAGE | |||
SSL,reason,1043,SSLV3_ALERT_UNSUPPORTED_CERTIFICATE | |||
SSL,reason,226,SSL_CTX_HAS_NO_DEFAULT_SSL_VERSION | |||
SSL,reason,227,SSL_HANDSHAKE_FAILURE | |||
SSL,reason,228,SSL_SESSION_ID_CALLBACK_FAILED | |||
SSL,reason,229,SSL_SESSION_ID_CONFLICT | |||
SSL,reason,230,SSL_SESSION_ID_CONTEXT_TOO_LONG | |||
SSL,reason,231,SSL_SESSION_ID_HAS_BAD_LENGTH | |||
SSL,reason,1049,TLSV1_ALERT_ACCESS_DENIED | |||
SSL,reason,1050,TLSV1_ALERT_DECODE_ERROR | |||
SSL,reason,1021,TLSV1_ALERT_DECRYPTION_FAILED | |||
SSL,reason,1051,TLSV1_ALERT_DECRYPT_ERROR | |||
SSL,reason,1060,TLSV1_ALERT_EXPORT_RESTRICTION | |||
SSL,reason,1086,TLSV1_ALERT_INAPPROPRIATE_FALLBACK | |||
SSL,reason,1071,TLSV1_ALERT_INSUFFICIENT_SECURITY | |||
SSL,reason,1080,TLSV1_ALERT_INTERNAL_ERROR | |||
SSL,reason,1100,TLSV1_ALERT_NO_RENEGOTIATION | |||
SSL,reason,1070,TLSV1_ALERT_PROTOCOL_VERSION | |||
SSL,reason,1022,TLSV1_ALERT_RECORD_OVERFLOW | |||
SSL,reason,1048,TLSV1_ALERT_UNKNOWN_CA | |||
SSL,reason,1090,TLSV1_ALERT_USER_CANCELLED | |||
SSL,reason,1114,TLSV1_BAD_CERTIFICATE_HASH_VALUE | |||
SSL,reason,1113,TLSV1_BAD_CERTIFICATE_STATUS_RESPONSE | |||
SSL,reason,1111,TLSV1_CERTIFICATE_UNOBTAINABLE | |||
SSL,reason,1112,TLSV1_UNRECOGNIZED_NAME | |||
SSL,reason,1110,TLSV1_UNSUPPORTED_EXTENSION | |||
SSL,reason,232,TLS_CLIENT_CERT_REQ_WITH_ANON_CIPHER | |||
SSL,reason,233,TLS_ILLEGAL_EXPORTER_LABEL | |||
SSL,reason,234,TLS_INVALID_ECPOINTFORMAT_LIST | |||
SSL,reason,235,TLS_PEER_DID_NOT_RESPOND_WITH_CERTIFICATE_LIST | |||
SSL,reason,236,TLS_RSA_ENCRYPTED_VALUE_LENGTH_IS_WRONG | |||
SSL,reason,237,TOO_MANY_EMPTY_FRAGMENTS | |||
SSL,reason,278,TOO_MANY_WARNING_ALERTS | |||
SSL,reason,238,UNABLE_TO_FIND_ECDH_PARAMETERS | |||
SSL,reason,239,UNABLE_TO_FIND_PUBLIC_KEY_PARAMETERS | |||
SSL,reason,279,UNEXPECTED_EXTENSION | |||
SSL,reason,240,UNEXPECTED_GROUP_CLOSE | |||
SSL,reason,241,UNEXPECTED_MESSAGE | |||
SSL,reason,242,UNEXPECTED_OPERATOR_IN_GROUP | |||
SSL,reason,243,UNEXPECTED_RECORD | |||
SSL,reason,244,UNINITIALIZED | |||
SSL,reason,245,UNKNOWN_ALERT_TYPE | |||
SSL,reason,246,UNKNOWN_CERTIFICATE_TYPE | |||
SSL,reason,247,UNKNOWN_CIPHER_RETURNED | |||
SSL,reason,248,UNKNOWN_CIPHER_TYPE | |||
SSL,reason,249,UNKNOWN_DIGEST | |||
SSL,reason,250,UNKNOWN_KEY_EXCHANGE_TYPE | |||
SSL,reason,251,UNKNOWN_PROTOCOL | |||
SSL,reason,252,UNKNOWN_SSL_VERSION | |||
SSL,reason,253,UNKNOWN_STATE | |||
SSL,reason,254,UNPROCESSED_HANDSHAKE_DATA | |||
SSL,reason,255,UNSAFE_LEGACY_RENEGOTIATION_DISABLED | |||
SSL,reason,256,UNSUPPORTED_CIPHER | |||
SSL,reason,257,UNSUPPORTED_COMPRESSION_ALGORITHM | |||
SSL,reason,258,UNSUPPORTED_ELLIPTIC_CURVE | |||
SSL,reason,259,UNSUPPORTED_PROTOCOL | |||
SSL,reason,260,UNSUPPORTED_SSL_VERSION | |||
SSL,reason,261,USE_SRTP_NOT_NEGOTIATED | |||
SSL,reason,262,WRONG_CERTIFICATE_TYPE | |||
SSL,reason,263,WRONG_CIPHER_RETURNED | |||
SSL,reason,264,WRONG_CURVE | |||
SSL,reason,265,WRONG_MESSAGE_TYPE | |||
SSL,reason,266,WRONG_SIGNATURE_TYPE | |||
SSL,reason,267,WRONG_SSL_VERSION | |||
SSL,reason,268,WRONG_VERSION_NUMBER | |||
SSL,reason,269,X509_LIB | |||
SSL,reason,270,X509_VERIFICATION_SETUP_PROBLEMS | |||
SSL,100,APP_DATA_IN_HANDSHAKE | |||
SSL,101,ATTEMPT_TO_REUSE_SESSION_IN_DIFFERENT_CONTEXT | |||
SSL,102,BAD_ALERT | |||
SSL,103,BAD_CHANGE_CIPHER_SPEC | |||
SSL,104,BAD_DATA_RETURNED_BY_CALLBACK | |||
SSL,105,BAD_DH_P_LENGTH | |||
SSL,106,BAD_DIGEST_LENGTH | |||
SSL,107,BAD_ECC_CERT | |||
SSL,108,BAD_ECPOINT | |||
SSL,109,BAD_HANDSHAKE_LENGTH | |||
SSL,110,BAD_HANDSHAKE_RECORD | |||
SSL,111,BAD_HELLO_REQUEST | |||
SSL,112,BAD_LENGTH | |||
SSL,113,BAD_PACKET_LENGTH | |||
SSL,114,BAD_RSA_ENCRYPT | |||
SSL,115,BAD_SIGNATURE | |||
SSL,116,BAD_SRTP_MKI_VALUE | |||
SSL,117,BAD_SRTP_PROTECTION_PROFILE_LIST | |||
SSL,118,BAD_SSL_FILETYPE | |||
SSL,119,BAD_WRITE_RETRY | |||
SSL,120,BIO_NOT_SET | |||
SSL,121,BN_LIB | |||
SSL,272,BUFFER_TOO_SMALL | |||
SSL,122,CANNOT_SERIALIZE_PUBLIC_KEY | |||
SSL,123,CA_DN_LENGTH_MISMATCH | |||
SSL,124,CA_DN_TOO_LONG | |||
SSL,125,CCS_RECEIVED_EARLY | |||
SSL,126,CERTIFICATE_VERIFY_FAILED | |||
SSL,127,CERT_CB_ERROR | |||
SSL,128,CERT_LENGTH_MISMATCH | |||
SSL,129,CHANNEL_ID_NOT_P256 | |||
SSL,130,CHANNEL_ID_SIGNATURE_INVALID | |||
SSL,131,CIPHER_CODE_WRONG_LENGTH | |||
SSL,132,CIPHER_OR_HASH_UNAVAILABLE | |||
SSL,133,CLIENTHELLO_PARSE_FAILED | |||
SSL,134,CLIENTHELLO_TLSEXT | |||
SSL,135,CONNECTION_REJECTED | |||
SSL,136,CONNECTION_TYPE_NOT_SET | |||
SSL,137,COOKIE_MISMATCH | |||
SSL,138,D2I_ECDSA_SIG | |||
SSL,139,DATA_BETWEEN_CCS_AND_FINISHED | |||
SSL,140,DATA_LENGTH_TOO_LONG | |||
SSL,141,DECODE_ERROR | |||
SSL,142,DECRYPTION_FAILED | |||
SSL,143,DECRYPTION_FAILED_OR_BAD_RECORD_MAC | |||
SSL,144,DH_PUBLIC_VALUE_LENGTH_IS_WRONG | |||
SSL,145,DIGEST_CHECK_FAILED | |||
SSL,146,DTLS_MESSAGE_TOO_BIG | |||
SSL,147,ECC_CERT_NOT_FOR_SIGNING | |||
SSL,148,EMPTY_SRTP_PROTECTION_PROFILE_LIST | |||
SSL,276,EMS_STATE_INCONSISTENT | |||
SSL,149,ENCRYPTED_LENGTH_TOO_LONG | |||
SSL,150,ERROR_IN_RECEIVED_CIPHER_LIST | |||
SSL,151,EVP_DIGESTSIGNFINAL_FAILED | |||
SSL,152,EVP_DIGESTSIGNINIT_FAILED | |||
SSL,153,EXCESSIVE_MESSAGE_SIZE | |||
SSL,154,EXTRA_DATA_IN_MESSAGE | |||
SSL,271,FRAGMENT_MISMATCH | |||
SSL,155,GOT_A_FIN_BEFORE_A_CCS | |||
SSL,156,GOT_CHANNEL_ID_BEFORE_A_CCS | |||
SSL,157,GOT_NEXT_PROTO_BEFORE_A_CCS | |||
SSL,158,GOT_NEXT_PROTO_WITHOUT_EXTENSION | |||
SSL,159,HANDSHAKE_FAILURE_ON_CLIENT_HELLO | |||
SSL,160,HANDSHAKE_RECORD_BEFORE_CCS | |||
SSL,161,HTTPS_PROXY_REQUEST | |||
SSL,162,HTTP_REQUEST | |||
SSL,163,INAPPROPRIATE_FALLBACK | |||
SSL,164,INVALID_COMMAND | |||
SSL,165,INVALID_MESSAGE | |||
SSL,166,INVALID_SSL_SESSION | |||
SSL,167,INVALID_TICKET_KEYS_LENGTH | |||
SSL,168,LENGTH_MISMATCH | |||
SSL,169,LIBRARY_HAS_NO_CIPHERS | |||
SSL,170,MISSING_DH_KEY | |||
SSL,171,MISSING_ECDSA_SIGNING_CERT | |||
SSL,172,MISSING_RSA_CERTIFICATE | |||
SSL,173,MISSING_RSA_ENCRYPTING_CERT | |||
SSL,174,MISSING_RSA_SIGNING_CERT | |||
SSL,175,MISSING_TMP_DH_KEY | |||
SSL,176,MISSING_TMP_ECDH_KEY | |||
SSL,177,MIXED_SPECIAL_OPERATOR_WITH_GROUPS | |||
SSL,178,MTU_TOO_SMALL | |||
SSL,179,NESTED_GROUP | |||
SSL,180,NO_CERTIFICATES_RETURNED | |||
SSL,181,NO_CERTIFICATE_ASSIGNED | |||
SSL,182,NO_CERTIFICATE_SET | |||
SSL,183,NO_CIPHERS_AVAILABLE | |||
SSL,184,NO_CIPHERS_PASSED | |||
SSL,185,NO_CIPHERS_SPECIFIED | |||
SSL,186,NO_CIPHER_MATCH | |||
SSL,187,NO_COMPRESSION_SPECIFIED | |||
SSL,188,NO_METHOD_SPECIFIED | |||
SSL,189,NO_P256_SUPPORT | |||
SSL,190,NO_PRIVATE_KEY_ASSIGNED | |||
SSL,191,NO_RENEGOTIATION | |||
SSL,192,NO_REQUIRED_DIGEST | |||
SSL,193,NO_SHARED_CIPHER | |||
SSL,194,NO_SHARED_SIGATURE_ALGORITHMS | |||
SSL,195,NO_SRTP_PROFILES | |||
SSL,196,NULL_SSL_CTX | |||
SSL,197,NULL_SSL_METHOD_PASSED | |||
SSL,198,OLD_SESSION_CIPHER_NOT_RETURNED | |||
SSL,273,OLD_SESSION_VERSION_NOT_RETURNED | |||
SSL,274,OUTPUT_ALIASES_INPUT | |||
SSL,199,PACKET_LENGTH_TOO_LONG | |||
SSL,200,PARSE_TLSEXT | |||
SSL,201,PATH_TOO_LONG | |||
SSL,202,PEER_DID_NOT_RETURN_A_CERTIFICATE | |||
SSL,203,PEER_ERROR_UNSUPPORTED_CERTIFICATE_TYPE | |||
SSL,204,PROTOCOL_IS_SHUTDOWN | |||
SSL,205,PSK_IDENTITY_NOT_FOUND | |||
SSL,206,PSK_NO_CLIENT_CB | |||
SSL,207,PSK_NO_SERVER_CB | |||
SSL,208,READ_BIO_NOT_SET | |||
SSL,209,READ_TIMEOUT_EXPIRED | |||
SSL,210,RECORD_LENGTH_MISMATCH | |||
SSL,211,RECORD_TOO_LARGE | |||
SSL,212,RENEGOTIATE_EXT_TOO_LONG | |||
SSL,213,RENEGOTIATION_ENCODING_ERR | |||
SSL,214,RENEGOTIATION_MISMATCH | |||
SSL,215,REQUIRED_CIPHER_MISSING | |||
SSL,275,RESUMED_EMS_SESSION_WITHOUT_EMS_EXTENSION | |||
SSL,277,RESUMED_NON_EMS_SESSION_WITH_EMS_EXTENSION | |||
SSL,216,SCSV_RECEIVED_WHEN_RENEGOTIATING | |||
SSL,217,SERVERHELLO_TLSEXT | |||
SSL,218,SESSION_ID_CONTEXT_UNINITIALIZED | |||
SSL,219,SESSION_MAY_NOT_BE_CREATED | |||
SSL,220,SIGNATURE_ALGORITHMS_ERROR | |||
SSL,280,SIGNATURE_ALGORITHMS_EXTENSION_SENT_BY_SERVER | |||
SSL,221,SRTP_COULD_NOT_ALLOCATE_PROFILES | |||
SSL,222,SRTP_PROTECTION_PROFILE_LIST_TOO_LONG | |||
SSL,223,SRTP_UNKNOWN_PROTECTION_PROFILE | |||
SSL,224,SSL3_EXT_INVALID_SERVERNAME | |||
SSL,225,SSL3_EXT_INVALID_SERVERNAME_TYPE | |||
SSL,1042,SSLV3_ALERT_BAD_CERTIFICATE | |||
SSL,1020,SSLV3_ALERT_BAD_RECORD_MAC | |||
SSL,1045,SSLV3_ALERT_CERTIFICATE_EXPIRED | |||
SSL,1044,SSLV3_ALERT_CERTIFICATE_REVOKED | |||
SSL,1046,SSLV3_ALERT_CERTIFICATE_UNKNOWN | |||
SSL,1000,SSLV3_ALERT_CLOSE_NOTIFY | |||
SSL,1030,SSLV3_ALERT_DECOMPRESSION_FAILURE | |||
SSL,1040,SSLV3_ALERT_HANDSHAKE_FAILURE | |||
SSL,1047,SSLV3_ALERT_ILLEGAL_PARAMETER | |||
SSL,1041,SSLV3_ALERT_NO_CERTIFICATE | |||
SSL,1010,SSLV3_ALERT_UNEXPECTED_MESSAGE | |||
SSL,1043,SSLV3_ALERT_UNSUPPORTED_CERTIFICATE | |||
SSL,226,SSL_CTX_HAS_NO_DEFAULT_SSL_VERSION | |||
SSL,227,SSL_HANDSHAKE_FAILURE | |||
SSL,228,SSL_SESSION_ID_CALLBACK_FAILED | |||
SSL,229,SSL_SESSION_ID_CONFLICT | |||
SSL,230,SSL_SESSION_ID_CONTEXT_TOO_LONG | |||
SSL,231,SSL_SESSION_ID_HAS_BAD_LENGTH | |||
SSL,1049,TLSV1_ALERT_ACCESS_DENIED | |||
SSL,1050,TLSV1_ALERT_DECODE_ERROR | |||
SSL,1021,TLSV1_ALERT_DECRYPTION_FAILED | |||
SSL,1051,TLSV1_ALERT_DECRYPT_ERROR | |||
SSL,1060,TLSV1_ALERT_EXPORT_RESTRICTION | |||
SSL,1086,TLSV1_ALERT_INAPPROPRIATE_FALLBACK | |||
SSL,1071,TLSV1_ALERT_INSUFFICIENT_SECURITY | |||
SSL,1080,TLSV1_ALERT_INTERNAL_ERROR | |||
SSL,1100,TLSV1_ALERT_NO_RENEGOTIATION | |||
SSL,1070,TLSV1_ALERT_PROTOCOL_VERSION | |||
SSL,1022,TLSV1_ALERT_RECORD_OVERFLOW | |||
SSL,1048,TLSV1_ALERT_UNKNOWN_CA | |||
SSL,1090,TLSV1_ALERT_USER_CANCELLED | |||
SSL,1114,TLSV1_BAD_CERTIFICATE_HASH_VALUE | |||
SSL,1113,TLSV1_BAD_CERTIFICATE_STATUS_RESPONSE | |||
SSL,1111,TLSV1_CERTIFICATE_UNOBTAINABLE | |||
SSL,1112,TLSV1_UNRECOGNIZED_NAME | |||
SSL,1110,TLSV1_UNSUPPORTED_EXTENSION | |||
SSL,232,TLS_CLIENT_CERT_REQ_WITH_ANON_CIPHER | |||
SSL,233,TLS_ILLEGAL_EXPORTER_LABEL | |||
SSL,234,TLS_INVALID_ECPOINTFORMAT_LIST | |||
SSL,235,TLS_PEER_DID_NOT_RESPOND_WITH_CERTIFICATE_LIST | |||
SSL,236,TLS_RSA_ENCRYPTED_VALUE_LENGTH_IS_WRONG | |||
SSL,237,TOO_MANY_EMPTY_FRAGMENTS | |||
SSL,278,TOO_MANY_WARNING_ALERTS | |||
SSL,238,UNABLE_TO_FIND_ECDH_PARAMETERS | |||
SSL,239,UNABLE_TO_FIND_PUBLIC_KEY_PARAMETERS | |||
SSL,279,UNEXPECTED_EXTENSION | |||
SSL,240,UNEXPECTED_GROUP_CLOSE | |||
SSL,241,UNEXPECTED_MESSAGE | |||
SSL,242,UNEXPECTED_OPERATOR_IN_GROUP | |||
SSL,243,UNEXPECTED_RECORD | |||
SSL,244,UNINITIALIZED | |||
SSL,245,UNKNOWN_ALERT_TYPE | |||
SSL,246,UNKNOWN_CERTIFICATE_TYPE | |||
SSL,247,UNKNOWN_CIPHER_RETURNED | |||
SSL,248,UNKNOWN_CIPHER_TYPE | |||
SSL,249,UNKNOWN_DIGEST | |||
SSL,250,UNKNOWN_KEY_EXCHANGE_TYPE | |||
SSL,251,UNKNOWN_PROTOCOL | |||
SSL,252,UNKNOWN_SSL_VERSION | |||
SSL,253,UNKNOWN_STATE | |||
SSL,254,UNPROCESSED_HANDSHAKE_DATA | |||
SSL,255,UNSAFE_LEGACY_RENEGOTIATION_DISABLED | |||
SSL,256,UNSUPPORTED_CIPHER | |||
SSL,257,UNSUPPORTED_COMPRESSION_ALGORITHM | |||
SSL,258,UNSUPPORTED_ELLIPTIC_CURVE | |||
SSL,259,UNSUPPORTED_PROTOCOL | |||
SSL,260,UNSUPPORTED_SSL_VERSION | |||
SSL,261,USE_SRTP_NOT_NEGOTIATED | |||
SSL,262,WRONG_CERTIFICATE_TYPE | |||
SSL,263,WRONG_CIPHER_RETURNED | |||
SSL,264,WRONG_CURVE | |||
SSL,265,WRONG_MESSAGE_TYPE | |||
SSL,266,WRONG_SIGNATURE_TYPE | |||
SSL,267,WRONG_SSL_VERSION | |||
SSL,268,WRONG_VERSION_NUMBER | |||
SSL,269,X509_LIB | |||
SSL,270,X509_VERIFICATION_SETUP_PROBLEMS |
@@ -1,98 +1,37 @@ | |||
X509,function,100,ASN1_digest | |||
X509,function,101,ASN1_item_sign_ctx | |||
X509,function,102,ASN1_item_verify | |||
X509,function,103,NETSCAPE_SPKI_b64_decode | |||
X509,function,104,NETSCAPE_SPKI_b64_encode | |||
X509,function,158,PKCS7_get_CRLs | |||
X509,function,105,PKCS7_get_certificates | |||
X509,function,106,X509_ATTRIBUTE_create_by_NID | |||
X509,function,107,X509_ATTRIBUTE_create_by_OBJ | |||
X509,function,108,X509_ATTRIBUTE_create_by_txt | |||
X509,function,109,X509_ATTRIBUTE_get0_data | |||
X509,function,110,X509_ATTRIBUTE_set1_data | |||
X509,function,111,X509_CRL_add0_revoked | |||
X509,function,112,X509_CRL_diff | |||
X509,function,113,X509_CRL_print_fp | |||
X509,function,114,X509_EXTENSION_create_by_NID | |||
X509,function,115,X509_EXTENSION_create_by_OBJ | |||
X509,function,116,X509_INFO_new | |||
X509,function,117,X509_NAME_ENTRY_create_by_NID | |||
X509,function,118,X509_NAME_ENTRY_create_by_txt | |||
X509,function,119,X509_NAME_ENTRY_set_object | |||
X509,function,120,X509_NAME_add_entry | |||
X509,function,121,X509_NAME_oneline | |||
X509,function,122,X509_NAME_print | |||
X509,function,123,X509_PKEY_new | |||
X509,function,124,X509_PUBKEY_get | |||
X509,function,125,X509_PUBKEY_set | |||
X509,function,126,X509_REQ_check_private_key | |||
X509,function,159,X509_REQ_print_ex | |||
X509,function,160,X509_REQ_print_fp | |||
X509,function,127,X509_REQ_to_X509 | |||
X509,function,128,X509_STORE_CTX_get1_issuer | |||
X509,function,129,X509_STORE_CTX_init | |||
X509,function,130,X509_STORE_CTX_new | |||
X509,function,131,X509_STORE_CTX_purpose_inherit | |||
X509,function,132,X509_STORE_add_cert | |||
X509,function,133,X509_STORE_add_crl | |||
X509,function,134,X509_TRUST_add | |||
X509,function,135,X509_TRUST_set | |||
X509,function,136,X509_check_private_key | |||
X509,function,137,X509_get_pubkey_parameters | |||
X509,function,138,X509_load_cert_crl_file | |||
X509,function,139,X509_load_cert_file | |||
X509,function,140,X509_load_crl_file | |||
X509,function,141,X509_print_ex_fp | |||
X509,function,142,X509_to_X509_REQ | |||
X509,function,143,X509_verify_cert | |||
X509,function,144,X509at_add1_attr | |||
X509,function,145,X509v3_add_ext | |||
X509,function,146,add_cert_dir | |||
X509,function,147,by_file_ctrl | |||
X509,function,148,check_policy | |||
X509,function,149,dir_ctrl | |||
X509,function,150,get_cert_by_subject | |||
X509,function,151,i2d_DSA_PUBKEY | |||
X509,function,152,i2d_EC_PUBKEY | |||
X509,function,153,i2d_RSA_PUBKEY | |||
X509,function,157,pkcs7_parse_header | |||
X509,function,154,x509_name_encode | |||
X509,function,155,x509_name_ex_d2i | |||
X509,function,156,x509_name_ex_new | |||
X509,reason,100,AKID_MISMATCH | |||
X509,reason,101,BAD_PKCS7_VERSION | |||
X509,reason,102,BAD_X509_FILETYPE | |||
X509,reason,103,BASE64_DECODE_ERROR | |||
X509,reason,104,CANT_CHECK_DH_KEY | |||
X509,reason,105,CERT_ALREADY_IN_HASH_TABLE | |||
X509,reason,106,CRL_ALREADY_DELTA | |||
X509,reason,107,CRL_VERIFY_FAILURE | |||
X509,reason,108,IDP_MISMATCH | |||
X509,reason,109,INVALID_BIT_STRING_BITS_LEFT | |||
X509,reason,110,INVALID_DIRECTORY | |||
X509,reason,111,INVALID_FIELD_NAME | |||
X509,reason,112,INVALID_TRUST | |||
X509,reason,113,ISSUER_MISMATCH | |||
X509,reason,114,KEY_TYPE_MISMATCH | |||
X509,reason,115,KEY_VALUES_MISMATCH | |||
X509,reason,116,LOADING_CERT_DIR | |||
X509,reason,117,LOADING_DEFAULTS | |||
X509,reason,118,METHOD_NOT_SUPPORTED | |||
X509,reason,119,NEWER_CRL_NOT_NEWER | |||
X509,reason,120,NOT_PKCS7_SIGNED_DATA | |||
X509,reason,121,NO_CERTIFICATES_INCLUDED | |||
X509,reason,122,NO_CERT_SET_FOR_US_TO_VERIFY | |||
X509,reason,136,NO_CRLS_INCLUDED | |||
X509,reason,123,NO_CRL_NUMBER | |||
X509,reason,124,PUBLIC_KEY_DECODE_ERROR | |||
X509,reason,125,PUBLIC_KEY_ENCODE_ERROR | |||
X509,reason,126,SHOULD_RETRY | |||
X509,reason,127,UNABLE_TO_FIND_PARAMETERS_IN_CHAIN | |||
X509,reason,128,UNABLE_TO_GET_CERTS_PUBLIC_KEY | |||
X509,reason,129,UNKNOWN_KEY_TYPE | |||
X509,reason,130,UNKNOWN_NID | |||
X509,reason,131,UNKNOWN_PURPOSE_ID | |||
X509,reason,132,UNKNOWN_TRUST_ID | |||
X509,reason,133,UNSUPPORTED_ALGORITHM | |||
X509,reason,134,WRONG_LOOKUP_TYPE | |||
X509,reason,135,WRONG_TYPE | |||
X509,100,AKID_MISMATCH | |||
X509,101,BAD_PKCS7_VERSION | |||
X509,102,BAD_X509_FILETYPE | |||
X509,103,BASE64_DECODE_ERROR | |||
X509,104,CANT_CHECK_DH_KEY | |||
X509,105,CERT_ALREADY_IN_HASH_TABLE | |||
X509,106,CRL_ALREADY_DELTA | |||
X509,107,CRL_VERIFY_FAILURE | |||
X509,108,IDP_MISMATCH | |||
X509,109,INVALID_BIT_STRING_BITS_LEFT | |||
X509,110,INVALID_DIRECTORY | |||
X509,111,INVALID_FIELD_NAME | |||
X509,112,INVALID_TRUST | |||
X509,113,ISSUER_MISMATCH | |||
X509,114,KEY_TYPE_MISMATCH | |||
X509,115,KEY_VALUES_MISMATCH | |||
X509,116,LOADING_CERT_DIR | |||
X509,117,LOADING_DEFAULTS | |||
X509,118,METHOD_NOT_SUPPORTED | |||
X509,119,NEWER_CRL_NOT_NEWER | |||
X509,120,NOT_PKCS7_SIGNED_DATA | |||
X509,121,NO_CERTIFICATES_INCLUDED | |||
X509,122,NO_CERT_SET_FOR_US_TO_VERIFY | |||
X509,136,NO_CRLS_INCLUDED | |||
X509,123,NO_CRL_NUMBER | |||
X509,124,PUBLIC_KEY_DECODE_ERROR | |||
X509,125,PUBLIC_KEY_ENCODE_ERROR | |||
X509,126,SHOULD_RETRY | |||
X509,127,UNABLE_TO_FIND_PARAMETERS_IN_CHAIN | |||
X509,128,UNABLE_TO_GET_CERTS_PUBLIC_KEY | |||
X509,129,UNKNOWN_KEY_TYPE | |||
X509,130,UNKNOWN_NID | |||
X509,131,UNKNOWN_PURPOSE_ID | |||
X509,132,UNKNOWN_TRUST_ID | |||
X509,133,UNSUPPORTED_ALGORITHM | |||
X509,134,WRONG_LOOKUP_TYPE | |||
X509,135,WRONG_TYPE |
@@ -1,120 +1,63 @@ | |||
X509V3,function,100,SXNET_add_id_INTEGER | |||
X509V3,function,101,SXNET_add_id_asc | |||
X509V3,function,102,SXNET_add_id_ulong | |||
X509V3,function,103,SXNET_get_id_asc | |||
X509V3,function,104,SXNET_get_id_ulong | |||
X509V3,function,105,X509V3_EXT_add | |||
X509V3,function,106,X509V3_EXT_add_alias | |||
X509V3,function,107,X509V3_EXT_free | |||
X509V3,function,108,X509V3_EXT_i2d | |||
X509V3,function,109,X509V3_EXT_nconf | |||
X509V3,function,110,X509V3_add1_i2d | |||
X509V3,function,111,X509V3_add_value | |||
X509V3,function,112,X509V3_get_section | |||
X509V3,function,113,X509V3_get_string | |||
X509V3,function,114,X509V3_get_value_bool | |||
X509V3,function,115,X509V3_parse_list | |||
X509V3,function,116,X509_PURPOSE_add | |||
X509V3,function,117,X509_PURPOSE_set | |||
X509V3,function,118,a2i_GENERAL_NAME | |||
X509V3,function,119,copy_email | |||
X509V3,function,120,copy_issuer | |||
X509V3,function,121,do_dirname | |||
X509V3,function,122,do_ext_i2d | |||
X509V3,function,123,do_ext_nconf | |||
X509V3,function,124,gnames_from_sectname | |||
X509V3,function,125,hex_to_string | |||
X509V3,function,126,i2s_ASN1_ENUMERATED | |||
X509V3,function,127,i2s_ASN1_IA5STRING | |||
X509V3,function,128,i2s_ASN1_INTEGER | |||
X509V3,function,129,i2v_AUTHORITY_INFO_ACCESS | |||
X509V3,function,130,notice_section | |||
X509V3,function,131,nref_nos | |||
X509V3,function,132,policy_section | |||
X509V3,function,133,process_pci_value | |||
X509V3,function,134,r2i_certpol | |||
X509V3,function,135,r2i_pci | |||
X509V3,function,136,s2i_ASN1_IA5STRING | |||
X509V3,function,137,s2i_ASN1_INTEGER | |||
X509V3,function,138,s2i_ASN1_OCTET_STRING | |||
X509V3,function,139,s2i_skey_id | |||
X509V3,function,140,set_dist_point_name | |||
X509V3,function,141,string_to_hex | |||
X509V3,function,142,v2i_ASN1_BIT_STRING | |||
X509V3,function,143,v2i_AUTHORITY_INFO_ACCESS | |||
X509V3,function,144,v2i_AUTHORITY_KEYID | |||
X509V3,function,145,v2i_BASIC_CONSTRAINTS | |||
X509V3,function,146,v2i_EXTENDED_KEY_USAGE | |||
X509V3,function,147,v2i_GENERAL_NAMES | |||
X509V3,function,148,v2i_GENERAL_NAME_ex | |||
X509V3,function,149,v2i_NAME_CONSTRAINTS | |||
X509V3,function,150,v2i_POLICY_CONSTRAINTS | |||
X509V3,function,151,v2i_POLICY_MAPPINGS | |||
X509V3,function,152,v2i_crld | |||
X509V3,function,153,v2i_idp | |||
X509V3,function,154,v2i_issuer_alt | |||
X509V3,function,155,v2i_subject_alt | |||
X509V3,function,156,v3_generic_extension | |||
X509V3,reason,100,BAD_IP_ADDRESS | |||
X509V3,reason,101,BAD_OBJECT | |||
X509V3,reason,102,BN_DEC2BN_ERROR | |||
X509V3,reason,103,BN_TO_ASN1_INTEGER_ERROR | |||
X509V3,reason,104,CANNOT_FIND_FREE_FUNCTION | |||
X509V3,reason,105,DIRNAME_ERROR | |||
X509V3,reason,106,DISTPOINT_ALREADY_SET | |||
X509V3,reason,107,DUPLICATE_ZONE_ID | |||
X509V3,reason,108,ERROR_CONVERTING_ZONE | |||
X509V3,reason,109,ERROR_CREATING_EXTENSION | |||
X509V3,reason,110,ERROR_IN_EXTENSION | |||
X509V3,reason,111,EXPECTED_A_SECTION_NAME | |||
X509V3,reason,112,EXTENSION_EXISTS | |||
X509V3,reason,113,EXTENSION_NAME_ERROR | |||
X509V3,reason,114,EXTENSION_NOT_FOUND | |||
X509V3,reason,115,EXTENSION_SETTING_NOT_SUPPORTED | |||
X509V3,reason,116,EXTENSION_VALUE_ERROR | |||
X509V3,reason,117,ILLEGAL_EMPTY_EXTENSION | |||
X509V3,reason,118,ILLEGAL_HEX_DIGIT | |||
X509V3,reason,119,INCORRECT_POLICY_SYNTAX_TAG | |||
X509V3,reason,120,INVALID_BOOLEAN_STRING | |||
X509V3,reason,121,INVALID_EXTENSION_STRING | |||
X509V3,reason,122,INVALID_MULTIPLE_RDNS | |||
X509V3,reason,123,INVALID_NAME | |||
X509V3,reason,124,INVALID_NULL_ARGUMENT | |||
X509V3,reason,125,INVALID_NULL_NAME | |||
X509V3,reason,126,INVALID_NULL_VALUE | |||
X509V3,reason,127,INVALID_NUMBER | |||
X509V3,reason,128,INVALID_NUMBERS | |||
X509V3,reason,129,INVALID_OBJECT_IDENTIFIER | |||
X509V3,reason,130,INVALID_OPTION | |||
X509V3,reason,131,INVALID_POLICY_IDENTIFIER | |||
X509V3,reason,132,INVALID_PROXY_POLICY_SETTING | |||
X509V3,reason,133,INVALID_PURPOSE | |||
X509V3,reason,134,INVALID_SECTION | |||
X509V3,reason,135,INVALID_SYNTAX | |||
X509V3,reason,136,ISSUER_DECODE_ERROR | |||
X509V3,reason,137,MISSING_VALUE | |||
X509V3,reason,138,NEED_ORGANIZATION_AND_NUMBERS | |||
X509V3,reason,139,NO_CONFIG_DATABASE | |||
X509V3,reason,140,NO_ISSUER_CERTIFICATE | |||
X509V3,reason,141,NO_ISSUER_DETAILS | |||
X509V3,reason,142,NO_POLICY_IDENTIFIER | |||
X509V3,reason,143,NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED | |||
X509V3,reason,144,NO_PUBLIC_KEY | |||
X509V3,reason,145,NO_SUBJECT_DETAILS | |||
X509V3,reason,146,ODD_NUMBER_OF_DIGITS | |||
X509V3,reason,147,OPERATION_NOT_DEFINED | |||
X509V3,reason,148,OTHERNAME_ERROR | |||
X509V3,reason,149,POLICY_LANGUAGE_ALREADY_DEFINED | |||
X509V3,reason,150,POLICY_PATH_LENGTH | |||
X509V3,reason,151,POLICY_PATH_LENGTH_ALREADY_DEFINED | |||
X509V3,reason,152,POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY | |||
X509V3,reason,153,SECTION_NOT_FOUND | |||
X509V3,reason,154,UNABLE_TO_GET_ISSUER_DETAILS | |||
X509V3,reason,155,UNABLE_TO_GET_ISSUER_KEYID | |||
X509V3,reason,156,UNKNOWN_BIT_STRING_ARGUMENT | |||
X509V3,reason,157,UNKNOWN_EXTENSION | |||
X509V3,reason,158,UNKNOWN_EXTENSION_NAME | |||
X509V3,reason,159,UNKNOWN_OPTION | |||
X509V3,reason,160,UNSUPPORTED_OPTION | |||
X509V3,reason,161,UNSUPPORTED_TYPE | |||
X509V3,reason,162,USER_TOO_LONG | |||
X509V3,100,BAD_IP_ADDRESS | |||
X509V3,101,BAD_OBJECT | |||
X509V3,102,BN_DEC2BN_ERROR | |||
X509V3,103,BN_TO_ASN1_INTEGER_ERROR | |||
X509V3,104,CANNOT_FIND_FREE_FUNCTION | |||
X509V3,105,DIRNAME_ERROR | |||
X509V3,106,DISTPOINT_ALREADY_SET | |||
X509V3,107,DUPLICATE_ZONE_ID | |||
X509V3,108,ERROR_CONVERTING_ZONE | |||
X509V3,109,ERROR_CREATING_EXTENSION | |||
X509V3,110,ERROR_IN_EXTENSION | |||
X509V3,111,EXPECTED_A_SECTION_NAME | |||
X509V3,112,EXTENSION_EXISTS | |||
X509V3,113,EXTENSION_NAME_ERROR | |||
X509V3,114,EXTENSION_NOT_FOUND | |||
X509V3,115,EXTENSION_SETTING_NOT_SUPPORTED | |||
X509V3,116,EXTENSION_VALUE_ERROR | |||
X509V3,117,ILLEGAL_EMPTY_EXTENSION | |||
X509V3,118,ILLEGAL_HEX_DIGIT | |||
X509V3,119,INCORRECT_POLICY_SYNTAX_TAG | |||
X509V3,120,INVALID_BOOLEAN_STRING | |||
X509V3,121,INVALID_EXTENSION_STRING | |||
X509V3,122,INVALID_MULTIPLE_RDNS | |||
X509V3,123,INVALID_NAME | |||
X509V3,124,INVALID_NULL_ARGUMENT | |||
X509V3,125,INVALID_NULL_NAME | |||
X509V3,126,INVALID_NULL_VALUE | |||
X509V3,127,INVALID_NUMBER | |||
X509V3,128,INVALID_NUMBERS | |||
X509V3,129,INVALID_OBJECT_IDENTIFIER | |||
X509V3,130,INVALID_OPTION | |||
X509V3,131,INVALID_POLICY_IDENTIFIER | |||
X509V3,132,INVALID_PROXY_POLICY_SETTING | |||
X509V3,133,INVALID_PURPOSE | |||
X509V3,134,INVALID_SECTION | |||
X509V3,135,INVALID_SYNTAX | |||
X509V3,136,ISSUER_DECODE_ERROR | |||
X509V3,137,MISSING_VALUE | |||
X509V3,138,NEED_ORGANIZATION_AND_NUMBERS | |||
X509V3,139,NO_CONFIG_DATABASE | |||
X509V3,140,NO_ISSUER_CERTIFICATE | |||
X509V3,141,NO_ISSUER_DETAILS | |||
X509V3,142,NO_POLICY_IDENTIFIER | |||
X509V3,143,NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED | |||
X509V3,144,NO_PUBLIC_KEY | |||
X509V3,145,NO_SUBJECT_DETAILS | |||
X509V3,146,ODD_NUMBER_OF_DIGITS | |||
X509V3,147,OPERATION_NOT_DEFINED | |||
X509V3,148,OTHERNAME_ERROR | |||
X509V3,149,POLICY_LANGUAGE_ALREADY_DEFINED | |||
X509V3,150,POLICY_PATH_LENGTH | |||
X509V3,151,POLICY_PATH_LENGTH_ALREADY_DEFINED | |||
X509V3,152,POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY | |||
X509V3,153,SECTION_NOT_FOUND | |||
X509V3,154,UNABLE_TO_GET_ISSUER_DETAILS | |||
X509V3,155,UNABLE_TO_GET_ISSUER_KEYID | |||
X509V3,156,UNKNOWN_BIT_STRING_ARGUMENT | |||
X509V3,157,UNKNOWN_EXTENSION | |||
X509V3,158,UNKNOWN_EXTENSION_NAME | |||
X509V3,159,UNKNOWN_OPTION | |||
X509V3,160,UNSUPPORTED_OPTION | |||
X509V3,161,UNSUPPORTED_TYPE | |||
X509V3,162,USER_TOO_LONG |
@@ -174,7 +174,7 @@ static bool TestEVP(FileTest *t, void *arg) { | |||
bssl::vector_data(&input), input.size())) { | |||
// ECDSA sometimes doesn't push an error code. Push one on the error queue | |||
// so it's distinguishable from other errors. | |||
ERR_put_error(ERR_LIB_USER, 0, ERR_R_EVP_LIB, __FILE__, __LINE__); | |||
OPENSSL_PUT_ERROR(USER, TestEVP, ERR_R_EVP_LIB); | |||
return false; | |||
} | |||
return true; | |||
@@ -1078,70 +1078,6 @@ OPENSSL_EXPORT int BIO_asn1_get_suffix(BIO *b, asn1_ps_func **psuffix, asn1_ps_f | |||
} | |||
#endif | |||
#define ASN1_F_ASN1_BIT_STRING_set_bit 100 | |||
#define ASN1_F_ASN1_ENUMERATED_set 101 | |||
#define ASN1_F_ASN1_ENUMERATED_to_BN 102 | |||
#define ASN1_F_ASN1_GENERALIZEDTIME_adj 103 | |||
#define ASN1_F_ASN1_INTEGER_set 104 | |||
#define ASN1_F_ASN1_INTEGER_to_BN 105 | |||
#define ASN1_F_ASN1_OBJECT_new 106 | |||
#define ASN1_F_ASN1_PCTX_new 107 | |||
#define ASN1_F_ASN1_STRING_TABLE_add 108 | |||
#define ASN1_F_ASN1_STRING_set 109 | |||
#define ASN1_F_ASN1_STRING_type_new 110 | |||
#define ASN1_F_ASN1_TIME_adj 111 | |||
#define ASN1_F_ASN1_UTCTIME_adj 112 | |||
#define ASN1_F_ASN1_d2i_fp 113 | |||
#define ASN1_F_ASN1_dup 114 | |||
#define ASN1_F_ASN1_generate_v3 115 | |||
#define ASN1_F_ASN1_get_object 116 | |||
#define ASN1_F_ASN1_i2d_bio 117 | |||
#define ASN1_F_ASN1_i2d_fp 118 | |||
#define ASN1_F_ASN1_item_d2i_fp 119 | |||
#define ASN1_F_ASN1_item_dup 120 | |||
#define ASN1_F_ASN1_item_ex_d2i 121 | |||
#define ASN1_F_ASN1_item_i2d_bio 122 | |||
#define ASN1_F_ASN1_item_i2d_fp 123 | |||
#define ASN1_F_ASN1_item_pack 124 | |||
#define ASN1_F_ASN1_item_unpack 125 | |||
#define ASN1_F_ASN1_mbstring_ncopy 126 | |||
#define ASN1_F_ASN1_template_new 127 | |||
#define ASN1_F_BIO_new_NDEF 128 | |||
#define ASN1_F_BN_to_ASN1_ENUMERATED 129 | |||
#define ASN1_F_BN_to_ASN1_INTEGER 130 | |||
#define ASN1_F_a2d_ASN1_OBJECT 131 | |||
#define ASN1_F_a2i_ASN1_ENUMERATED 132 | |||
#define ASN1_F_a2i_ASN1_INTEGER 133 | |||
#define ASN1_F_a2i_ASN1_STRING 134 | |||
#define ASN1_F_append_exp 135 | |||
#define ASN1_F_asn1_cb 136 | |||
#define ASN1_F_asn1_check_tlen 137 | |||
#define ASN1_F_asn1_collate_primitive 138 | |||
#define ASN1_F_asn1_collect 139 | |||
#define ASN1_F_asn1_d2i_ex_primitive 140 | |||
#define ASN1_F_asn1_d2i_read_bio 141 | |||
#define ASN1_F_asn1_do_adb 142 | |||
#define ASN1_F_asn1_ex_c2i 143 | |||
#define ASN1_F_asn1_find_end 144 | |||
#define ASN1_F_asn1_item_ex_combine_new 145 | |||
#define ASN1_F_asn1_str2type 146 | |||
#define ASN1_F_asn1_template_ex_d2i 147 | |||
#define ASN1_F_asn1_template_noexp_d2i 148 | |||
#define ASN1_F_bitstr_cb 149 | |||
#define ASN1_F_c2i_ASN1_BIT_STRING 150 | |||
#define ASN1_F_c2i_ASN1_INTEGER 151 | |||
#define ASN1_F_c2i_ASN1_OBJECT 152 | |||
#define ASN1_F_collect_data 153 | |||
#define ASN1_F_d2i_ASN1_BOOLEAN 154 | |||
#define ASN1_F_d2i_ASN1_OBJECT 155 | |||
#define ASN1_F_d2i_ASN1_UINTEGER 156 | |||
#define ASN1_F_d2i_ASN1_UTCTIME 157 | |||
#define ASN1_F_d2i_ASN1_bytes 158 | |||
#define ASN1_F_d2i_ASN1_type_bytes 159 | |||
#define ASN1_F_i2d_ASN1_TIME 160 | |||
#define ASN1_F_i2d_PrivateKey 161 | |||
#define ASN1_F_long_c2i 162 | |||
#define ASN1_F_parse_tagging 163 | |||
#define ASN1_R_ASN1_LENGTH_MISMATCH 100 | |||
#define ASN1_R_AUX_ERROR 101 | |||
#define ASN1_R_BAD_GET_ASN1_OBJECT_CALL 102 | |||
@@ -885,25 +885,6 @@ struct bio_st { | |||
} /* extern C */ | |||
#endif | |||
#define BIO_F_BIO_callback_ctrl 100 | |||
#define BIO_F_BIO_ctrl 101 | |||
#define BIO_F_BIO_new 102 | |||
#define BIO_F_BIO_new_file 103 | |||
#define BIO_F_BIO_new_mem_buf 104 | |||
#define BIO_F_BIO_zero_copy_get_read_buf 105 | |||
#define BIO_F_BIO_zero_copy_get_read_buf_done 106 | |||
#define BIO_F_BIO_zero_copy_get_write_buf 107 | |||
#define BIO_F_BIO_zero_copy_get_write_buf_done 108 | |||
#define BIO_F_bio_io 109 | |||
#define BIO_F_bio_make_pair 110 | |||
#define BIO_F_bio_write 111 | |||
#define BIO_F_buffer_ctrl 112 | |||
#define BIO_F_conn_ctrl 113 | |||
#define BIO_F_conn_state 114 | |||
#define BIO_F_file_ctrl 115 | |||
#define BIO_F_file_read 116 | |||
#define BIO_F_mem_write 117 | |||
#define BIO_F_BIO_printf 118 | |||
#define BIO_R_BAD_FOPEN_MODE 100 | |||
#define BIO_R_BROKEN_PIPE 101 | |||
#define BIO_R_CONNECT_ERROR 102 | |||
@@ -839,35 +839,6 @@ OPENSSL_EXPORT BIGNUM *get_rfc3526_prime_1536(BIGNUM *bn); | |||
} /* extern C */ | |||
#endif | |||
#define BN_F_BN_CTX_get 100 | |||
#define BN_F_BN_CTX_new 101 | |||
#define BN_F_BN_CTX_start 102 | |||
#define BN_F_BN_bn2dec 103 | |||
#define BN_F_BN_bn2hex 104 | |||
#define BN_F_BN_div 105 | |||
#define BN_F_BN_div_recp 106 | |||
#define BN_F_BN_exp 107 | |||
#define BN_F_BN_generate_dsa_nonce 108 | |||
#define BN_F_BN_generate_prime_ex 109 | |||
#define BN_F_BN_mod_exp2_mont 110 | |||
#define BN_F_BN_mod_exp_mont 111 | |||
#define BN_F_BN_mod_exp_mont_consttime 112 | |||
#define BN_F_BN_mod_exp_mont_word 113 | |||
#define BN_F_BN_mod_inverse 114 | |||
#define BN_F_BN_mod_inverse_no_branch 115 | |||
#define BN_F_BN_mod_lshift_quick 116 | |||
#define BN_F_BN_mod_sqrt 117 | |||
#define BN_F_BN_new 118 | |||
#define BN_F_BN_rand 119 | |||
#define BN_F_BN_rand_range 120 | |||
#define BN_F_BN_sqrt 121 | |||
#define BN_F_BN_usub 122 | |||
#define BN_F_bn_wexpand 123 | |||
#define BN_F_mod_exp_recp 124 | |||
#define BN_F_BN_lshift 125 | |||
#define BN_F_BN_rshift 126 | |||
#define BN_F_BN_bn2cbb 127 | |||
#define BN_F_BN_cbs2unsigned 128 | |||
#define BN_R_ARG2_LT_ARG3 100 | |||
#define BN_R_BAD_RECIPROCAL 101 | |||
#define BN_R_BIGNUM_TOO_LONG 102 | |||
@@ -115,9 +115,4 @@ OPENSSL_EXPORT size_t BUF_strlcat(char *dst, const char *src, size_t size); | |||
} /* extern C */ | |||
#endif | |||
#define BUF_F_BUF_MEM_new 100 | |||
#define BUF_F_BUF_memdup 101 | |||
#define BUF_F_BUF_strndup 102 | |||
#define BUF_F_buf_mem_grow 103 | |||
#endif /* OPENSSL_HEADER_BUFFER_H */ |
@@ -533,41 +533,6 @@ struct evp_cipher_st { | |||
} /* extern C */ | |||
#endif | |||
#define CIPHER_F_EVP_AEAD_CTX_init 100 | |||
#define CIPHER_F_EVP_AEAD_CTX_open 101 | |||
#define CIPHER_F_EVP_AEAD_CTX_seal 102 | |||
#define CIPHER_F_EVP_CIPHER_CTX_copy 103 | |||
#define CIPHER_F_EVP_CIPHER_CTX_ctrl 104 | |||
#define CIPHER_F_EVP_CIPHER_CTX_set_key_length 105 | |||
#define CIPHER_F_EVP_CipherInit_ex 106 | |||
#define CIPHER_F_EVP_DecryptFinal_ex 107 | |||
#define CIPHER_F_EVP_EncryptFinal_ex 108 | |||
#define CIPHER_F_aead_aes_gcm_init 109 | |||
#define CIPHER_F_aead_aes_gcm_open 110 | |||
#define CIPHER_F_aead_aes_gcm_seal 111 | |||
#define CIPHER_F_aead_aes_key_wrap_init 112 | |||
#define CIPHER_F_aead_aes_key_wrap_open 113 | |||
#define CIPHER_F_aead_aes_key_wrap_seal 114 | |||
#define CIPHER_F_aead_chacha20_poly1305_init 115 | |||
#define CIPHER_F_aead_chacha20_poly1305_open 116 | |||
#define CIPHER_F_aead_chacha20_poly1305_seal 117 | |||
#define CIPHER_F_aead_rc4_md5_tls_init 118 | |||
#define CIPHER_F_aead_rc4_md5_tls_open 119 | |||
#define CIPHER_F_aead_rc4_md5_tls_seal 120 | |||
#define CIPHER_F_aead_ssl3_ensure_cipher_init 121 | |||
#define CIPHER_F_aead_ssl3_init 122 | |||
#define CIPHER_F_aead_ssl3_open 123 | |||
#define CIPHER_F_aead_ssl3_seal 124 | |||
#define CIPHER_F_aead_tls_ensure_cipher_init 125 | |||
#define CIPHER_F_aead_tls_init 126 | |||
#define CIPHER_F_aead_tls_open 127 | |||
#define CIPHER_F_aead_tls_seal 128 | |||
#define CIPHER_F_aes_init_key 129 | |||
#define CIPHER_F_aesni_init_key 130 | |||
#define CIPHER_F_EVP_AEAD_CTX_init_with_direction 131 | |||
#define CIPHER_F_aead_aes_ctr_hmac_sha256_init 132 | |||
#define CIPHER_F_aead_aes_ctr_hmac_sha256_open 133 | |||
#define CIPHER_F_aead_aes_ctr_hmac_sha256_seal 134 | |||
#define CIPHER_R_AES_KEY_SETUP_FAILED 100 | |||
#define CIPHER_R_BAD_DECRYPT 101 | |||
#define CIPHER_R_BAD_KEY_LENGTH 102 | |||
@@ -135,10 +135,6 @@ int CONF_parse_list(const char *list, char sep, int remove_whitespace, | |||
} /* extern C */ | |||
#endif | |||
#define CONF_F_CONF_parse_list 100 | |||
#define CONF_F_NCONF_load 101 | |||
#define CONF_F_def_load_bio 102 | |||
#define CONF_F_str_copy 103 | |||
#define CONF_R_LIST_CANNOT_BE_NULL 100 | |||
#define CONF_R_MISSING_CLOSE_SQUARE_BRACKET 101 | |||
#define CONF_R_MISSING_EQUAL_SIGN 102 | |||
@@ -55,9 +55,4 @@ OPENSSL_EXPORT unsigned long SSLeay(void); | |||
} /* extern C */ | |||
#endif | |||
#define CRYPTO_F_CRYPTO_get_ex_new_index 100 | |||
#define CRYPTO_F_CRYPTO_set_ex_data 101 | |||
#define CRYPTO_F_get_class 102 | |||
#define CRYPTO_F_get_func_pointers 103 | |||
#endif /* OPENSSL_HEADER_CRYPTO_H */ |
@@ -262,10 +262,6 @@ struct dh_st { | |||
} /* extern C */ | |||
#endif | |||
#define DH_F_DH_new_method 100 | |||
#define DH_F_compute_key 101 | |||
#define DH_F_generate_key 102 | |||
#define DH_F_generate_parameters 103 | |||
#define DH_R_BAD_GENERATOR 100 | |||
#define DH_R_INVALID_PUBKEY 101 | |||
#define DH_R_MODULUS_TOO_LARGE 102 | |||
@@ -252,8 +252,6 @@ struct env_md_ctx_st { | |||
} /* extern C */ | |||
#endif | |||
#define DIGEST_F_EVP_DigestInit_ex 100 | |||
#define DIGEST_F_EVP_MD_CTX_copy_ex 101 | |||
#define DIGEST_R_INPUT_NOT_INITIALIZED 100 | |||
#endif /* OPENSSL_HEADER_DIGEST_H */ |
@@ -366,11 +366,6 @@ struct dsa_st { | |||
} /* extern C */ | |||
#endif | |||
#define DSA_F_DSA_new_method 100 | |||
#define DSA_F_dsa_sig_cb 101 | |||
#define DSA_F_sign 102 | |||
#define DSA_F_sign_setup 103 | |||
#define DSA_F_verify 104 | |||
#define DSA_R_BAD_Q_VALUE 100 | |||
#define DSA_R_MISSING_PARAMETERS 101 | |||
#define DSA_R_MODULUS_TOO_LARGE 102 | |||
@@ -334,73 +334,6 @@ OPENSSL_EXPORT void EC_GROUP_set_point_conversion_form( | |||
} /* extern C */ | |||
#endif | |||
#define EC_F_EC_GROUP_copy 100 | |||
#define EC_F_EC_GROUP_get_curve_GFp 101 | |||
#define EC_F_EC_GROUP_get_degree 102 | |||
#define EC_F_EC_GROUP_new_by_curve_name 103 | |||
#define EC_F_EC_KEY_check_key 104 | |||
#define EC_F_EC_KEY_copy 105 | |||
#define EC_F_EC_KEY_generate_key 106 | |||
#define EC_F_EC_KEY_new_method 107 | |||
#define EC_F_EC_KEY_set_public_key_affine_coordinates 108 | |||
#define EC_F_EC_POINT_add 109 | |||
#define EC_F_EC_POINT_cmp 110 | |||
#define EC_F_EC_POINT_copy 111 | |||
#define EC_F_EC_POINT_dbl 112 | |||
#define EC_F_EC_POINT_dup 113 | |||
#define EC_F_EC_POINT_get_affine_coordinates_GFp 114 | |||
#define EC_F_EC_POINT_invert 115 | |||
#define EC_F_EC_POINT_is_at_infinity 116 | |||
#define EC_F_EC_POINT_is_on_curve 117 | |||
#define EC_F_EC_POINT_make_affine 118 | |||
#define EC_F_EC_POINT_new 119 | |||
#define EC_F_EC_POINT_oct2point 120 | |||
#define EC_F_EC_POINT_point2oct 121 | |||
#define EC_F_EC_POINT_set_affine_coordinates_GFp 122 | |||
#define EC_F_EC_POINT_set_compressed_coordinates_GFp 123 | |||
#define EC_F_EC_POINT_set_to_infinity 124 | |||
#define EC_F_EC_POINTs_make_affine 125 | |||
#define EC_F_compute_wNAF 126 | |||
#define EC_F_d2i_ECPKParameters 127 | |||
#define EC_F_d2i_ECParameters 128 | |||
#define EC_F_d2i_ECPrivateKey 129 | |||
#define EC_F_ec_GFp_mont_field_decode 130 | |||
#define EC_F_ec_GFp_mont_field_encode 131 | |||
#define EC_F_ec_GFp_mont_field_mul 132 | |||
#define EC_F_ec_GFp_mont_field_set_to_one 133 | |||
#define EC_F_ec_GFp_mont_field_sqr 134 | |||
#define EC_F_ec_GFp_mont_group_set_curve 135 | |||
#define EC_F_ec_GFp_simple_group_check_discriminant 136 | |||
#define EC_F_ec_GFp_simple_group_set_curve 137 | |||
#define EC_F_ec_GFp_simple_make_affine 138 | |||
#define EC_F_ec_GFp_simple_oct2point 139 | |||
#define EC_F_ec_GFp_simple_point2oct 140 | |||
#define EC_F_ec_GFp_simple_point_get_affine_coordinates 141 | |||
#define EC_F_ec_GFp_simple_point_set_affine_coordinates 142 | |||
#define EC_F_ec_GFp_simple_points_make_affine 143 | |||
#define EC_F_ec_GFp_simple_set_compressed_coordinates 144 | |||
#define EC_F_ec_asn1_group2pkparameters 145 | |||
#define EC_F_ec_asn1_pkparameters2group 146 | |||
#define EC_F_ec_group_new 147 | |||
#define EC_F_ec_group_new_curve_GFp 148 | |||
#define EC_F_ec_group_new_from_data 149 | |||
#define EC_F_ec_point_set_Jprojective_coordinates_GFp 150 | |||
#define EC_F_ec_pre_comp_new 151 | |||
#define EC_F_ec_wNAF_mul 152 | |||
#define EC_F_ec_wNAF_precompute_mult 153 | |||
#define EC_F_i2d_ECPKParameters 154 | |||
#define EC_F_i2d_ECParameters 155 | |||
#define EC_F_i2d_ECPrivateKey 156 | |||
#define EC_F_i2o_ECPublicKey 157 | |||
#define EC_F_o2i_ECPublicKey 158 | |||
#define EC_F_BN_to_felem 159 | |||
#define EC_F_ec_GFp_nistp256_group_set_curve 160 | |||
#define EC_F_ec_GFp_nistp256_point_get_affine_coordinates 161 | |||
#define EC_F_ec_GFp_nistp256_points_mul 162 | |||
#define EC_F_ec_group_copy 163 | |||
#define EC_F_nistp256_pre_comp_new 164 | |||
#define EC_F_EC_KEY_new_by_curve_name 165 | |||
#define EC_F_EC_GROUP_new_curve_GFp 166 | |||
#define EC_R_BUFFER_TOO_SMALL 100 | |||
#define EC_R_COORDINATES_OUT_OF_RANGE 101 | |||
#define EC_R_D2I_ECPKPARAMETERS_FAILURE 102 | |||
@@ -95,7 +95,6 @@ OPENSSL_EXPORT int ECDH_compute_key(void *out, size_t outlen, | |||
} /* extern C */ | |||
#endif | |||
#define ECDH_F_ECDH_compute_key 100 | |||
#define ECDH_R_KDF_FAILED 100 | |||
#define ECDH_R_NO_PRIVATE_VALUE 101 | |||
#define ECDH_R_POINT_ARITHMETIC_FAILURE 102 | |||
@@ -196,18 +196,6 @@ OPENSSL_EXPORT int i2d_ECDSA_SIG(const ECDSA_SIG *sig, uint8_t **outp); | |||
} /* extern C */ | |||
#endif | |||
#define ECDSA_F_ECDSA_do_sign_ex 100 | |||
#define ECDSA_F_ECDSA_do_verify 101 | |||
#define ECDSA_F_ECDSA_sign_ex 102 | |||
#define ECDSA_F_digest_to_bn 103 | |||
#define ECDSA_F_ecdsa_sign_setup 104 | |||
#define ECDSA_F_d2i_ECDSA_SIG 105 | |||
#define ECDSA_F_ECDSA_SIG_from_bytes 106 | |||
#define ECDSA_F_ECDSA_SIG_marshal 107 | |||
#define ECDSA_F_ECDSA_SIG_parse 108 | |||
#define ECDSA_F_ECDSA_SIG_to_bytes 109 | |||
#define ECDSA_F_ECDSA_verify 110 | |||
#define ECDSA_F_i2d_ECDSA_SIG 112 | |||
#define ECDSA_R_BAD_SIGNATURE 100 | |||
#define ECDSA_R_MISSING_PARAMETERS 101 | |||
#define ECDSA_R_NEED_NEW_SETUP_VALUES 102 | |||
@@ -126,12 +126,11 @@ extern "C" { | |||
* | |||
* Each error contains: | |||
* 1) The library (i.e. ec, pem, rsa) which created it. | |||
* 2) A function identifier and reason code. | |||
* 3) The file and line number of the call that added the error. | |||
* 4) A pointer to some error specific data, which may be NULL. | |||
* 2) The function, file, and line number of the call that added the error. | |||
* 3) A pointer to some error specific data, which may be NULL. | |||
* | |||
* The library identifier, function identifier and reason code are packed in a | |||
* uint32_t and there exist various functions for unpacking it. | |||
* The library identifier and reason code are packed in a uint32_t and there | |||
* exist various functions for unpacking it. | |||
* | |||
* The typical behaviour is that an error will occur deep in a call queue and | |||
* that code will push an error onto the error queue. As the error queue | |||
@@ -184,6 +183,10 @@ OPENSSL_EXPORT uint32_t ERR_peek_error_line(const char **file, int *line); | |||
OPENSSL_EXPORT uint32_t ERR_peek_error_line_data(const char **file, int *line, | |||
const char **data, int *flags); | |||
/* ERR_peek_function returns the name of the function which added the least | |||
* recent error or NULL if the queue is empty. */ | |||
OPENSSL_EXPORT const char *ERR_peek_function(void); | |||
/* The "peek last" functions act like the "peek" functions, above, except that | |||
* they return the most recent error. */ | |||
OPENSSL_EXPORT uint32_t ERR_peek_last_error(void); | |||
@@ -202,10 +205,10 @@ OPENSSL_EXPORT uint32_t ERR_peek_last_error_line_data(const char **file, | |||
* | |||
* The string will have the following format: | |||
* | |||
* error:[error code]:[library name]:[function name]:[reason string] | |||
* error:[error code]:[library name]:OPENSSL_internal:[reason string] | |||
* | |||
* error code is an 8 digit hexadecimal number; library name, function name | |||
* and reason string are ASCII text. | |||
* error code is an 8 digit hexadecimal number; library name and reason string | |||
* are ASCII text. | |||
* | |||
* TODO(fork): remove in favour of |ERR_error_string_n|. */ | |||
OPENSSL_EXPORT char *ERR_error_string(uint32_t packed_error, char *buf); | |||
@@ -222,10 +225,6 @@ OPENSSL_EXPORT void ERR_error_string_n(uint32_t packed_error, char *buf, | |||
* generated |packed_error|. */ | |||
OPENSSL_EXPORT const char *ERR_lib_error_string(uint32_t packed_error); | |||
/* ERR_func_error_string returns a string representation of the function that | |||
* generated |packed_error|. */ | |||
OPENSSL_EXPORT const char *ERR_func_error_string(uint32_t packed_error); | |||
/* ERR_reason_error_string returns a string representation of the reason for | |||
* |packed_error|. */ | |||
OPENSSL_EXPORT const char *ERR_reason_error_string(uint32_t packed_error); | |||
@@ -290,27 +289,38 @@ OPENSSL_EXPORT int ERR_get_next_error_library(void); | |||
/* ERR_remove_state calls |ERR_clear_error|. */ | |||
OPENSSL_EXPORT void ERR_remove_state(unsigned long pid); | |||
/* ERR_func_error_string returns the string "OPENSSL_internal". */ | |||
OPENSSL_EXPORT const char *ERR_func_error_string(uint32_t packed_error); | |||
/* Private functions. */ | |||
/* ERR_clear_system_error clears the system's error value (i.e. errno). */ | |||
OPENSSL_EXPORT void ERR_clear_system_error(void); | |||
#if defined(OPENSSL_WINDOWS) | |||
/* TODO(davidben): Use |__func__| directly once the minimum MSVC version | |||
* supports it. */ | |||
#define OPENSSL_CURRENT_FUNCTION __FUNCTION__ | |||
#else | |||
#define OPENSSL_CURRENT_FUNCTION __func__ | |||
#endif | |||
/* OPENSSL_PUT_ERROR is used by OpenSSL code to add an error to the error | |||
* queue. */ | |||
#define OPENSSL_PUT_ERROR(library, func, reason) \ | |||
ERR_put_error(ERR_LIB_##library, library##_F_##func, reason, __FILE__, \ | |||
#define OPENSSL_PUT_ERROR(library, func, reason) \ | |||
ERR_put_error(ERR_LIB_##library, reason, OPENSSL_CURRENT_FUNCTION, __FILE__, \ | |||
__LINE__) | |||
/* OPENSSL_PUT_SYSTEM_ERROR is used by OpenSSL code to add an error from the | |||
* operating system to the error queue. */ | |||
/* TODO(fork): include errno. */ | |||
#define OPENSSL_PUT_SYSTEM_ERROR(func) \ | |||
ERR_put_error(ERR_LIB_SYS, SYS_F_##func, 0, __FILE__, __LINE__); | |||
ERR_put_error(ERR_LIB_SYS, 0, #func, __FILE__, __LINE__); | |||
/* ERR_put_error adds an error to the error queue, dropping the least recent | |||
* error if neccessary for space reasons. */ | |||
OPENSSL_EXPORT void ERR_put_error(int library, int func, int reason, | |||
OPENSSL_EXPORT void ERR_put_error(int library, int reason, const char *function, | |||
const char *file, unsigned line); | |||
/* ERR_add_error_data takes a variable number (|count|) of const char* | |||
@@ -333,6 +343,8 @@ OPENSSL_EXPORT int ERR_set_mark(void); | |||
OPENSSL_EXPORT int ERR_pop_to_mark(void); | |||
struct err_error_st { | |||
/* function contains the name of the function where the error occured. */ | |||
const char *function; | |||
/* file contains the filename where the error occured. */ | |||
const char *file; | |||
/* data contains optional data. It must be freed with |OPENSSL_free| if | |||
@@ -469,22 +481,11 @@ enum { | |||
#define ERR_R_INTERNAL_ERROR (4 | ERR_R_FATAL) | |||
#define ERR_R_OVERFLOW (5 | ERR_R_FATAL) | |||
/* System error functions */ | |||
#define SYS_F_fopen 100 | |||
#define SYS_F_fclose 101 | |||
#define SYS_F_fread 102 | |||
#define SYS_F_fwrite 103 | |||
#define SYS_F_socket 104 | |||
#define SYS_F_setsockopt 105 | |||
#define SYS_F_connect 106 | |||
#define SYS_F_getaddrinfo 107 | |||
#define ERR_PACK(lib, func, reason) \ | |||
(((((uint32_t)lib) & 0xff) << 24) | ((((uint32_t)func) & 0xfff) << 12) | \ | |||
((((uint32_t)reason) & 0xfff))) | |||
#define ERR_PACK(lib, reason) \ | |||
(((((uint32_t)lib) & 0xff) << 24) | ((((uint32_t)reason) & 0xfff))) | |||
#define ERR_GET_LIB(packed_error) ((int)(((packed_error) >> 24) & 0xff)) | |||
#define ERR_GET_FUNC(packed_error) ((int)(((packed_error) >> 12) & 0xfff)) | |||
#define ERR_GET_FUNC(packed_error) 0 | |||
#define ERR_GET_REASON(packed_error) ((int)((packed_error) & 0xfff)) | |||
/* OPENSSL_DECLARE_ERROR_REASON is used by util/make_errors.h (which generates | |||
@@ -494,13 +495,6 @@ enum { | |||
* ${lib}_R_${reason}. */ | |||
#define OPENSSL_DECLARE_ERROR_REASON(lib, reason) | |||
/* OPENSSL_DECLARE_ERROR_FUNCTION is used by util/make_errors.h (which | |||
* generates the error * defines to recognise that an additional function value | |||
* is needed. This is * needed when the function value is used outside of an | |||
* |OPENSSL_PUT_ERROR| * macro. The resulting define will be | |||
* ${lib}_F_${reason}. */ | |||
#define OPENSSL_DECLARE_ERROR_FUNCTION(lib, function_name) | |||
#if defined(__cplusplus) | |||
} /* extern C */ | |||
@@ -692,74 +692,6 @@ struct evp_pkey_st { | |||
} /* extern C */ | |||
#endif | |||
#define EVP_F_EVP_PKEY_derive_init 108 | |||
#define EVP_F_EVP_PKEY_encrypt 110 | |||
#define EVP_F_EVP_PKEY_encrypt_init 111 | |||
#define EVP_F_EVP_PKEY_get1_DH 112 | |||
#define EVP_F_EVP_PKEY_get1_EC_KEY 114 | |||
#define EVP_F_EVP_PKEY_get1_RSA 115 | |||
#define EVP_F_EVP_PKEY_keygen 116 | |||
#define EVP_F_EVP_PKEY_sign 120 | |||
#define EVP_F_EVP_PKEY_sign_init 121 | |||
#define EVP_F_EVP_PKEY_verify 122 | |||
#define EVP_F_EVP_PKEY_verify_init 123 | |||
#define EVP_F_d2i_AutoPrivateKey 125 | |||
#define EVP_F_d2i_PrivateKey 126 | |||
#define EVP_F_do_EC_KEY_print 127 | |||
#define EVP_F_do_sigver_init 129 | |||
#define EVP_F_eckey_param2type 130 | |||
#define EVP_F_eckey_param_decode 131 | |||
#define EVP_F_eckey_priv_decode 132 | |||
#define EVP_F_eckey_priv_encode 133 | |||
#define EVP_F_eckey_pub_decode 134 | |||
#define EVP_F_eckey_pub_encode 135 | |||
#define EVP_F_eckey_type2param 136 | |||
#define EVP_F_evp_pkey_ctx_new 137 | |||
#define EVP_F_hmac_signctx 138 | |||
#define EVP_F_i2d_PublicKey 139 | |||
#define EVP_F_old_ec_priv_decode 140 | |||
#define EVP_F_old_rsa_priv_decode 141 | |||
#define EVP_F_pkey_ec_ctrl 142 | |||
#define EVP_F_pkey_ec_derive 143 | |||
#define EVP_F_pkey_ec_keygen 144 | |||
#define EVP_F_pkey_ec_paramgen 145 | |||
#define EVP_F_pkey_ec_sign 146 | |||
#define EVP_F_pkey_rsa_ctrl 147 | |||
#define EVP_F_pkey_rsa_decrypt 148 | |||
#define EVP_F_pkey_rsa_encrypt 149 | |||
#define EVP_F_pkey_rsa_sign 150 | |||
#define EVP_F_rsa_algor_to_md 151 | |||
#define EVP_F_rsa_digest_verify_init_from_algorithm 152 | |||
#define EVP_F_rsa_mgf1_to_md 153 | |||
#define EVP_F_rsa_priv_decode 154 | |||
#define EVP_F_rsa_priv_encode 155 | |||
#define EVP_F_rsa_pss_to_ctx 156 | |||
#define EVP_F_rsa_pub_decode 157 | |||
#define EVP_F_pkey_hmac_ctrl 158 | |||
#define EVP_F_EVP_PKEY_CTX_get0_rsa_oaep_label 159 | |||
#define EVP_F_EVP_DigestSignAlgorithm 160 | |||
#define EVP_F_EVP_DigestVerifyInitFromAlgorithm 161 | |||
#define EVP_F_EVP_PKEY_CTX_ctrl 162 | |||
#define EVP_F_EVP_PKEY_CTX_dup 163 | |||
#define EVP_F_EVP_PKEY_copy_parameters 164 | |||
#define EVP_F_EVP_PKEY_decrypt 165 | |||
#define EVP_F_EVP_PKEY_decrypt_init 166 | |||
#define EVP_F_EVP_PKEY_derive 167 | |||
#define EVP_F_EVP_PKEY_derive_set_peer 168 | |||
#define EVP_F_EVP_PKEY_get1_DSA 169 | |||
#define EVP_F_EVP_PKEY_keygen_init 170 | |||
#define EVP_F_EVP_PKEY_new 171 | |||
#define EVP_F_EVP_PKEY_set_type 172 | |||
#define EVP_F_check_padding_md 173 | |||
#define EVP_F_do_dsa_print 174 | |||
#define EVP_F_do_rsa_print 175 | |||
#define EVP_F_dsa_param_decode 176 | |||
#define EVP_F_dsa_priv_decode 177 | |||
#define EVP_F_dsa_priv_encode 178 | |||
#define EVP_F_dsa_pub_decode 179 | |||
#define EVP_F_dsa_pub_encode 180 | |||
#define EVP_F_dsa_sig_print 181 | |||
#define EVP_F_old_dsa_priv_decode 182 | |||
#define EVP_R_BUFFER_TOO_SMALL 100 | |||
#define EVP_R_COMMAND_NOT_SUPPORTED 101 | |||
#define EVP_R_DIFFERENT_KEY_TYPES 104 | |||
@@ -39,7 +39,6 @@ OPENSSL_EXPORT int HKDF(uint8_t *out_key, size_t out_len, const EVP_MD *digest, | |||
} /* extern C */ | |||
#endif | |||
#define HKDF_F_HKDF 100 | |||
#define HKDF_R_OUTPUT_TOO_LARGE 100 | |||
#endif /* OPENSSL_HEADER_HKDF_H */ |
@@ -193,10 +193,6 @@ OPENSSL_EXPORT int OBJ_find_sigid_by_algs(int *out_sign_nid, int digest_nid, | |||
} /* extern C */ | |||
#endif | |||
#define OBJ_F_OBJ_create 100 | |||
#define OBJ_F_OBJ_dup 101 | |||
#define OBJ_F_OBJ_nid2obj 102 | |||
#define OBJ_F_OBJ_txt2obj 103 | |||
#define OBJ_R_UNKNOWN_NID 100 | |||
#endif /* OPENSSL_HEADER_OBJECTS_H */ |
@@ -502,30 +502,6 @@ void ERR_load_PEM_strings(void); | |||
} | |||
#endif | |||
#define PEM_F_PEM_ASN1_read 100 | |||
#define PEM_F_PEM_ASN1_read_bio 101 | |||
#define PEM_F_PEM_ASN1_write 102 | |||
#define PEM_F_PEM_ASN1_write_bio 103 | |||
#define PEM_F_PEM_X509_INFO_read 104 | |||
#define PEM_F_PEM_X509_INFO_read_bio 105 | |||
#define PEM_F_PEM_X509_INFO_write_bio 106 | |||
#define PEM_F_PEM_do_header 107 | |||
#define PEM_F_PEM_get_EVP_CIPHER_INFO 108 | |||
#define PEM_F_PEM_read 109 | |||
#define PEM_F_PEM_read_DHparams 110 | |||
#define PEM_F_PEM_read_PrivateKey 111 | |||
#define PEM_F_PEM_read_bio 112 | |||
#define PEM_F_PEM_read_bio_DHparams 113 | |||
#define PEM_F_PEM_read_bio_Parameters 114 | |||
#define PEM_F_PEM_read_bio_PrivateKey 115 | |||
#define PEM_F_PEM_write 116 | |||
#define PEM_F_PEM_write_PrivateKey 117 | |||
#define PEM_F_PEM_write_bio 118 | |||
#define PEM_F_d2i_PKCS8PrivateKey_bio 119 | |||
#define PEM_F_d2i_PKCS8PrivateKey_fp 120 | |||
#define PEM_F_do_pk8pkey 121 | |||
#define PEM_F_do_pk8pkey_fp 122 | |||
#define PEM_F_load_iv 123 | |||
#define PEM_R_BAD_BASE64_DECODE 100 | |||
#define PEM_R_BAD_DECRYPT 101 | |||
#define PEM_R_BAD_END_LINE 102 | |||
@@ -170,24 +170,6 @@ OPENSSL_EXPORT void PKCS12_free(PKCS12 *p12); | |||
} /* extern C */ | |||
#endif | |||
#define PKCS8_F_EVP_PKCS82PKEY 100 | |||
#define PKCS8_F_EVP_PKEY2PKCS8 101 | |||
#define PKCS8_F_PKCS12_get_key_and_certs 102 | |||
#define PKCS8_F_PKCS12_handle_content_info 103 | |||
#define PKCS8_F_PKCS12_handle_content_infos 104 | |||
#define PKCS8_F_PKCS5_pbe2_set_iv 105 | |||
#define PKCS8_F_PKCS5_pbe_set 106 | |||
#define PKCS8_F_PKCS5_pbe_set0_algor 107 | |||
#define PKCS8_F_PKCS5_pbkdf2_set 108 | |||
#define PKCS8_F_PKCS8_decrypt 109 | |||
#define PKCS8_F_PKCS8_encrypt 110 | |||
#define PKCS8_F_PKCS8_encrypt_pbe 111 | |||
#define PKCS8_F_pbe_cipher_init 112 | |||
#define PKCS8_F_pbe_crypt 113 | |||
#define PKCS8_F_pkcs12_item_decrypt_d2i 114 | |||
#define PKCS8_F_pkcs12_item_i2d_encrypt 115 | |||
#define PKCS8_F_pkcs12_key_gen_raw 116 | |||
#define PKCS8_F_pkcs12_pbe_keyivgen 117 | |||
#define PKCS8_R_BAD_PKCS12_DATA 100 | |||
#define PKCS8_R_BAD_PKCS12_VERSION 101 | |||
#define PKCS8_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER 102 | |||
@@ -573,47 +573,6 @@ struct rsa_st { | |||
} /* extern C */ | |||
#endif | |||
#define RSA_F_BN_BLINDING_convert_ex 100 | |||
#define RSA_F_BN_BLINDING_create_param 101 | |||
#define RSA_F_BN_BLINDING_invert_ex 102 | |||
#define RSA_F_BN_BLINDING_new 103 | |||
#define RSA_F_BN_BLINDING_update 104 | |||
#define RSA_F_RSA_check_key 105 | |||
#define RSA_F_RSA_new_method 106 | |||
#define RSA_F_RSA_padding_add_PKCS1_OAEP_mgf1 107 | |||
#define RSA_F_RSA_padding_add_PKCS1_PSS_mgf1 108 | |||
#define RSA_F_RSA_padding_add_PKCS1_type_1 109 | |||
#define RSA_F_RSA_padding_add_PKCS1_type_2 110 | |||
#define RSA_F_RSA_padding_add_none 111 | |||
#define RSA_F_RSA_padding_check_PKCS1_OAEP_mgf1 112 | |||
#define RSA_F_RSA_padding_check_PKCS1_type_1 113 | |||
#define RSA_F_RSA_padding_check_PKCS1_type_2 114 | |||
#define RSA_F_RSA_padding_check_none 115 | |||
#define RSA_F_RSA_recover_crt_params 116 | |||
#define RSA_F_RSA_sign 117 | |||
#define RSA_F_RSA_verify 118 | |||
#define RSA_F_RSA_verify_PKCS1_PSS_mgf1 119 | |||
#define RSA_F_decrypt 120 | |||
#define RSA_F_encrypt 121 | |||
#define RSA_F_keygen 122 | |||
#define RSA_F_RSA_add_pkcs1_prefix 123 | |||
#define RSA_F_private_transform 124 | |||
#define RSA_F_rsa_setup_blinding 125 | |||
#define RSA_F_sign_raw 126 | |||
#define RSA_F_verify_raw 127 | |||
#define RSA_F_keygen_multiprime 128 | |||
#define RSA_F_RSA_marshal_public_key 129 | |||
#define RSA_F_RSA_parse_public_key 130 | |||
#define RSA_F_RSA_public_key_from_bytes 131 | |||
#define RSA_F_RSA_public_key_to_bytes 132 | |||
#define RSA_F_i2d_RSAPublicKey 133 | |||
#define RSA_F_marshal_integer 134 | |||
#define RSA_F_RSA_marshal_private_key 135 | |||
#define RSA_F_RSA_parse_private_key 136 | |||
#define RSA_F_RSA_private_key_from_bytes 137 | |||
#define RSA_F_RSA_private_key_to_bytes 138 | |||
#define RSA_F_i2d_RSAPrivateKey 139 | |||
#define RSA_F_rsa_parse_additional_prime 140 | |||
#define RSA_R_BAD_E_VALUE 100 | |||
#define RSA_R_BAD_FIXED_HEADER_DECRYPT 101 | |||
#define RSA_R_BAD_PAD_BYTE_COUNT 102 | |||
@@ -2775,191 +2775,6 @@ OPENSSL_EXPORT const char *SSLeay_version(int unused); | |||
/* The following lines are auto generated by the script make_errors.go. Any | |||
* changes made after this point may be overwritten when the script is next run. | |||
*/ | |||
#define SSL_F_SSL_CTX_check_private_key 100 | |||
#define SSL_F_SSL_CTX_new 101 | |||
#define SSL_F_SSL_CTX_set_cipher_list 102 | |||
#define SSL_F_SSL_CTX_set_cipher_list_tls11 103 | |||
#define SSL_F_SSL_CTX_set_session_id_context 104 | |||
#define SSL_F_SSL_CTX_use_PrivateKey 105 | |||
#define SSL_F_SSL_CTX_use_PrivateKey_ASN1 106 | |||
#define SSL_F_SSL_CTX_use_PrivateKey_file 107 | |||
#define SSL_F_SSL_CTX_use_RSAPrivateKey 108 | |||
#define SSL_F_SSL_CTX_use_RSAPrivateKey_ASN1 109 | |||
#define SSL_F_SSL_CTX_use_RSAPrivateKey_file 110 | |||
#define SSL_F_SSL_CTX_use_certificate 111 | |||
#define SSL_F_SSL_CTX_use_certificate_ASN1 112 | |||
#define SSL_F_SSL_CTX_use_certificate_chain_file 113 | |||
#define SSL_F_SSL_CTX_use_certificate_file 114 | |||
#define SSL_F_SSL_CTX_use_psk_identity_hint 115 | |||
#define SSL_F_SSL_SESSION_new 116 | |||
#define SSL_F_SSL_SESSION_print_fp 117 | |||
#define SSL_F_SSL_SESSION_set1_id_context 118 | |||
#define SSL_F_SSL_SESSION_to_bytes_full 119 | |||
#define SSL_F_SSL_accept 120 | |||
#define SSL_F_SSL_add_dir_cert_subjects_to_stack 121 | |||
#define SSL_F_SSL_add_file_cert_subjects_to_stack 122 | |||
#define SSL_F_SSL_check_private_key 123 | |||
#define SSL_F_SSL_clear 124 | |||
#define SSL_F_SSL_connect 125 | |||
#define SSL_F_SSL_do_handshake 126 | |||
#define SSL_F_SSL_load_client_CA_file 127 | |||
#define SSL_F_SSL_new 128 | |||
#define SSL_F_SSL_peek 129 | |||
#define SSL_F_SSL_read 130 | |||
#define SSL_F_SSL_renegotiate 131 | |||
#define SSL_F_SSL_set_cipher_list 132 | |||
#define SSL_F_SSL_set_fd 133 | |||
#define SSL_F_SSL_set_rfd 134 | |||
#define SSL_F_SSL_set_session_id_context 135 | |||
#define SSL_F_SSL_set_wfd 136 | |||
#define SSL_F_SSL_shutdown 137 | |||
#define SSL_F_SSL_use_PrivateKey 138 | |||
#define SSL_F_SSL_use_PrivateKey_ASN1 139 | |||
#define SSL_F_SSL_use_PrivateKey_file 140 | |||
#define SSL_F_SSL_use_RSAPrivateKey 141 | |||
#define SSL_F_SSL_use_RSAPrivateKey_ASN1 142 | |||
#define SSL_F_SSL_use_RSAPrivateKey_file 143 | |||
#define SSL_F_SSL_use_certificate 144 | |||
#define SSL_F_SSL_use_certificate_ASN1 145 | |||
#define SSL_F_SSL_use_certificate_file 146 | |||
#define SSL_F_SSL_use_psk_identity_hint 147 | |||
#define SSL_F_SSL_write 148 | |||
#define SSL_F_d2i_SSL_SESSION 149 | |||
#define SSL_F_SSL_SESSION_parse_octet_string 150 | |||
#define SSL_F_SSL_SESSION_parse_string 151 | |||
#define SSL_F_do_ssl3_write 152 | |||
#define SSL_F_dtls1_accept 153 | |||
#define SSL_F_dtls1_buffer_record 154 | |||
#define SSL_F_dtls1_check_timeout_num 155 | |||
#define SSL_F_dtls1_connect 156 | |||
#define SSL_F_dtls1_do_write 157 | |||
#define SSL_F_dtls1_get_hello_verify 158 | |||
#define SSL_F_dtls1_get_message 159 | |||
#define SSL_F_dtls1_get_message_fragment 160 | |||
#define SSL_F_dtls1_preprocess_fragment 161 | |||
#define SSL_F_dtls1_process_record 162 | |||
#define SSL_F_dtls1_read_bytes 163 | |||
#define SSL_F_dtls1_send_hello_verify_request 164 | |||
#define SSL_F_dtls1_write_app_data 165 | |||
#define SSL_F_i2d_SSL_SESSION 166 | |||
#define SSL_F_ssl3_accept 167 | |||
#define SSL_F_ssl3_cert_verify_hash 169 | |||
#define SSL_F_ssl3_check_cert_and_algorithm 170 | |||
#define SSL_F_ssl3_connect 171 | |||
#define SSL_F_ssl3_ctrl 172 | |||
#define SSL_F_ssl3_ctx_ctrl 173 | |||
#define SSL_F_ssl3_digest_cached_records 174 | |||
#define SSL_F_ssl3_do_change_cipher_spec 175 | |||
#define SSL_F_ssl3_expect_change_cipher_spec 176 | |||
#define SSL_F_ssl3_get_cert_status 177 | |||
#define SSL_F_ssl3_get_cert_verify 178 | |||
#define SSL_F_ssl3_get_certificate_request 179 | |||
#define SSL_F_ssl3_get_channel_id 180 | |||
#define SSL_F_ssl3_get_client_certificate 181 | |||
#define SSL_F_ssl3_get_client_hello 182 | |||
#define SSL_F_ssl3_get_client_key_exchange 183 | |||
#define SSL_F_ssl3_get_finished 184 | |||
#define SSL_F_ssl3_get_initial_bytes 185 | |||
#define SSL_F_ssl3_get_message 186 | |||
#define SSL_F_ssl3_get_new_session_ticket 187 | |||
#define SSL_F_ssl3_get_next_proto 188 | |||
#define SSL_F_ssl3_get_record 189 | |||
#define SSL_F_ssl3_get_server_certificate 190 | |||
#define SSL_F_ssl3_get_server_done 191 | |||
#define SSL_F_ssl3_get_server_hello 192 | |||
#define SSL_F_ssl3_get_server_key_exchange 193 | |||
#define SSL_F_ssl3_get_v2_client_hello 194 | |||
#define SSL_F_ssl3_handshake_mac 195 | |||
#define SSL_F_ssl3_prf 196 | |||
#define SSL_F_ssl3_read_bytes 197 | |||
#define SSL_F_ssl3_read_n 198 | |||
#define SSL_F_ssl3_send_cert_verify 199 | |||
#define SSL_F_ssl3_send_certificate_request 200 | |||
#define SSL_F_ssl3_send_channel_id 201 | |||
#define SSL_F_ssl3_send_client_certificate 202 | |||
#define SSL_F_ssl3_send_client_hello 203 | |||
#define SSL_F_ssl3_send_client_key_exchange 204 | |||
#define SSL_F_ssl3_send_server_certificate 205 | |||
#define SSL_F_ssl3_send_server_hello 206 | |||
#define SSL_F_ssl3_send_server_key_exchange 207 | |||
#define SSL_F_ssl3_setup_read_buffer 208 | |||
#define SSL_F_ssl3_setup_write_buffer 209 | |||
#define SSL_F_ssl3_write_bytes 210 | |||
#define SSL_F_ssl3_write_pending 211 | |||
#define SSL_F_ssl_add_cert_chain 212 | |||
#define SSL_F_ssl_add_cert_to_buf 213 | |||
#define SSL_F_ssl_add_clienthello_renegotiate_ext 214 | |||
#define SSL_F_ssl_add_clienthello_tlsext 215 | |||
#define SSL_F_ssl_add_clienthello_use_srtp_ext 216 | |||
#define SSL_F_ssl_add_serverhello_renegotiate_ext 217 | |||
#define SSL_F_ssl_add_serverhello_tlsext 218 | |||
#define SSL_F_ssl_add_serverhello_use_srtp_ext 219 | |||
#define SSL_F_ssl_build_cert_chain 220 | |||
#define SSL_F_ssl_bytes_to_cipher_list 221 | |||
#define SSL_F_ssl_cert_dup 222 | |||
#define SSL_F_ssl_cert_inst 223 | |||
#define SSL_F_ssl_cert_new 224 | |||
#define SSL_F_ssl_check_serverhello_tlsext 225 | |||
#define SSL_F_ssl_check_srvr_ecc_cert_and_alg 226 | |||
#define SSL_F_ssl_cipher_process_rulestr 227 | |||
#define SSL_F_ssl_cipher_strength_sort 228 | |||
#define SSL_F_ssl_create_cipher_list 229 | |||
#define SSL_F_ssl_ctx_log_master_secret 230 | |||
#define SSL_F_ssl_ctx_log_rsa_client_key_exchange 231 | |||
#define SSL_F_ssl_ctx_make_profiles 232 | |||
#define SSL_F_ssl_get_new_session 233 | |||
#define SSL_F_ssl_get_prev_session 234 | |||
#define SSL_F_ssl_get_server_cert_index 235 | |||
#define SSL_F_ssl_get_sign_pkey 236 | |||
#define SSL_F_ssl_init_wbio_buffer 237 | |||
#define SSL_F_ssl_parse_clienthello_renegotiate_ext 238 | |||
#define SSL_F_ssl_parse_clienthello_tlsext 239 | |||
#define SSL_F_ssl_parse_clienthello_use_srtp_ext 240 | |||
#define SSL_F_ssl_parse_serverhello_renegotiate_ext 241 | |||
#define SSL_F_ssl_parse_serverhello_tlsext 242 | |||
#define SSL_F_ssl_parse_serverhello_use_srtp_ext 243 | |||
#define SSL_F_ssl_scan_clienthello_tlsext 244 | |||
#define SSL_F_ssl_scan_serverhello_tlsext 245 | |||
#define SSL_F_ssl_sess_cert_new 246 | |||
#define SSL_F_ssl_set_cert 247 | |||
#define SSL_F_ssl_set_pkey 248 | |||
#define SSL_F_ssl_verify_cert_chain 252 | |||
#define SSL_F_tls12_check_peer_sigalg 253 | |||
#define SSL_F_tls1_aead_ctx_init 254 | |||
#define SSL_F_tls1_cert_verify_mac 255 | |||
#define SSL_F_tls1_change_cipher_state 256 | |||
#define SSL_F_tls1_change_cipher_state_aead 257 | |||
#define SSL_F_tls1_check_duplicate_extensions 258 | |||
#define SSL_F_tls1_enc 259 | |||
#define SSL_F_tls1_export_keying_material 260 | |||
#define SSL_F_tls1_prf 261 | |||
#define SSL_F_tls1_setup_key_block 262 | |||
#define SSL_F_dtls1_get_buffered_message 263 | |||
#define SSL_F_dtls1_process_fragment 264 | |||
#define SSL_F_dtls1_hm_fragment_new 265 | |||
#define SSL_F_ssl3_seal_record 266 | |||
#define SSL_F_ssl3_record_sequence_update 267 | |||
#define SSL_F_SSL_CTX_set_tmp_dh 268 | |||
#define SSL_F_SSL_CTX_set_tmp_ecdh 269 | |||
#define SSL_F_SSL_set_tmp_dh 270 | |||
#define SSL_F_SSL_set_tmp_ecdh 271 | |||
#define SSL_F_SSL_CTX_set1_tls_channel_id 272 | |||
#define SSL_F_SSL_set1_tls_channel_id 273 | |||
#define SSL_F_SSL_set_tlsext_host_name 274 | |||
#define SSL_F_ssl3_output_cert_chain 275 | |||
#define SSL_F_SSL_AEAD_CTX_new 276 | |||
#define SSL_F_SSL_AEAD_CTX_open 277 | |||
#define SSL_F_SSL_AEAD_CTX_seal 278 | |||
#define SSL_F_dtls1_seal_record 279 | |||
#define SSL_F_SSL_SESSION_from_bytes 280 | |||
#define SSL_F_SSL_SESSION_parse 281 | |||
#define SSL_F_ssl3_check_certificate_for_cipher 282 | |||
#define SSL_F_SSL_CTX_get_tlsext_ticket_keys 283 | |||
#define SSL_F_SSL_CTX_set_tlsext_ticket_keys 284 | |||
#define SSL_F_ext_ri_parse_clienthello 285 | |||
#define SSL_F_ext_ri_parse_serverhello 286 | |||
#define SSL_F_ext_sigalgs_parse_clienthello 287 | |||
#define SSL_F_ext_sigalgs_parse_serverhello 288 | |||
#define SSL_R_APP_DATA_IN_HANDSHAKE 100 | |||
#define SSL_R_ATTEMPT_TO_REUSE_SESSION_IN_DIFFERENT_CONTEXT 101 | |||
#define SSL_R_BAD_ALERT 102 | |||
@@ -1217,67 +1217,6 @@ OPENSSL_EXPORT int PKCS7_get_PEM_CRLs(STACK_OF(X509_CRL) *out_crls, | |||
} | |||
#endif | |||
#define X509_F_ASN1_digest 100 | |||
#define X509_F_ASN1_item_sign_ctx 101 | |||
#define X509_F_ASN1_item_verify 102 | |||
#define X509_F_NETSCAPE_SPKI_b64_decode 103 | |||
#define X509_F_NETSCAPE_SPKI_b64_encode 104 | |||
#define X509_F_PKCS7_get_certificates 105 | |||
#define X509_F_X509_ATTRIBUTE_create_by_NID 106 | |||
#define X509_F_X509_ATTRIBUTE_create_by_OBJ 107 | |||
#define X509_F_X509_ATTRIBUTE_create_by_txt 108 | |||
#define X509_F_X509_ATTRIBUTE_get0_data 109 | |||
#define X509_F_X509_ATTRIBUTE_set1_data 110 | |||
#define X509_F_X509_CRL_add0_revoked 111 | |||
#define X509_F_X509_CRL_diff 112 | |||
#define X509_F_X509_CRL_print_fp 113 | |||
#define X509_F_X509_EXTENSION_create_by_NID 114 | |||
#define X509_F_X509_EXTENSION_create_by_OBJ 115 | |||
#define X509_F_X509_INFO_new 116 | |||
#define X509_F_X509_NAME_ENTRY_create_by_NID 117 | |||
#define X509_F_X509_NAME_ENTRY_create_by_txt 118 | |||
#define X509_F_X509_NAME_ENTRY_set_object 119 | |||
#define X509_F_X509_NAME_add_entry 120 | |||
#define X509_F_X509_NAME_oneline 121 | |||
#define X509_F_X509_NAME_print 122 | |||
#define X509_F_X509_PKEY_new 123 | |||
#define X509_F_X509_PUBKEY_get 124 | |||
#define X509_F_X509_PUBKEY_set 125 | |||
#define X509_F_X509_REQ_check_private_key 126 | |||
#define X509_F_X509_REQ_to_X509 127 | |||
#define X509_F_X509_STORE_CTX_get1_issuer 128 | |||
#define X509_F_X509_STORE_CTX_init 129 | |||
#define X509_F_X509_STORE_CTX_new 130 | |||
#define X509_F_X509_STORE_CTX_purpose_inherit 131 | |||
#define X509_F_X509_STORE_add_cert 132 | |||
#define X509_F_X509_STORE_add_crl 133 | |||
#define X509_F_X509_TRUST_add 134 | |||
#define X509_F_X509_TRUST_set 135 | |||
#define X509_F_X509_check_private_key 136 | |||
#define X509_F_X509_get_pubkey_parameters 137 | |||
#define X509_F_X509_load_cert_crl_file 138 | |||
#define X509_F_X509_load_cert_file 139 | |||
#define X509_F_X509_load_crl_file 140 | |||
#define X509_F_X509_print_ex_fp 141 | |||
#define X509_F_X509_to_X509_REQ 142 | |||
#define X509_F_X509_verify_cert 143 | |||
#define X509_F_X509at_add1_attr 144 | |||
#define X509_F_X509v3_add_ext 145 | |||
#define X509_F_add_cert_dir 146 | |||
#define X509_F_by_file_ctrl 147 | |||
#define X509_F_check_policy 148 | |||
#define X509_F_dir_ctrl 149 | |||
#define X509_F_get_cert_by_subject 150 | |||
#define X509_F_i2d_DSA_PUBKEY 151 | |||
#define X509_F_i2d_EC_PUBKEY 152 | |||
#define X509_F_i2d_RSA_PUBKEY 153 | |||
#define X509_F_x509_name_encode 154 | |||
#define X509_F_x509_name_ex_d2i 155 | |||
#define X509_F_x509_name_ex_new 156 | |||
#define X509_F_pkcs7_parse_header 157 | |||
#define X509_F_PKCS7_get_CRLs 158 | |||
#define X509_F_X509_REQ_print_ex 159 | |||
#define X509_F_X509_REQ_print_fp 160 | |||
#define X509_R_AKID_MISMATCH 100 | |||
#define X509_R_BAD_PKCS7_VERSION 101 | |||
#define X509_R_BAD_X509_FILETYPE 102 | |||
@@ -731,63 +731,6 @@ void ERR_load_X509V3_strings(void); | |||
#ifdef __cplusplus | |||
} | |||
#endif | |||
#define X509V3_F_SXNET_add_id_INTEGER 100 | |||
#define X509V3_F_SXNET_add_id_asc 101 | |||
#define X509V3_F_SXNET_add_id_ulong 102 | |||
#define X509V3_F_SXNET_get_id_asc 103 | |||
#define X509V3_F_SXNET_get_id_ulong 104 | |||
#define X509V3_F_X509V3_EXT_add 105 | |||
#define X509V3_F_X509V3_EXT_add_alias 106 | |||
#define X509V3_F_X509V3_EXT_free 107 | |||
#define X509V3_F_X509V3_EXT_i2d 108 | |||
#define X509V3_F_X509V3_EXT_nconf 109 | |||
#define X509V3_F_X509V3_add1_i2d 110 | |||
#define X509V3_F_X509V3_add_value 111 | |||
#define X509V3_F_X509V3_get_section 112 | |||
#define X509V3_F_X509V3_get_string 113 | |||
#define X509V3_F_X509V3_get_value_bool 114 | |||
#define X509V3_F_X509V3_parse_list 115 | |||
#define X509V3_F_X509_PURPOSE_add 116 | |||
#define X509V3_F_X509_PURPOSE_set 117 | |||
#define X509V3_F_a2i_GENERAL_NAME 118 | |||
#define X509V3_F_copy_email 119 | |||
#define X509V3_F_copy_issuer 120 | |||
#define X509V3_F_do_dirname 121 | |||
#define X509V3_F_do_ext_i2d 122 | |||
#define X509V3_F_do_ext_nconf 123 | |||
#define X509V3_F_gnames_from_sectname 124 | |||
#define X509V3_F_hex_to_string 125 | |||
#define X509V3_F_i2s_ASN1_ENUMERATED 126 | |||
#define X509V3_F_i2s_ASN1_IA5STRING 127 | |||
#define X509V3_F_i2s_ASN1_INTEGER 128 | |||
#define X509V3_F_i2v_AUTHORITY_INFO_ACCESS 129 | |||
#define X509V3_F_notice_section 130 | |||
#define X509V3_F_nref_nos 131 | |||
#define X509V3_F_policy_section 132 | |||
#define X509V3_F_process_pci_value 133 | |||
#define X509V3_F_r2i_certpol 134 | |||
#define X509V3_F_r2i_pci 135 | |||
#define X509V3_F_s2i_ASN1_IA5STRING 136 | |||
#define X509V3_F_s2i_ASN1_INTEGER 137 | |||
#define X509V3_F_s2i_ASN1_OCTET_STRING 138 | |||
#define X509V3_F_s2i_skey_id 139 | |||
#define X509V3_F_set_dist_point_name 140 | |||
#define X509V3_F_string_to_hex 141 | |||
#define X509V3_F_v2i_ASN1_BIT_STRING 142 | |||
#define X509V3_F_v2i_AUTHORITY_INFO_ACCESS 143 | |||
#define X509V3_F_v2i_AUTHORITY_KEYID 144 | |||
#define X509V3_F_v2i_BASIC_CONSTRAINTS 145 | |||
#define X509V3_F_v2i_EXTENDED_KEY_USAGE 146 | |||
#define X509V3_F_v2i_GENERAL_NAMES 147 | |||
#define X509V3_F_v2i_GENERAL_NAME_ex 148 | |||
#define X509V3_F_v2i_NAME_CONSTRAINTS 149 | |||
#define X509V3_F_v2i_POLICY_CONSTRAINTS 150 | |||
#define X509V3_F_v2i_POLICY_MAPPINGS 151 | |||
#define X509V3_F_v2i_crld 152 | |||
#define X509V3_F_v2i_idp 153 | |||
#define X509V3_F_v2i_issuer_alt 154 | |||
#define X509V3_F_v2i_subject_alt 155 | |||
#define X509V3_F_v3_generic_extension 156 | |||
#define X509V3_R_BAD_IP_ADDRESS 100 | |||
#define X509V3_R_BAD_OBJECT 101 | |||
#define X509V3_R_BN_DEC2BN_ERROR 102 | |||
@@ -25,7 +25,6 @@ import ( | |||
"sort" | |||
"strconv" | |||
"strings" | |||
"unicode" | |||
) | |||
// ssl.h reserves values 1000 and above for error codes corresponding to | |||
@@ -61,12 +60,11 @@ func makeErrors(reset bool) error { | |||
} | |||
prefix := strings.ToUpper(lib) | |||
functions, reasons, err := parseHeader(prefix, headerFile) | |||
reasons, err := parseHeader(prefix, headerFile) | |||
headerFile.Close() | |||
if reset { | |||
err = nil | |||
functions = make(map[string]int) | |||
// Retain any reason codes above reservedReasonCode. | |||
newReasons := make(map[string]int) | |||
for key, value := range reasons { | |||
@@ -97,12 +95,11 @@ func makeErrors(reset bool) error { | |||
continue | |||
} | |||
if err := addFunctionsAndReasons(functions, reasons, name, prefix); err != nil { | |||
if err := addReasons(reasons, name, prefix); err != nil { | |||
return err | |||
} | |||
} | |||
assignNewValues(functions, -1) | |||
assignNewValues(reasons, reservedReasonCode) | |||
headerFile, err = os.Open(headerPath) | |||
@@ -117,7 +114,7 @@ func makeErrors(reset bool) error { | |||
} | |||
defer newHeaderFile.Close() | |||
if err := writeHeaderFile(newHeaderFile, headerFile, prefix, functions, reasons); err != nil { | |||
if err := writeHeaderFile(newHeaderFile, headerFile, prefix, reasons); err != nil { | |||
return err | |||
} | |||
os.Rename(headerPath+".tmp", headerPath) | |||
@@ -127,8 +124,7 @@ func makeErrors(reset bool) error { | |||
return err | |||
} | |||
outputStrings(dataFile, lib, typeFunctions, functions) | |||
outputStrings(dataFile, lib, typeReasons, reasons) | |||
outputStrings(dataFile, lib, reasons) | |||
dataFile.Close() | |||
return nil | |||
@@ -183,7 +179,7 @@ func outputAssignments(w io.Writer, assignments map[string]int) { | |||
} | |||
} | |||
func parseDefineLine(line, lib string) (typ int, key string, value int, ok bool) { | |||
func parseDefineLine(line, lib string) (key string, value int, ok bool) { | |||
if !strings.HasPrefix(line, "#define ") { | |||
return | |||
} | |||
@@ -193,16 +189,8 @@ func parseDefineLine(line, lib string) (typ int, key string, value int, ok bool) | |||
return | |||
} | |||
funcPrefix := lib + "_F_" | |||
reasonPrefix := lib + "_R_" | |||
key = fields[1] | |||
switch { | |||
case strings.HasPrefix(key, funcPrefix): | |||
typ = typeFunctions | |||
case strings.HasPrefix(key, reasonPrefix): | |||
typ = typeReasons | |||
default: | |||
if !strings.HasPrefix(key, lib+"_R_") { | |||
return | |||
} | |||
@@ -215,7 +203,7 @@ func parseDefineLine(line, lib string) (typ int, key string, value int, ok bool) | |||
return | |||
} | |||
func writeHeaderFile(w io.Writer, headerFile io.Reader, lib string, functions, reasons map[string]int) error { | |||
func writeHeaderFile(w io.Writer, headerFile io.Reader, lib string, reasons map[string]int) error { | |||
var last []byte | |||
var haveLast, sawDefine bool | |||
newLine := []byte("\n") | |||
@@ -223,7 +211,7 @@ func writeHeaderFile(w io.Writer, headerFile io.Reader, lib string, functions, r | |||
scanner := bufio.NewScanner(headerFile) | |||
for scanner.Scan() { | |||
line := scanner.Text() | |||
_, _, _, ok := parseDefineLine(line, lib) | |||
_, _, ok := parseDefineLine(line, lib) | |||
if ok { | |||
sawDefine = true | |||
continue | |||
@@ -247,7 +235,6 @@ func writeHeaderFile(w io.Writer, headerFile io.Reader, lib string, functions, r | |||
return err | |||
} | |||
outputAssignments(w, functions) | |||
outputAssignments(w, reasons) | |||
w.Write(newLine) | |||
@@ -259,14 +246,9 @@ func writeHeaderFile(w io.Writer, headerFile io.Reader, lib string, functions, r | |||
return nil | |||
} | |||
const ( | |||
typeFunctions = iota | |||
typeReasons | |||
) | |||
func outputStrings(w io.Writer, lib string, ty int, assignments map[string]int) { | |||
func outputStrings(w io.Writer, lib string, assignments map[string]int) { | |||
lib = strings.ToUpper(lib) | |||
prefixLen := len(lib + "_F_") | |||
prefixLen := len(lib + "_R_") | |||
keys := make([]string, 0, len(assignments)) | |||
for key := range assignments { | |||
@@ -275,11 +257,7 @@ func outputStrings(w io.Writer, lib string, ty int, assignments map[string]int) | |||
sort.Strings(keys) | |||
for _, key := range keys { | |||
typeString := "function" | |||
if ty == typeReasons { | |||
typeString = "reason" | |||
} | |||
fmt.Fprintf(w, "%s,%s,%d,%s\n", lib, typeString, assignments[key], key[prefixLen:]) | |||
fmt.Fprintf(w, "%s,%d,%s\n", lib, assignments[key], key[prefixLen:]) | |||
} | |||
} | |||
@@ -339,7 +317,7 @@ func handleDeclareMacro(line, join, macroName string, m map[string]int) { | |||
} | |||
} | |||
func addFunctionsAndReasons(functions, reasons map[string]int, filename, prefix string) error { | |||
func addReasons(reasons map[string]int, filename, prefix string) error { | |||
file, err := os.Open(filename) | |||
if err != nil { | |||
return err | |||
@@ -347,45 +325,15 @@ func addFunctionsAndReasons(functions, reasons map[string]int, filename, prefix | |||
defer file.Close() | |||
reasonPrefix := prefix + "_R_" | |||
var currentFunction string | |||
scanner := bufio.NewScanner(file) | |||
for scanner.Scan() { | |||
line := scanner.Text() | |||
if len(line) > 0 && unicode.IsLetter(rune(line[0])) { | |||
/* Function start */ | |||
fields := strings.Fields(line) | |||
for _, field := range fields { | |||
if i := strings.Index(field, "("); i != -1 { | |||
f := field[:i] | |||
// The return type of some functions is | |||
// a macro that contains a "(". | |||
if f == "STACK_OF" { | |||
continue | |||
} | |||
currentFunction = f | |||
for len(currentFunction) > 0 && currentFunction[0] == '*' { | |||
currentFunction = currentFunction[1:] | |||
} | |||
break | |||
} | |||
} | |||
} | |||
// Do not include cross-module error lines. | |||
if strings.Contains(line, "OPENSSL_PUT_ERROR(" + prefix + ",") { | |||
functionToken := prefix + "_F_" + currentFunction | |||
if _, ok := functions[functionToken]; !ok { | |||
functions[functionToken] = -1 | |||
} | |||
} | |||
handleDeclareMacro(line, "_R_", "OPENSSL_DECLARE_ERROR_REASON(", reasons) | |||
handleDeclareMacro(line, "_F_", "OPENSSL_DECLARE_ERROR_FUNCTION(", functions) | |||
for len(line) > 0 { | |||
i := strings.Index(line, prefix + "_") | |||
i := strings.Index(line, prefix+"_") | |||
if i == -1 { | |||
break | |||
} | |||
@@ -413,25 +361,17 @@ func addFunctionsAndReasons(functions, reasons map[string]int, filename, prefix | |||
return scanner.Err() | |||
} | |||
func parseHeader(lib string, file io.Reader) (functions, reasons map[string]int, err error) { | |||
functions = make(map[string]int) | |||
func parseHeader(lib string, file io.Reader) (reasons map[string]int, err error) { | |||
reasons = make(map[string]int) | |||
scanner := bufio.NewScanner(file) | |||
for scanner.Scan() { | |||
typ, key, value, ok := parseDefineLine(scanner.Text(), lib) | |||
key, value, ok := parseDefineLine(scanner.Text(), lib) | |||
if !ok { | |||
continue | |||
} | |||
switch typ { | |||
case typeFunctions: | |||
functions[key] = value | |||
case typeReasons: | |||
reasons[key] = value | |||
default: | |||
panic("internal error") | |||
} | |||
reasons[key] = value | |||
} | |||
err = scanner.Err() | |||