| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/x509/x509_txt.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | - | |
| 4 | - | |
| 5 | - | |
| 6 | const char *X509_verify_cert_error_string(long n) | - |
| 7 | { | - |
| 8 | switch ((int)n) { | - |
| 9 | case executed 83 times by 1 test: 0:case 0:Executed by:
executed 83 times by 1 test: case 0:Executed by:
| 83 |
| 10 | return executed 83 times by 1 test: "ok";return "ok";Executed by:
executed 83 times by 1 test: return "ok";Executed by:
| 83 |
| 11 | case executed 3 times by 1 test: 1:case 1:Executed by:
executed 3 times by 1 test: case 1:Executed by:
| 3 |
| 12 | return executed 3 times by 1 test: "unspecified certificate verification error";return "unspecified certificate verification error";Executed by:
executed 3 times by 1 test: return "unspecified certificate verification error";Executed by:
| 3 |
| 13 | case never executed: 2:case 2:never executed: case 2: | 0 |
| 14 | return never executed: "unable to get issuer certificate";return "unable to get issuer certificate";never executed: return "unable to get issuer certificate"; | 0 |
| 15 | case never executed: 3:case 3:never executed: case 3: | 0 |
| 16 | return never executed: "unable to get certificate CRL";return "unable to get certificate CRL";never executed: return "unable to get certificate CRL"; | 0 |
| 17 | case never executed: 4:case 4:never executed: case 4: | 0 |
| 18 | return never executed: "unable to decrypt certificate's signature";return "unable to decrypt certificate's signature";never executed: return "unable to decrypt certificate's signature"; | 0 |
| 19 | case never executed: 5:case 5:never executed: case 5: | 0 |
| 20 | return never executed: "unable to decrypt CRL's signature";return "unable to decrypt CRL's signature";never executed: return "unable to decrypt CRL's signature"; | 0 |
| 21 | case never executed: 6:case 6:never executed: case 6: | 0 |
| 22 | return never executed: "unable to decode issuer public key";return "unable to decode issuer public key";never executed: return "unable to decode issuer public key"; | 0 |
| 23 | case executed 6 times by 1 test: 7:case 7:Executed by:
executed 6 times by 1 test: case 7:Executed by:
| 6 |
| 24 | return executed 6 times by 1 test: "certificate signature failure";return "certificate signature failure";Executed by:
executed 6 times by 1 test: return "certificate signature failure";Executed by:
| 6 |
| 25 | case never executed: 8:case 8:never executed: case 8: | 0 |
| 26 | return never executed: "CRL signature failure";return "CRL signature failure";never executed: return "CRL signature failure"; | 0 |
| 27 | case never executed: 9:case 9:never executed: case 9: | 0 |
| 28 | return never executed: "certificate is not yet valid";return "certificate is not yet valid";never executed: return "certificate is not yet valid"; | 0 |
| 29 | case executed 1 time by 1 test: 10:case 10:Executed by:
executed 1 time by 1 test: case 10:Executed by:
| 1 |
| 30 | return executed 1 time by 1 test: "certificate has expired";return "certificate has expired";Executed by:
executed 1 time by 1 test: return "certificate has expired";Executed by:
| 1 |
| 31 | case never executed: 11:case 11:never executed: case 11: | 0 |
| 32 | return never executed: "CRL is not yet valid";return "CRL is not yet valid";never executed: return "CRL is not yet valid"; | 0 |
| 33 | case never executed: 12:case 12:never executed: case 12: | 0 |
| 34 | return never executed: "CRL has expired";return "CRL has expired";never executed: return "CRL has expired"; | 0 |
| 35 | case never executed: 13:case 13:never executed: case 13: | 0 |
| 36 | return never executed: "format error in certificate's notBefore field";return "format error in certificate's notBefore field";never executed: return "format error in certificate's notBefore field"; | 0 |
| 37 | case never executed: 14:case 14:never executed: case 14: | 0 |
| 38 | return never executed: "format error in certificate's notAfter field";return "format error in certificate's notAfter field";never executed: return "format error in certificate's notAfter field"; | 0 |
| 39 | case never executed: 15:case 15:never executed: case 15: | 0 |
| 40 | return never executed: "format error in CRL's lastUpdate field";return "format error in CRL's lastUpdate field";never executed: return "format error in CRL's lastUpdate field"; | 0 |
| 41 | case never executed: 16:case 16:never executed: case 16: | 0 |
| 42 | return never executed: "format error in CRL's nextUpdate field";return "format error in CRL's nextUpdate field";never executed: return "format error in CRL's nextUpdate field"; | 0 |
| 43 | case never executed: 17:case 17:never executed: case 17: | 0 |
| 44 | return never executed: "out of memory";return "out of memory";never executed: return "out of memory"; | 0 |
| 45 | case never executed: 18:case 18:never executed: case 18: | 0 |
| 46 | return never executed: "self signed certificate";return "self signed certificate";never executed: return "self signed certificate"; | 0 |
| 47 | case never executed: 19:case 19:never executed: case 19: | 0 |
| 48 | return never executed: "self signed certificate in certificate chain";return "self signed certificate in certificate chain";never executed: return "self signed certificate in certificate chain"; | 0 |
| 49 | case executed 134 times by 1 test: 20:case 20:Executed by:
executed 134 times by 1 test: case 20:Executed by:
| 134 |
| 50 | return executed 134 times by 1 test: "unable to get local issuer certificate";return "unable to get local issuer certificate";Executed by:
executed 134 times by 1 test: return "unable to get local issuer certificate";Executed by:
| 134 |
| 51 | case executed 420 times by 1 test: 21:case 21:Executed by:
executed 420 times by 1 test: case 21:Executed by:
| 420 |
| 52 | return executed 420 times by 1 test: "unable to verify the first certificate";return "unable to verify the first certificate";Executed by:
executed 420 times by 1 test: return "unable to verify the first certificate";Executed by:
| 420 |
| 53 | case executed 1 time by 1 test: 22:case 22:Executed by:
executed 1 time by 1 test: case 22:Executed by:
| 1 |
| 54 | return executed 1 time by 1 test: "certificate chain too long";return "certificate chain too long";Executed by:
executed 1 time by 1 test: return "certificate chain too long";Executed by:
| 1 |
| 55 | case never executed: 23:case 23:never executed: case 23: | 0 |
| 56 | return never executed: "certificate revoked";return "certificate revoked";never executed: return "certificate revoked"; | 0 |
| 57 | case executed 9 times by 1 test: 24:case 24:Executed by:
executed 9 times by 1 test: case 24:Executed by:
| 9 |
| 58 | return executed 9 times by 1 test: "invalid CA certificate";return "invalid CA certificate";Executed by:
executed 9 times by 1 test: return "invalid CA certificate";Executed by:
| 9 |
| 59 | case never executed: 25:case 25:never executed: case 25: | 0 |
| 60 | return never executed: "path length constraint exceeded";return "path length constraint exceeded";never executed: return "path length constraint exceeded"; | 0 |
| 61 | case executed 9 times by 1 test: 26:case 26:Executed by:
executed 9 times by 1 test: case 26:Executed by:
| 9 |
| 62 | return executed 9 times by 1 test: "unsupported certificate purpose";return "unsupported certificate purpose";Executed by:
executed 9 times by 1 test: return "unsupported certificate purpose";Executed by:
| 9 |
| 63 | case never executed: 27:case 27:never executed: case 27: | 0 |
| 64 | return never executed: "certificate not trusted";return "certificate not trusted";never executed: return "certificate not trusted"; | 0 |
| 65 | case executed 26 times by 1 test: 28:case 28:Executed by:
executed 26 times by 1 test: case 28:Executed by:
| 26 |
| 66 | return executed 26 times by 1 test: "certificate rejected";return "certificate rejected";Executed by:
executed 26 times by 1 test: return "certificate rejected";Executed by:
| 26 |
| 67 | case never executed: 29:case 29:never executed: case 29: | 0 |
| 68 | return never executed: "subject issuer mismatch";return "subject issuer mismatch";never executed: return "subject issuer mismatch"; | 0 |
| 69 | case never executed: 30:case 30:never executed: case 30: | 0 |
| 70 | return never executed: "authority and subject key identifier mismatch";return "authority and subject key identifier mismatch";never executed: return "authority and subject key identifier mismatch"; | 0 |
| 71 | case never executed: 31:case 31:never executed: case 31: | 0 |
| 72 | return never executed: "authority and issuer serial number mismatch";return "authority and issuer serial number mismatch";never executed: return "authority and issuer serial number mismatch"; | 0 |
| 73 | case never executed: 32:case 32:never executed: case 32: | 0 |
| 74 | return never executed: "key usage does not include certificate signing";return "key usage does not include certificate signing";never executed: return "key usage does not include certificate signing"; | 0 |
| 75 | case never executed: 33:case 33:never executed: case 33: | 0 |
| 76 | return never executed: "unable to get CRL issuer certificate";return "unable to get CRL issuer certificate";never executed: return "unable to get CRL issuer certificate"; | 0 |
| 77 | case never executed: 34:case 34:never executed: case 34: | 0 |
| 78 | return never executed: "unhandled critical extension";return "unhandled critical extension";never executed: return "unhandled critical extension"; | 0 |
| 79 | case never executed: 35:case 35:never executed: case 35: | 0 |
| 80 | return never executed: "key usage does not include CRL signing";return "key usage does not include CRL signing";never executed: return "key usage does not include CRL signing"; | 0 |
| 81 | case never executed: 36:case 36:never executed: case 36: | 0 |
| 82 | return never executed: "unhandled critical CRL extension";return "unhandled critical CRL extension";never executed: return "unhandled critical CRL extension"; | 0 |
| 83 | case never executed: 37:case 37:never executed: case 37: | 0 |
| 84 | return never executed: "invalid non-CA certificate (has CA markings)";return "invalid non-CA certificate (has CA markings)";never executed: return "invalid non-CA certificate (has CA markings)"; | 0 |
| 85 | case executed 1 time by 1 test: 38:case 38:Executed by:
executed 1 time by 1 test: case 38:Executed by:
| 1 |
| 86 | return executed 1 time by 1 test: "proxy path length constraint exceeded";return "proxy path length constraint exceeded";Executed by:
executed 1 time by 1 test: return "proxy path length constraint exceeded";Executed by:
| 1 |
| 87 | case never executed: 39:case 39:never executed: case 39: | 0 |
| 88 | return never executed: "key usage does not include digital signature";return "key usage does not include digital signature";never executed: return "key usage does not include digital signature"; | 0 |
| 89 | case executed 3 times by 1 test: 40:case 40:Executed by:
executed 3 times by 1 test: case 40:Executed by:
| 3 |
| 90 | return executed 3 times by 1 test: return "proxy certificates not allowed, please set the appropriate flag";Executed by:
| 3 |
| 91 | "proxy certificates not allowed, please set the appropriate flag"; executed 3 times by 1 test: return "proxy certificates not allowed, please set the appropriate flag";Executed by:
| 3 |
| 92 | case never executed: 41:case 41:never executed: case 41: | 0 |
| 93 | return never executed: "invalid or inconsistent certificate extension";return "invalid or inconsistent certificate extension";never executed: return "invalid or inconsistent certificate extension"; | 0 |
| 94 | case never executed: 42:case 42:never executed: case 42: | 0 |
| 95 | return never executed: "invalid or inconsistent certificate policy extension";return "invalid or inconsistent certificate policy extension";never executed: return "invalid or inconsistent certificate policy extension"; | 0 |
| 96 | case never executed: 43:case 43:never executed: case 43: | 0 |
| 97 | return never executed: "no explicit policy";return "no explicit policy";never executed: return "no explicit policy"; | 0 |
| 98 | case never executed: 44:case 44:never executed: case 44: | 0 |
| 99 | return never executed: "Different CRL scope";return "Different CRL scope";never executed: return "Different CRL scope"; | 0 |
| 100 | case never executed: 45:case 45:never executed: case 45: | 0 |
| 101 | return never executed: "Unsupported extension feature";return "Unsupported extension feature";never executed: return "Unsupported extension feature"; | 0 |
| 102 | case never executed: 46:case 46:never executed: case 46: | 0 |
| 103 | return never executed: "RFC 3779 resource not subset of parent's resources";return "RFC 3779 resource not subset of parent's resources";never executed: return "RFC 3779 resource not subset of parent's resources"; | 0 |
| 104 | case executed 9 times by 1 test: 47:case 47:Executed by:
executed 9 times by 1 test: case 47:Executed by:
| 9 |
| 105 | return executed 9 times by 1 test: "permitted subtree violation";return "permitted subtree violation";Executed by:
executed 9 times by 1 test: return "permitted subtree violation";Executed by:
| 9 |
| 106 | case executed 2 times by 1 test: 48:case 48:Executed by:
executed 2 times by 1 test: case 48:Executed by:
| 2 |
| 107 | return executed 2 times by 1 test: "excluded subtree violation";return "excluded subtree violation";Executed by:
executed 2 times by 1 test: return "excluded subtree violation";Executed by:
| 2 |
| 108 | case never executed: 49:case 49:never executed: case 49: | 0 |
| 109 | return never executed: "name constraints minimum and maximum not supported";return "name constraints minimum and maximum not supported";never executed: return "name constraints minimum and maximum not supported"; | 0 |
| 110 | case never executed: 50:case 50:never executed: case 50: | 0 |
| 111 | return never executed: "application verification failure";return "application verification failure";never executed: return "application verification failure"; | 0 |
| 112 | case never executed: 51:case 51:never executed: case 51: | 0 |
| 113 | return never executed: "unsupported name constraint type";return "unsupported name constraint type";never executed: return "unsupported name constraint type"; | 0 |
| 114 | case never executed: 52:case 52:never executed: case 52: | 0 |
| 115 | return never executed: "unsupported or invalid name constraint syntax";return "unsupported or invalid name constraint syntax";never executed: return "unsupported or invalid name constraint syntax"; | 0 |
| 116 | case never executed: 53:case 53:never executed: case 53: | 0 |
| 117 | return never executed: "unsupported or invalid name syntax";return "unsupported or invalid name syntax";never executed: return "unsupported or invalid name syntax"; | 0 |
| 118 | case never executed: 54:case 54:never executed: case 54: | 0 |
| 119 | return never executed: "CRL path validation error";return "CRL path validation error";never executed: return "CRL path validation error"; | 0 |
| 120 | case never executed: 55:case 55:never executed: case 55: | 0 |
| 121 | return never executed: "Path Loop";return "Path Loop";never executed: return "Path Loop"; | 0 |
| 122 | case never executed: 56:case 56:never executed: case 56: | 0 |
| 123 | return never executed: "Suite B: certificate version invalid";return "Suite B: certificate version invalid";never executed: return "Suite B: certificate version invalid"; | 0 |
| 124 | case never executed: 57:case 57:never executed: case 57: | 0 |
| 125 | return never executed: "Suite B: invalid public key algorithm";return "Suite B: invalid public key algorithm";never executed: return "Suite B: invalid public key algorithm"; | 0 |
| 126 | case never executed: 58:case 58:never executed: case 58: | 0 |
| 127 | return never executed: "Suite B: invalid ECC curve";return "Suite B: invalid ECC curve";never executed: return "Suite B: invalid ECC curve"; | 0 |
| 128 | case never executed: 59:case 59:never executed: case 59: | 0 |
| 129 | return never executed: "Suite B: invalid signature algorithm";return "Suite B: invalid signature algorithm";never executed: return "Suite B: invalid signature algorithm"; | 0 |
| 130 | case never executed: 60:case 60:never executed: case 60: | 0 |
| 131 | return never executed: "Suite B: curve not allowed for this LOS";return "Suite B: curve not allowed for this LOS";never executed: return "Suite B: curve not allowed for this LOS"; | 0 |
| 132 | case never executed: 61:case 61:never executed: case 61: | 0 |
| 133 | return never executed: "Suite B: cannot sign P-384 with P-256";return "Suite B: cannot sign P-384 with P-256";never executed: return "Suite B: cannot sign P-384 with P-256"; | 0 |
| 134 | case never executed: 62:case 62:never executed: case 62: | 0 |
| 135 | return never executed: "Hostname mismatch";return "Hostname mismatch";never executed: return "Hostname mismatch"; | 0 |
| 136 | case never executed: 63:case 63:never executed: case 63: | 0 |
| 137 | return never executed: "Email address mismatch";return "Email address mismatch";never executed: return "Email address mismatch"; | 0 |
| 138 | case never executed: 64:case 64:never executed: case 64: | 0 |
| 139 | return never executed: "IP address mismatch";return "IP address mismatch";never executed: return "IP address mismatch"; | 0 |
| 140 | case never executed: 65:case 65:never executed: case 65: | 0 |
| 141 | return never executed: "No matching DANE TLSA records";return "No matching DANE TLSA records";never executed: return "No matching DANE TLSA records"; | 0 |
| 142 | case executed 2 times by 1 test: 66:case 66:Executed by:
executed 2 times by 1 test: case 66:Executed by:
| 2 |
| 143 | return executed 2 times by 1 test: "EE certificate key too weak";return "EE certificate key too weak";Executed by:
executed 2 times by 1 test: return "EE certificate key too weak";Executed by:
| 2 |
| 144 | case executed 2 times by 1 test: 67:case 67:Executed by:
executed 2 times by 1 test: case 67:Executed by:
| 2 |
| 145 | return executed 2 times by 1 test: "CA certificate key too weak";return "CA certificate key too weak";Executed by:
executed 2 times by 1 test: return "CA certificate key too weak";Executed by:
| 2 |
| 146 | case executed 3 times by 1 test: 68:case 68:Executed by:
executed 3 times by 1 test: case 68:Executed by:
| 3 |
| 147 | return executed 3 times by 1 test: "CA signature digest algorithm too weak";return "CA signature digest algorithm too weak";Executed by:
executed 3 times by 1 test: return "CA signature digest algorithm too weak";Executed by:
| 3 |
| 148 | case never executed: 69:case 69:never executed: case 69: | 0 |
| 149 | return never executed: "Invalid certificate verification context";return "Invalid certificate verification context";never executed: return "Invalid certificate verification context"; | 0 |
| 150 | case never executed: 70:case 70:never executed: case 70: | 0 |
| 151 | return never executed: "Issuer certificate lookup error";return "Issuer certificate lookup error";never executed: return "Issuer certificate lookup error"; | 0 |
| 152 | case never executed: 71:case 71:never executed: case 71: | 0 |
| 153 | return never executed: "Certificate Transparency required, but no valid SCTs found";return "Certificate Transparency required, but no valid SCTs found";never executed: return "Certificate Transparency required, but no valid SCTs found"; | 0 |
| 154 | case executed 1 time by 1 test: 72:case 72:Executed by:
executed 1 time by 1 test: case 72:Executed by:
| 1 |
| 155 | return executed 1 time by 1 test: "proxy subject name violation";return "proxy subject name violation";Executed by:
executed 1 time by 1 test: return "proxy subject name violation";Executed by:
| 1 |
| 156 | case never executed: 73:case 73:never executed: case 73: | 0 |
| 157 | return never executed: "OCSP verification needed";return "OCSP verification needed";never executed: return "OCSP verification needed"; | 0 |
| 158 | case never executed: 74:case 74:never executed: case 74: | 0 |
| 159 | return never executed: "OCSP verification failed";return "OCSP verification failed";never executed: return "OCSP verification failed"; | 0 |
| 160 | case never executed: 75:case 75:never executed: case 75: | 0 |
| 161 | return never executed: "OCSP unknown cert";return "OCSP unknown cert";never executed: return "OCSP unknown cert"; | 0 |
| 162 | - | |
| 163 | default executed 1 time by 1 test: :default:Executed by:
executed 1 time by 1 test: default:Executed by:
| 1 |
| 164 | - | |
| 165 | return executed 1 time by 1 test: "unknown certificate verification error";return "unknown certificate verification error";Executed by:
executed 1 time by 1 test: return "unknown certificate verification error";Executed by:
| 1 |
| 166 | } | - |
| 167 | } | - |
| Switch to Source code | Preprocessed file |