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