| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | #include <openssl/err.h> | - |
| 12 | #include <openssl/cterr.h> | - |
| 13 | | - |
| 14 | #ifndef OPENSSL_NO_ERR | - |
| 15 | | - |
| 16 | static const ERR_STRING_DATA CT_str_functs[] = { | - |
| 17 | {ERR_PACK(ERR_LIB_CT, CT_F_CTLOG_NEW, 0), "CTLOG_new"}, | - |
| 18 | {ERR_PACK(ERR_LIB_CT, CT_F_CTLOG_NEW_FROM_BASE64, 0), | - |
| 19 | "CTLOG_new_from_base64"}, | - |
| 20 | {ERR_PACK(ERR_LIB_CT, CT_F_CTLOG_NEW_FROM_CONF, 0), "ctlog_new_from_conf"}, | - |
| 21 | {ERR_PACK(ERR_LIB_CT, CT_F_CTLOG_STORE_LOAD_CTX_NEW, 0), | - |
| 22 | "ctlog_store_load_ctx_new"}, | - |
| 23 | {ERR_PACK(ERR_LIB_CT, CT_F_CTLOG_STORE_LOAD_FILE, 0), | - |
| 24 | "CTLOG_STORE_load_file"}, | - |
| 25 | {ERR_PACK(ERR_LIB_CT, CT_F_CTLOG_STORE_LOAD_LOG, 0), | - |
| 26 | "ctlog_store_load_log"}, | - |
| 27 | {ERR_PACK(ERR_LIB_CT, CT_F_CTLOG_STORE_NEW, 0), "CTLOG_STORE_new"}, | - |
| 28 | {ERR_PACK(ERR_LIB_CT, CT_F_CT_BASE64_DECODE, 0), "ct_base64_decode"}, | - |
| 29 | {ERR_PACK(ERR_LIB_CT, CT_F_CT_POLICY_EVAL_CTX_NEW, 0), | - |
| 30 | "CT_POLICY_EVAL_CTX_new"}, | - |
| 31 | {ERR_PACK(ERR_LIB_CT, CT_F_CT_V1_LOG_ID_FROM_PKEY, 0), | - |
| 32 | "ct_v1_log_id_from_pkey"}, | - |
| 33 | {ERR_PACK(ERR_LIB_CT, CT_F_I2O_SCT, 0), "i2o_SCT"}, | - |
| 34 | {ERR_PACK(ERR_LIB_CT, CT_F_I2O_SCT_LIST, 0), "i2o_SCT_LIST"}, | - |
| 35 | {ERR_PACK(ERR_LIB_CT, CT_F_I2O_SCT_SIGNATURE, 0), "i2o_SCT_signature"}, | - |
| 36 | {ERR_PACK(ERR_LIB_CT, CT_F_O2I_SCT, 0), "o2i_SCT"}, | - |
| 37 | {ERR_PACK(ERR_LIB_CT, CT_F_O2I_SCT_LIST, 0), "o2i_SCT_LIST"}, | - |
| 38 | {ERR_PACK(ERR_LIB_CT, CT_F_O2I_SCT_SIGNATURE, 0), "o2i_SCT_signature"}, | - |
| 39 | {ERR_PACK(ERR_LIB_CT, CT_F_SCT_CTX_NEW, 0), "SCT_CTX_new"}, | - |
| 40 | {ERR_PACK(ERR_LIB_CT, CT_F_SCT_CTX_VERIFY, 0), "SCT_CTX_verify"}, | - |
| 41 | {ERR_PACK(ERR_LIB_CT, CT_F_SCT_NEW, 0), "SCT_new"}, | - |
| 42 | {ERR_PACK(ERR_LIB_CT, CT_F_SCT_NEW_FROM_BASE64, 0), "SCT_new_from_base64"}, | - |
| 43 | {ERR_PACK(ERR_LIB_CT, CT_F_SCT_SET0_LOG_ID, 0), "SCT_set0_log_id"}, | - |
| 44 | {ERR_PACK(ERR_LIB_CT, CT_F_SCT_SET1_EXTENSIONS, 0), "SCT_set1_extensions"}, | - |
| 45 | {ERR_PACK(ERR_LIB_CT, CT_F_SCT_SET1_LOG_ID, 0), "SCT_set1_log_id"}, | - |
| 46 | {ERR_PACK(ERR_LIB_CT, CT_F_SCT_SET1_SIGNATURE, 0), "SCT_set1_signature"}, | - |
| 47 | {ERR_PACK(ERR_LIB_CT, CT_F_SCT_SET_LOG_ENTRY_TYPE, 0), | - |
| 48 | "SCT_set_log_entry_type"}, | - |
| 49 | {ERR_PACK(ERR_LIB_CT, CT_F_SCT_SET_SIGNATURE_NID, 0), | - |
| 50 | "SCT_set_signature_nid"}, | - |
| 51 | {ERR_PACK(ERR_LIB_CT, CT_F_SCT_SET_VERSION, 0), "SCT_set_version"}, | - |
| 52 | {0, NULL} | - |
| 53 | }; | - |
| 54 | | - |
| 55 | static const ERR_STRING_DATA CT_str_reasons[] = { | - |
| 56 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_BASE64_DECODE_ERROR), "base64 decode error"}, | - |
| 57 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_INVALID_LOG_ID_LENGTH), | - |
| 58 | "invalid log id length"}, | - |
| 59 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_LOG_CONF_INVALID), "log conf invalid"}, | - |
| 60 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_LOG_CONF_INVALID_KEY), | - |
| 61 | "log conf invalid key"}, | - |
| 62 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_LOG_CONF_MISSING_DESCRIPTION), | - |
| 63 | "log conf missing description"}, | - |
| 64 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_LOG_CONF_MISSING_KEY), | - |
| 65 | "log conf missing key"}, | - |
| 66 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_LOG_KEY_INVALID), "log key invalid"}, | - |
| 67 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_SCT_FUTURE_TIMESTAMP), | - |
| 68 | "sct future timestamp"}, | - |
| 69 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_SCT_INVALID), "sct invalid"}, | - |
| 70 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_SCT_INVALID_SIGNATURE), | - |
| 71 | "sct invalid signature"}, | - |
| 72 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_SCT_LIST_INVALID), "sct list invalid"}, | - |
| 73 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_SCT_LOG_ID_MISMATCH), "sct log id mismatch"}, | - |
| 74 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_SCT_NOT_SET), "sct not set"}, | - |
| 75 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_SCT_UNSUPPORTED_VERSION), | - |
| 76 | "sct unsupported version"}, | - |
| 77 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_UNRECOGNIZED_SIGNATURE_NID), | - |
| 78 | "unrecognized signature nid"}, | - |
| 79 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_UNSUPPORTED_ENTRY_TYPE), | - |
| 80 | "unsupported entry type"}, | - |
| 81 | {ERR_PACK(ERR_LIB_CT, 0, CT_R_UNSUPPORTED_VERSION), "unsupported version"}, | - |
| 82 | {0, NULL} | - |
| 83 | }; | - |
| 84 | | - |
| 85 | #endif | - |
| 86 | | - |
| 87 | int ERR_load_CT_strings(void) | - |
| 88 | { | - |
| 89 | #ifndef OPENSSL_NO_ERR | - |
| 90 | if (ERR_func_error_string(CT_str_functs[0].error) == NULL) {| TRUE | evaluated 2074 times by 11 testsEvaluated by:- asn1_internal_test
- chacha_internal_test
- ctype_internal_test
- curve448_internal_test
- libcrypto.so.1.1
- modes_internal_test
- poly1305_internal_test
- siphash_internal_test
- sm2_internal_test
- sm4_internal_test
- x509_internal_test
| | FALSE | never evaluated |
| 0-2074 |
| 91 | ERR_load_strings_const(CT_str_functs); | - |
| 92 | ERR_load_strings_const(CT_str_reasons); | - |
| 93 | }executed 2074 times by 11 tests: end of blockExecuted by:- asn1_internal_test
- chacha_internal_test
- ctype_internal_test
- curve448_internal_test
- libcrypto.so.1.1
- modes_internal_test
- poly1305_internal_test
- siphash_internal_test
- sm2_internal_test
- sm4_internal_test
- x509_internal_test
| 2074 |
| 94 | #endif | - |
| 95 | return 1;executed 2074 times by 11 tests: return 1;Executed by:- asn1_internal_test
- chacha_internal_test
- ctype_internal_test
- curve448_internal_test
- libcrypto.so.1.1
- modes_internal_test
- poly1305_internal_test
- siphash_internal_test
- sm2_internal_test
- sm4_internal_test
- x509_internal_test
| 2074 |
| 96 | } | - |
| | |