OpenSSL: Merge OpenSSL 1.1.1o
[freebsd.git] / secure / lib / libcrypto / man / man3 / X509_STORE_CTX_get_error.3
1 .\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.43)
2 .\"
3 .\" Standard preamble:
4 .\" ========================================================================
5 .de Sp \" Vertical space (when we can't use .PP)
6 .if t .sp .5v
7 .if n .sp
8 ..
9 .de Vb \" Begin verbatim text
10 .ft CW
11 .nf
12 .ne \\$1
13 ..
14 .de Ve \" End verbatim text
15 .ft R
16 .fi
17 ..
18 .\" Set up some character translations and predefined strings.  \*(-- will
19 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
20 .\" double quote, and \*(R" will give a right double quote.  \*(C+ will
21 .\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
22 .\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
23 .\" nothing in troff, for use with C<>.
24 .tr \(*W-
25 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
26 .ie n \{\
27 .    ds -- \(*W-
28 .    ds PI pi
29 .    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
30 .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
31 .    ds L" ""
32 .    ds R" ""
33 .    ds C` ""
34 .    ds C' ""
35 'br\}
36 .el\{\
37 .    ds -- \|\(em\|
38 .    ds PI \(*p
39 .    ds L" ``
40 .    ds R" ''
41 .    ds C`
42 .    ds C'
43 'br\}
44 .\"
45 .\" Escape single quotes in literal strings from groff's Unicode transform.
46 .ie \n(.g .ds Aq \(aq
47 .el       .ds Aq '
48 .\"
49 .\" If the F register is >0, we'll generate index entries on stderr for
50 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
51 .\" entries marked with X<> in POD.  Of course, you'll have to process the
52 .\" output yourself in some meaningful fashion.
53 .\"
54 .\" Avoid warning from groff about undefined register 'F'.
55 .de IX
56 ..
57 .nr rF 0
58 .if \n(.g .if rF .nr rF 1
59 .if (\n(rF:(\n(.g==0)) \{\
60 .    if \nF \{\
61 .        de IX
62 .        tm Index:\\$1\t\\n%\t"\\$2"
63 ..
64 .        if !\nF==2 \{\
65 .            nr % 0
66 .            nr F 2
67 .        \}
68 .    \}
69 .\}
70 .rr rF
71 .\"
72 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
73 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
74 .    \" fudge factors for nroff and troff
75 .if n \{\
76 .    ds #H 0
77 .    ds #V .8m
78 .    ds #F .3m
79 .    ds #[ \f1
80 .    ds #] \fP
81 .\}
82 .if t \{\
83 .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
84 .    ds #V .6m
85 .    ds #F 0
86 .    ds #[ \&
87 .    ds #] \&
88 .\}
89 .    \" simple accents for nroff and troff
90 .if n \{\
91 .    ds ' \&
92 .    ds ` \&
93 .    ds ^ \&
94 .    ds , \&
95 .    ds ~ ~
96 .    ds /
97 .\}
98 .if t \{\
99 .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
100 .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
101 .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
102 .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
103 .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
104 .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
105 .\}
106 .    \" troff and (daisy-wheel) nroff accents
107 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
108 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
109 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
110 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
111 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
112 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
113 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
114 .ds ae a\h'-(\w'a'u*4/10)'e
115 .ds Ae A\h'-(\w'A'u*4/10)'E
116 .    \" corrections for vroff
117 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
118 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
119 .    \" for low resolution devices (crt and lpr)
120 .if \n(.H>23 .if \n(.V>19 \
121 \{\
122 .    ds : e
123 .    ds 8 ss
124 .    ds o a
125 .    ds d- d\h'-1'\(ga
126 .    ds D- D\h'-1'\(hy
127 .    ds th \o'bp'
128 .    ds Th \o'LP'
129 .    ds ae ae
130 .    ds Ae AE
131 .\}
132 .rm #[ #] #H #V #F C
133 .\" ========================================================================
134 .\"
135 .IX Title "X509_STORE_CTX_GET_ERROR 3"
136 .TH X509_STORE_CTX_GET_ERROR 3 "2022-05-03" "1.1.1o" "OpenSSL"
137 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
138 .\" way too many mistakes in technical documents.
139 .if n .ad l
140 .nh
141 .SH "NAME"
142 X509_STORE_CTX_get_error, X509_STORE_CTX_set_error, X509_STORE_CTX_get_error_depth, X509_STORE_CTX_set_error_depth, X509_STORE_CTX_get_current_cert, X509_STORE_CTX_set_current_cert, X509_STORE_CTX_get0_cert, X509_STORE_CTX_get1_chain, X509_verify_cert_error_string \- get or set certificate verification status information
143 .SH "SYNOPSIS"
144 .IX Header "SYNOPSIS"
145 .Vb 1
146 \& #include <openssl/x509.h>
147 \&
148 \& int   X509_STORE_CTX_get_error(X509_STORE_CTX *ctx);
149 \& void  X509_STORE_CTX_set_error(X509_STORE_CTX *ctx, int s);
150 \& int   X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx);
151 \& void  X509_STORE_CTX_set_error_depth(X509_STORE_CTX *ctx, int depth);
152 \& X509 *X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx);
153 \& void  X509_STORE_CTX_set_current_cert(X509_STORE_CTX *ctx, X509 *x);
154 \& X509 *X509_STORE_CTX_get0_cert(X509_STORE_CTX *ctx);
155 \&
156 \& STACK_OF(X509) *X509_STORE_CTX_get1_chain(X509_STORE_CTX *ctx);
157 \&
158 \& const char *X509_verify_cert_error_string(long n);
159 .Ve
160 .SH "DESCRIPTION"
161 .IX Header "DESCRIPTION"
162 These functions are typically called after \fBX509_verify_cert()\fR has indicated
163 an error or in a verification callback to determine the nature of an error.
164 .PP
165 \&\fBX509_STORE_CTX_get_error()\fR returns the error code of \fBctx\fR, see
166 the \fB\s-1ERROR CODES\s0\fR section for a full description of all error codes.
167 .PP
168 \&\fBX509_STORE_CTX_set_error()\fR sets the error code of \fBctx\fR to \fBs\fR. For example
169 it might be used in a verification callback to set an error based on additional
170 checks.
171 .PP
172 \&\fBX509_STORE_CTX_get_error_depth()\fR returns the \fBdepth\fR of the error. This is a
173 nonnegative integer representing where in the certificate chain the error
174 occurred. If it is zero it occurred in the end entity certificate, one if
175 it is the certificate which signed the end entity certificate and so on.
176 .PP
177 \&\fBX509_STORE_CTX_set_error_depth()\fR sets the error \fBdepth\fR.
178 This can be used in combination with \fBX509_STORE_CTX_set_error()\fR to set the
179 depth at which an error condition was detected.
180 .PP
181 \&\fBX509_STORE_CTX_get_current_cert()\fR returns the certificate in \fBctx\fR which
182 caused the error or \fB\s-1NULL\s0\fR if no certificate is relevant.
183 .PP
184 \&\fBX509_STORE_CTX_set_current_cert()\fR sets the certificate \fBx\fR in \fBctx\fR which
185 caused the error.
186 This value is not intended to remain valid for very long, and remains owned by
187 the caller.
188 It may be examined by a verification callback invoked to handle each error
189 encountered during chain verification and is no longer required after such a
190 callback.
191 If a callback wishes the save the certificate for use after it returns, it
192 needs to increment its reference count via \fBX509_up_ref\fR\|(3).
193 Once such a \fIsaved\fR certificate is no longer needed it can be freed with
194 \&\fBX509_free\fR\|(3).
195 .PP
196 \&\fBX509_STORE_CTX_get0_cert()\fR retrieves an internal pointer to the
197 certificate being verified by the \fBctx\fR.
198 .PP
199 \&\fBX509_STORE_CTX_get1_chain()\fR returns a complete validate chain if a previous
200 call to \fBX509_verify_cert()\fR is successful. If the call to \fBX509_verify_cert()\fR
201 is \fBnot\fR successful the returned chain may be incomplete or invalid. The
202 returned chain persists after the \fBctx\fR structure is freed, when it is
203 no longer needed it should be free up using:
204 .PP
205 .Vb 1
206 \& sk_X509_pop_free(chain, X509_free);
207 .Ve
208 .PP
209 \&\fBX509_verify_cert_error_string()\fR returns a human readable error string for
210 verification error \fBn\fR.
211 .SH "RETURN VALUES"
212 .IX Header "RETURN VALUES"
213 \&\fBX509_STORE_CTX_get_error()\fR returns \fBX509_V_OK\fR or an error code.
214 .PP
215 \&\fBX509_STORE_CTX_get_error_depth()\fR returns a nonnegative error depth.
216 .PP
217 \&\fBX509_STORE_CTX_get_current_cert()\fR returns the certificate which caused the
218 error or \fB\s-1NULL\s0\fR if no certificate is relevant to the error.
219 .PP
220 \&\fBX509_verify_cert_error_string()\fR returns a human readable error string for
221 verification error \fBn\fR.
222 .SH "ERROR CODES"
223 .IX Header "ERROR CODES"
224 A list of error codes and messages is shown below.  Some of the
225 error codes are defined but currently never returned: these are described as
226 \&\*(L"unused\*(R".
227 .IP "\fBX509_V_OK: ok\fR" 4
228 .IX Item "X509_V_OK: ok"
229 the operation was successful.
230 .IP "\fBX509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: unable to get issuer certificate\fR" 4
231 .IX Item "X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: unable to get issuer certificate"
232 the issuer certificate of a locally looked up certificate could not be found.
233 This normally means the list of trusted certificates is not complete.
234 .IP "\fBX509_V_ERR_UNABLE_TO_GET_CRL: unable to get certificate \s-1CRL\s0\fR" 4
235 .IX Item "X509_V_ERR_UNABLE_TO_GET_CRL: unable to get certificate CRL"
236 the \s-1CRL\s0 of a certificate could not be found.
237 .IP "\fBX509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE: unable to decrypt certificate's signature\fR" 4
238 .IX Item "X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE: unable to decrypt certificate's signature"
239 the certificate signature could not be decrypted. This means that the actual
240 signature value could not be determined rather than it not matching the
241 expected value, this is only meaningful for \s-1RSA\s0 keys.
242 .IP "\fBX509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE: unable to decrypt \s-1CRL\s0's signature\fR" 4
243 .IX Item "X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE: unable to decrypt CRL's signature"
244 the \s-1CRL\s0 signature could not be decrypted: this means that the actual signature
245 value could not be determined rather than it not matching the expected value.
246 Unused.
247 .IP "\fBX509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY: unable to decode issuer public key\fR" 4
248 .IX Item "X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY: unable to decode issuer public key"
249 the public key in the certificate SubjectPublicKeyInfo could not be read.
250 .IP "\fBX509_V_ERR_CERT_SIGNATURE_FAILURE: certificate signature failure\fR" 4
251 .IX Item "X509_V_ERR_CERT_SIGNATURE_FAILURE: certificate signature failure"
252 the signature of the certificate is invalid.
253 .IP "\fBX509_V_ERR_CRL_SIGNATURE_FAILURE: \s-1CRL\s0 signature failure\fR" 4
254 .IX Item "X509_V_ERR_CRL_SIGNATURE_FAILURE: CRL signature failure"
255 the signature of the certificate is invalid.
256 .IP "\fBX509_V_ERR_CERT_NOT_YET_VALID: certificate is not yet valid\fR" 4
257 .IX Item "X509_V_ERR_CERT_NOT_YET_VALID: certificate is not yet valid"
258 the certificate is not yet valid: the notBefore date is after the current time.
259 .IP "\fBX509_V_ERR_CERT_HAS_EXPIRED: certificate has expired\fR" 4
260 .IX Item "X509_V_ERR_CERT_HAS_EXPIRED: certificate has expired"
261 the certificate has expired: that is the notAfter date is before the current time.
262 .IP "\fBX509_V_ERR_CRL_NOT_YET_VALID: \s-1CRL\s0 is not yet valid\fR" 4
263 .IX Item "X509_V_ERR_CRL_NOT_YET_VALID: CRL is not yet valid"
264 the \s-1CRL\s0 is not yet valid.
265 .IP "\fBX509_V_ERR_CRL_HAS_EXPIRED: \s-1CRL\s0 has expired\fR" 4
266 .IX Item "X509_V_ERR_CRL_HAS_EXPIRED: CRL has expired"
267 the \s-1CRL\s0 has expired.
268 .IP "\fBX509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD: format error in certificate's notBefore field\fR" 4
269 .IX Item "X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD: format error in certificate's notBefore field"
270 the certificate notBefore field contains an invalid time.
271 .IP "\fBX509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD: format error in certificate's notAfter field\fR" 4
272 .IX Item "X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD: format error in certificate's notAfter field"
273 the certificate notAfter field contains an invalid time.
274 .IP "\fBX509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD: format error in \s-1CRL\s0's lastUpdate field\fR" 4
275 .IX Item "X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD: format error in CRL's lastUpdate field"
276 the \s-1CRL\s0 lastUpdate field contains an invalid time.
277 .IP "\fBX509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD: format error in \s-1CRL\s0's nextUpdate field\fR" 4
278 .IX Item "X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD: format error in CRL's nextUpdate field"
279 the \s-1CRL\s0 nextUpdate field contains an invalid time.
280 .IP "\fBX509_V_ERR_OUT_OF_MEM: out of memory\fR" 4
281 .IX Item "X509_V_ERR_OUT_OF_MEM: out of memory"
282 an error occurred trying to allocate memory. This should never happen.
283 .IP "\fBX509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT: self signed certificate\fR" 4
284 .IX Item "X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT: self signed certificate"
285 the passed certificate is self signed and the same certificate cannot be found
286 in the list of trusted certificates.
287 .IP "\fBX509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN: self signed certificate in certificate chain\fR" 4
288 .IX Item "X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN: self signed certificate in certificate chain"
289 the certificate chain could be built up using the untrusted certificates but
290 the root could not be found locally.
291 .IP "\fBX509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY: unable to get local issuer certificate\fR" 4
292 .IX Item "X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY: unable to get local issuer certificate"
293 the issuer certificate could not be found: this occurs if the issuer certificate
294 of an untrusted certificate cannot be found.
295 .IP "\fBX509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE: unable to verify the first certificate\fR" 4
296 .IX Item "X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE: unable to verify the first certificate"
297 no signatures could be verified because the chain contains only one certificate
298 and it is not self signed.
299 .IP "\fBX509_V_ERR_CERT_CHAIN_TOO_LONG: certificate chain too long\fR" 4
300 .IX Item "X509_V_ERR_CERT_CHAIN_TOO_LONG: certificate chain too long"
301 the certificate chain length is greater than the supplied maximum depth. Unused.
302 .IP "\fBX509_V_ERR_CERT_REVOKED: certificate revoked\fR" 4
303 .IX Item "X509_V_ERR_CERT_REVOKED: certificate revoked"
304 the certificate has been revoked.
305 .IP "\fBX509_V_ERR_INVALID_CA: invalid \s-1CA\s0 certificate\fR" 4
306 .IX Item "X509_V_ERR_INVALID_CA: invalid CA certificate"
307 a \s-1CA\s0 certificate is invalid. Either it is not a \s-1CA\s0 or its extensions are not
308 consistent with the supplied purpose.
309 .IP "\fBX509_V_ERR_PATH_LENGTH_EXCEEDED: path length constraint exceeded\fR" 4
310 .IX Item "X509_V_ERR_PATH_LENGTH_EXCEEDED: path length constraint exceeded"
311 the basicConstraints path-length parameter has been exceeded.
312 .IP "\fBX509_V_ERR_INVALID_PURPOSE: unsupported certificate purpose\fR" 4
313 .IX Item "X509_V_ERR_INVALID_PURPOSE: unsupported certificate purpose"
314 the supplied certificate cannot be used for the specified purpose.
315 .IP "\fBX509_V_ERR_CERT_UNTRUSTED: certificate not trusted\fR" 4
316 .IX Item "X509_V_ERR_CERT_UNTRUSTED: certificate not trusted"
317 the root \s-1CA\s0 is not marked as trusted for the specified purpose.
318 .IP "\fBX509_V_ERR_CERT_REJECTED: certificate rejected\fR" 4
319 .IX Item "X509_V_ERR_CERT_REJECTED: certificate rejected"
320 the root \s-1CA\s0 is marked to reject the specified purpose.
321 .IP "\fBX509_V_ERR_SUBJECT_ISSUER_MISMATCH: subject issuer mismatch\fR" 4
322 .IX Item "X509_V_ERR_SUBJECT_ISSUER_MISMATCH: subject issuer mismatch"
323 the current candidate issuer certificate was rejected because its subject name
324 did not match the issuer name of the current certificate. This is only set
325 if issuer check debugging is enabled it is used for status notification and
326 is \fBnot\fR in itself an error.
327 .IP "\fBX509_V_ERR_AKID_SKID_MISMATCH: authority and subject key identifier mismatch\fR" 4
328 .IX Item "X509_V_ERR_AKID_SKID_MISMATCH: authority and subject key identifier mismatch"
329 the current candidate issuer certificate was rejected because its subject key
330 identifier was present and did not match the authority key identifier current
331 certificate. This is only set if issuer check debugging is enabled it is used
332 for status notification and is \fBnot\fR in itself an error.
333 .IP "\fBX509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH: authority and issuer serial number mismatch\fR" 4
334 .IX Item "X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH: authority and issuer serial number mismatch"
335 the current candidate issuer certificate was rejected because its issuer name
336 and serial number was present and did not match the authority key identifier of
337 the current certificate. This is only set if issuer check debugging is enabled
338 it is used for status notification and is \fBnot\fR in itself an error.
339 .IP "\fBX509_V_ERR_KEYUSAGE_NO_CERTSIGN:key usage does not include certificate signing\fR" 4
340 .IX Item "X509_V_ERR_KEYUSAGE_NO_CERTSIGN:key usage does not include certificate signing"
341 the current candidate issuer certificate was rejected because its keyUsage
342 extension does not permit certificate signing. This is only set if issuer check
343 debugging is enabled it is used for status notification and is \fBnot\fR in itself
344 an error.
345 .IP "\fBX509_V_ERR_INVALID_EXTENSION: invalid or inconsistent certificate extension\fR" 4
346 .IX Item "X509_V_ERR_INVALID_EXTENSION: invalid or inconsistent certificate extension"
347 A certificate extension had an invalid value (for example an incorrect
348 encoding) or some value inconsistent with other extensions.
349 .IP "\fBX509_V_ERR_INVALID_POLICY_EXTENSION: invalid or inconsistent certificate policy extension\fR" 4
350 .IX Item "X509_V_ERR_INVALID_POLICY_EXTENSION: invalid or inconsistent certificate policy extension"
351 A certificate policies extension had an invalid value (for example an incorrect
352 encoding) or some value inconsistent with other extensions. This error only
353 occurs if policy processing is enabled.
354 .IP "\fBX509_V_ERR_NO_EXPLICIT_POLICY: no explicit policy\fR" 4
355 .IX Item "X509_V_ERR_NO_EXPLICIT_POLICY: no explicit policy"
356 The verification flags were set to require and explicit policy but none was
357 present.
358 .IP "\fBX509_V_ERR_DIFFERENT_CRL_SCOPE: Different \s-1CRL\s0 scope\fR" 4
359 .IX Item "X509_V_ERR_DIFFERENT_CRL_SCOPE: Different CRL scope"
360 The only CRLs that could be found did not match the scope of the certificate.
361 .IP "\fBX509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE: Unsupported extension feature\fR" 4
362 .IX Item "X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE: Unsupported extension feature"
363 Some feature of a certificate extension is not supported. Unused.
364 .IP "\fBX509_V_ERR_PERMITTED_VIOLATION: permitted subtree violation\fR" 4
365 .IX Item "X509_V_ERR_PERMITTED_VIOLATION: permitted subtree violation"
366 A name constraint violation occurred in the permitted subtrees.
367 .IP "\fBX509_V_ERR_EXCLUDED_VIOLATION: excluded subtree violation\fR" 4
368 .IX Item "X509_V_ERR_EXCLUDED_VIOLATION: excluded subtree violation"
369 A name constraint violation occurred in the excluded subtrees.
370 .IP "\fBX509_V_ERR_SUBTREE_MINMAX: name constraints minimum and maximum not supported\fR" 4
371 .IX Item "X509_V_ERR_SUBTREE_MINMAX: name constraints minimum and maximum not supported"
372 A certificate name constraints extension included a minimum or maximum field:
373 this is not supported.
374 .IP "\fBX509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE: unsupported name constraint type\fR" 4
375 .IX Item "X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE: unsupported name constraint type"
376 An unsupported name constraint type was encountered. OpenSSL currently only
377 supports directory name, \s-1DNS\s0 name, email and \s-1URI\s0 types.
378 .IP "\fBX509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX: unsupported or invalid name constraint syntax\fR" 4
379 .IX Item "X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX: unsupported or invalid name constraint syntax"
380 The format of the name constraint is not recognised: for example an email
381 address format of a form not mentioned in \s-1RFC3280.\s0 This could be caused by
382 a garbage extension or some new feature not currently supported.
383 .IP "\fBX509_V_ERR_CRL_PATH_VALIDATION_ERROR: \s-1CRL\s0 path validation error\fR" 4
384 .IX Item "X509_V_ERR_CRL_PATH_VALIDATION_ERROR: CRL path validation error"
385 An error occurred when attempting to verify the \s-1CRL\s0 path. This error can only
386 happen if extended \s-1CRL\s0 checking is enabled.
387 .IP "\fBX509_V_ERR_APPLICATION_VERIFICATION: application verification failure\fR" 4
388 .IX Item "X509_V_ERR_APPLICATION_VERIFICATION: application verification failure"
389 an application specific error. This will never be returned unless explicitly
390 set by an application.
391 .SH "NOTES"
392 .IX Header "NOTES"
393 The above functions should be used instead of directly referencing the fields
394 in the \fBX509_VERIFY_CTX\fR structure.
395 .PP
396 In versions of OpenSSL before 1.0 the current certificate returned by
397 \&\fBX509_STORE_CTX_get_current_cert()\fR was never \fB\s-1NULL\s0\fR. Applications should
398 check the return value before printing out any debugging information relating
399 to the current certificate.
400 .PP
401 If an unrecognised error code is passed to \fBX509_verify_cert_error_string()\fR the
402 numerical value of the unknown code is returned in a static buffer. This is not
403 thread safe but will never happen unless an invalid code is passed.
404 .SH "SEE ALSO"
405 .IX Header "SEE ALSO"
406 \&\fBX509_verify_cert\fR\|(3),
407 \&\fBX509_up_ref\fR\|(3),
408 \&\fBX509_free\fR\|(3).
409 .SH "COPYRIGHT"
410 .IX Header "COPYRIGHT"
411 Copyright 2009\-2020 The OpenSSL Project Authors. All Rights Reserved.
412 .PP
413 Licensed under the OpenSSL license (the \*(L"License\*(R").  You may not use
414 this file except in compliance with the License.  You can obtain a copy
415 in the file \s-1LICENSE\s0 in the source distribution or at
416 <https://www.openssl.org/source/license.html>.