| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | | - |
| 14 | | - |
| 15 | | - |
| 16 | | - |
| 17 | | - |
| 18 | | - |
| 19 | | - |
| 20 | | - |
| 21 | | - |
| 22 | | - |
| 23 | | - |
| 24 | | - |
| 25 | | - |
| 26 | | - |
| 27 | | - |
| 28 | | - |
| 29 | | - |
| 30 | | - |
| 31 | | - |
| 32 | | - |
| 33 | | - |
| 34 | | - |
| 35 | | - |
| 36 | | - |
| 37 | | - |
| 38 | | - |
| 39 | | - |
| 40 | | - |
| 41 | | - |
| 42 | | - |
| 43 | | - |
| 44 | | - |
| 45 | | - |
| 46 | | - |
| 47 | | - |
| 48 | | - |
| 49 | | - |
| 50 | | - |
| 51 | | - |
| 52 | | - |
| 53 | | - |
| 54 | | - |
| 55 | | - |
| 56 | | - |
| 57 | | - |
| 58 | | - |
| 59 | | - |
| 60 | | - |
| 61 | #include <stdio.h> | - |
| 62 | | - |
| 63 | #include <openssl/opensslconf.h> | - |
| 64 | | - |
| 65 | #include <openssl/err.h> | - |
| 66 | #include <openssl/ocsp.h> | - |
| 67 | | - |
| 68 | | - |
| 69 | #ifndef OPENSSL_NO_ERR | - |
| 70 | | - |
| 71 | #define ERR_FUNC(func) ERR_PACK(ERR_LIB_OCSP,func,0) | - |
| 72 | #define ERR_REASON(reason) ERR_PACK(ERR_LIB_OCSP,0,reason) | - |
| 73 | | - |
| 74 | static ERR_STRING_DATA OCSP_str_functs[]= { | - |
| 75 | {ERR_FUNC(0xfff), "CRYPTO_internal"}, | - |
| 76 | {0, NULL} | - |
| 77 | }; | - |
| 78 | | - |
| 79 | static ERR_STRING_DATA OCSP_str_reasons[]= { | - |
| 80 | {ERR_REASON(OCSP_R_BAD_DATA) , "bad data"}, | - |
| 81 | {ERR_REASON(OCSP_R_CERTIFICATE_VERIFY_ERROR), "certificate verify error"}, | - |
| 82 | {ERR_REASON(OCSP_R_DIGEST_ERR) , "digest err"}, | - |
| 83 | {ERR_REASON(OCSP_R_ERROR_IN_NEXTUPDATE_FIELD), "error in nextupdate field"}, | - |
| 84 | {ERR_REASON(OCSP_R_ERROR_IN_THISUPDATE_FIELD), "error in thisupdate field"}, | - |
| 85 | {ERR_REASON(OCSP_R_ERROR_PARSING_URL) , "error parsing url"}, | - |
| 86 | {ERR_REASON(OCSP_R_MISSING_OCSPSIGNING_USAGE), "missing ocspsigning usage"}, | - |
| 87 | {ERR_REASON(OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE), "nextupdate before thisupdate"}, | - |
| 88 | {ERR_REASON(OCSP_R_NOT_BASIC_RESPONSE) , "not basic response"}, | - |
| 89 | {ERR_REASON(OCSP_R_NO_CERTIFICATES_IN_CHAIN), "no certificates in chain"}, | - |
| 90 | {ERR_REASON(OCSP_R_NO_CONTENT) , "no content"}, | - |
| 91 | {ERR_REASON(OCSP_R_NO_PUBLIC_KEY) , "no public key"}, | - |
| 92 | {ERR_REASON(OCSP_R_NO_RESPONSE_DATA) , "no response data"}, | - |
| 93 | {ERR_REASON(OCSP_R_NO_REVOKED_TIME) , "no revoked time"}, | - |
| 94 | {ERR_REASON(OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE), "private key does not match certificate"}, | - |
| 95 | {ERR_REASON(OCSP_R_REQUEST_NOT_SIGNED) , "request not signed"}, | - |
| 96 | {ERR_REASON(OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA), "response contains no revocation data"}, | - |
| 97 | {ERR_REASON(OCSP_R_ROOT_CA_NOT_TRUSTED) , "root ca not trusted"}, | - |
| 98 | {ERR_REASON(OCSP_R_SERVER_READ_ERROR) , "server read error"}, | - |
| 99 | {ERR_REASON(OCSP_R_SERVER_RESPONSE_ERROR), "server response error"}, | - |
| 100 | {ERR_REASON(OCSP_R_SERVER_RESPONSE_PARSE_ERROR), "server response parse error"}, | - |
| 101 | {ERR_REASON(OCSP_R_SERVER_WRITE_ERROR) , "server write error"}, | - |
| 102 | {ERR_REASON(OCSP_R_SIGNATURE_FAILURE) , "signature failure"}, | - |
| 103 | {ERR_REASON(OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND), "signer certificate not found"}, | - |
| 104 | {ERR_REASON(OCSP_R_STATUS_EXPIRED) , "status expired"}, | - |
| 105 | {ERR_REASON(OCSP_R_STATUS_NOT_YET_VALID) , "status not yet valid"}, | - |
| 106 | {ERR_REASON(OCSP_R_STATUS_TOO_OLD) , "status too old"}, | - |
| 107 | {ERR_REASON(OCSP_R_UNKNOWN_MESSAGE_DIGEST), "unknown message digest"}, | - |
| 108 | {ERR_REASON(OCSP_R_UNKNOWN_NID) , "unknown nid"}, | - |
| 109 | {ERR_REASON(OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE), "unsupported requestorname type"}, | - |
| 110 | {0, NULL} | - |
| 111 | }; | - |
| 112 | | - |
| 113 | #endif | - |
| 114 | | - |
| 115 | void | - |
| 116 | ERR_load_OCSP_strings(void) | - |
| 117 | { | - |
| 118 | #ifndef OPENSSL_NO_ERR | - |
| 119 | if (ERR_func_error_string(OCSP_str_functs[0].error) == NULL) {| TRUE | evaluated 290 times by 31 testsEvaluated by:- asn1test
- base64test
- bnaddsub
- bntest
- cipher_list
- cipherstest
- clienttest
- configtest
- dhtest
- dsatest
- ecdhtest
- ecdsatest
- ectest
- enginetest
- evptest
- exptest
- gost2814789t
- keypairtest
- libcrypto.so.44.0.1
- mont
- pbkdf2
- pkcs7test
- rsa_test
- servertest
- ssl_versions
- ...
| | FALSE | never evaluated |
| 0-290 |
| 120 | ERR_load_strings(0, OCSP_str_functs); | - |
| 121 | ERR_load_strings(0, OCSP_str_reasons); | - |
| 122 | }executed 290 times by 31 tests: end of blockExecuted by:- asn1test
- base64test
- bnaddsub
- bntest
- cipher_list
- cipherstest
- clienttest
- configtest
- dhtest
- dsatest
- ecdhtest
- ecdsatest
- ectest
- enginetest
- evptest
- exptest
- gost2814789t
- keypairtest
- libcrypto.so.44.0.1
- mont
- pbkdf2
- pkcs7test
- rsa_test
- servertest
- ssl_versions
- ...
| 290 |
| 123 | #endif | - |
| 124 | }executed 290 times by 31 tests: end of blockExecuted by:- asn1test
- base64test
- bnaddsub
- bntest
- cipher_list
- cipherstest
- clienttest
- configtest
- dhtest
- dsatest
- ecdhtest
- ecdsatest
- ectest
- enginetest
- evptest
- exptest
- gost2814789t
- keypairtest
- libcrypto.so.44.0.1
- mont
- pbkdf2
- pkcs7test
- rsa_test
- servertest
- ssl_versions
- ...
| 290 |
| | |