OpenCoverage

x509_txt.c

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

Generated by Squish Coco 4.2.2