Local adjustments for OpenSSL-1.0.1p.
[dragonfly.git] / secure / lib / libcrypto / man / X509_STORE_CTX_get_error.3
CommitLineData
5a44c043 1.\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28)
01185282
PA
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" ''
5a44c043
SW
41. ds C`
42. ds C'
01185282
PA
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 turned on, 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.
5a44c043
SW
53.\"
54.\" Avoid warning from groff about undefined register 'F'.
55.de IX
01185282 56..
5a44c043
SW
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"
01185282 63..
5a44c043
SW
64. if !\nF==2 \{
65. nr % 0
66. nr F 2
67. \}
68. \}
01185282 69.\}
5a44c043 70.rr rF
01185282
PA
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"
7dc78669 136.TH X509_STORE_CTX_get_error 3 "2015-07-09" "1.0.1p" "OpenSSL"
01185282
PA
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"
142X509_STORE_CTX_get_error, X509_STORE_CTX_set_error, X509_STORE_CTX_get_error_depth, X509_STORE_CTX_get_current_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 2
146\& #include <openssl/x509.h>
147\& #include <openssl/x509_vfy.h>
148\&
149\& int X509_STORE_CTX_get_error(X509_STORE_CTX *ctx);
150\& void X509_STORE_CTX_set_error(X509_STORE_CTX *ctx,int s);
151\& int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx);
152\& X509 * X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx);
153\&
154\& STACK_OF(X509) *X509_STORE_CTX_get1_chain(X509_STORE_CTX *ctx);
155\&
156\& const char *X509_verify_cert_error_string(long n);
157.Ve
158.SH "DESCRIPTION"
159.IX Header "DESCRIPTION"
160These functions are typically called after \fIX509_verify_cert()\fR has indicated
161an error or in a verification callback to determine the nature of an error.
162.PP
163\&\fIX509_STORE_CTX_get_error()\fR returns the error code of \fBctx\fR, see
5a44c043 164the \fB\s-1ERROR CODES\s0\fR section for a full description of all error codes.
01185282
PA
165.PP
166\&\fIX509_STORE_CTX_set_error()\fR sets the error code of \fBctx\fR to \fBs\fR. For example
167it might be used in a verification callback to set an error based on additional
168checks.
169.PP
170\&\fIX509_STORE_CTX_get_error_depth()\fR returns the \fBdepth\fR of the error. This is a
171non-negative integer representing where in the certificate chain the error
172occurred. If it is zero it occured in the end entity certificate, one if
173it is the certificate which signed the end entity certificate and so on.
174.PP
175\&\fIX509_STORE_CTX_get_current_cert()\fR returns the certificate in \fBctx\fR which
176caused the error or \fB\s-1NULL\s0\fR if no certificate is relevant.
177.PP
178\&\fIX509_STORE_CTX_get1_chain()\fR returns a complete validate chain if a previous
179call to \fIX509_verify_cert()\fR is successful. If the call to \fIX509_verify_cert()\fR
180is \fBnot\fR successful the returned chain may be incomplete or invalid. The
181returned chain persists after the \fBctx\fR structure is freed, when it is
182no longer needed it should be free up using:
183.PP
184.Vb 1
185\& sk_X509_pop_free(chain, X509_free);
186.Ve
187.PP
188\&\fIX509_verify_cert_error_string()\fR returns a human readable error string for
189verification error \fBn\fR.
190.SH "RETURN VALUES"
191.IX Header "RETURN VALUES"
192\&\fIX509_STORE_CTX_get_error()\fR returns \fBX509_V_OK\fR or an error code.
193.PP
194\&\fIX509_STORE_CTX_get_error_depth()\fR returns a non-negative error depth.
195.PP
196\&\fIX509_STORE_CTX_get_current_cert()\fR returns the cerificate which caused the
197error or \fB\s-1NULL\s0\fR if no certificate is relevant to the error.
198.PP
199\&\fIX509_verify_cert_error_string()\fR returns a human readable error string for
200verification error \fBn\fR.
201.SH "ERROR CODES"
202.IX Header "ERROR CODES"
203A list of error codes and messages is shown below. Some of the
204error codes are defined but currently never returned: these are described as
205\&\*(L"unused\*(R".
206.IP "\fBX509_V_OK: ok\fR" 4
207.IX Item "X509_V_OK: ok"
208the operation was successful.
209.IP "\fBX509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: unable to get issuer certificate\fR" 4
210.IX Item "X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: unable to get issuer certificate"
211the issuer certificate could not be found: this occurs if the issuer certificate
212of an untrusted certificate cannot be found.
213.IP "\fBX509_V_ERR_UNABLE_TO_GET_CRL: unable to get certificate \s-1CRL\s0\fR" 4
214.IX Item "X509_V_ERR_UNABLE_TO_GET_CRL: unable to get certificate CRL"
215the \s-1CRL\s0 of a certificate could not be found.
216.IP "\fBX509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE: unable to decrypt certificate's signature\fR" 4
217.IX Item "X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE: unable to decrypt certificate's signature"
218the certificate signature could not be decrypted. This means that the actual
219signature value could not be determined rather than it not matching the
220expected value, this is only meaningful for \s-1RSA\s0 keys.
221.IP "\fBX509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE: unable to decrypt \s-1CRL\s0's signature\fR" 4
222.IX Item "X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE: unable to decrypt CRL's signature"
223the \s-1CRL\s0 signature could not be decrypted: this means that the actual signature
224value could not be determined rather than it not matching the expected value.
225Unused.
226.IP "\fBX509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY: unable to decode issuer public key\fR" 4
227.IX Item "X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY: unable to decode issuer public key"
228the public key in the certificate SubjectPublicKeyInfo could not be read.
229.IP "\fBX509_V_ERR_CERT_SIGNATURE_FAILURE: certificate signature failure\fR" 4
230.IX Item "X509_V_ERR_CERT_SIGNATURE_FAILURE: certificate signature failure"
231the signature of the certificate is invalid.
232.IP "\fBX509_V_ERR_CRL_SIGNATURE_FAILURE: \s-1CRL\s0 signature failure\fR" 4
233.IX Item "X509_V_ERR_CRL_SIGNATURE_FAILURE: CRL signature failure"
234the signature of the certificate is invalid.
235.IP "\fBX509_V_ERR_CERT_NOT_YET_VALID: certificate is not yet valid\fR" 4
236.IX Item "X509_V_ERR_CERT_NOT_YET_VALID: certificate is not yet valid"
237the certificate is not yet valid: the notBefore date is after the current time.
238.IP "\fBX509_V_ERR_CERT_HAS_EXPIRED: certificate has expired\fR" 4
239.IX Item "X509_V_ERR_CERT_HAS_EXPIRED: certificate has expired"
240the certificate has expired: that is the notAfter date is before the current time.
241.IP "\fBX509_V_ERR_CRL_NOT_YET_VALID: \s-1CRL\s0 is not yet valid\fR" 4
242.IX Item "X509_V_ERR_CRL_NOT_YET_VALID: CRL is not yet valid"
243the \s-1CRL\s0 is not yet valid.
244.IP "\fBX509_V_ERR_CRL_HAS_EXPIRED: \s-1CRL\s0 has expired\fR" 4
245.IX Item "X509_V_ERR_CRL_HAS_EXPIRED: CRL has expired"
246the \s-1CRL\s0 has expired.
247.IP "\fBX509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD: format error in certificate's notBefore field\fR" 4
248.IX Item "X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD: format error in certificate's notBefore field"
249the certificate notBefore field contains an invalid time.
250.IP "\fBX509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD: format error in certificate's notAfter field\fR" 4
251.IX Item "X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD: format error in certificate's notAfter field"
252the certificate notAfter field contains an invalid time.
253.IP "\fBX509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD: format error in \s-1CRL\s0's lastUpdate field\fR" 4
254.IX Item "X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD: format error in CRL's lastUpdate field"
255the \s-1CRL\s0 lastUpdate field contains an invalid time.
256.IP "\fBX509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD: format error in \s-1CRL\s0's nextUpdate field\fR" 4
257.IX Item "X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD: format error in CRL's nextUpdate field"
258the \s-1CRL\s0 nextUpdate field contains an invalid time.
259.IP "\fBX509_V_ERR_OUT_OF_MEM: out of memory\fR" 4
260.IX Item "X509_V_ERR_OUT_OF_MEM: out of memory"
261an error occurred trying to allocate memory. This should never happen.
262.IP "\fBX509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT: self signed certificate\fR" 4
263.IX Item "X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT: self signed certificate"
264the passed certificate is self signed and the same certificate cannot be found
265in the list of trusted certificates.
266.IP "\fBX509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN: self signed certificate in certificate chain\fR" 4
267.IX Item "X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN: self signed certificate in certificate chain"
268the certificate chain could be built up using the untrusted certificates but
269the root could not be found locally.
270.IP "\fBX509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY: unable to get local issuer certificate\fR" 4
271.IX Item "X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY: unable to get local issuer certificate"
272the issuer certificate of a locally looked up certificate could not be found.
273This normally means the list of trusted certificates is not complete.
274.IP "\fBX509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE: unable to verify the first certificate\fR" 4
275.IX Item "X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE: unable to verify the first certificate"
276no signatures could be verified because the chain contains only one certificate
277and it is not self signed.
278.IP "\fBX509_V_ERR_CERT_CHAIN_TOO_LONG: certificate chain too long\fR" 4
279.IX Item "X509_V_ERR_CERT_CHAIN_TOO_LONG: certificate chain too long"
280the certificate chain length is greater than the supplied maximum depth. Unused.
281.IP "\fBX509_V_ERR_CERT_REVOKED: certificate revoked\fR" 4
282.IX Item "X509_V_ERR_CERT_REVOKED: certificate revoked"
283the certificate has been revoked.
284.IP "\fBX509_V_ERR_INVALID_CA: invalid \s-1CA\s0 certificate\fR" 4
285.IX Item "X509_V_ERR_INVALID_CA: invalid CA certificate"
286a \s-1CA\s0 certificate is invalid. Either it is not a \s-1CA\s0 or its extensions are not
287consistent with the supplied purpose.
288.IP "\fBX509_V_ERR_PATH_LENGTH_EXCEEDED: path length constraint exceeded\fR" 4
289.IX Item "X509_V_ERR_PATH_LENGTH_EXCEEDED: path length constraint exceeded"
290the basicConstraints pathlength parameter has been exceeded.
291.IP "\fBX509_V_ERR_INVALID_PURPOSE: unsupported certificate purpose\fR" 4
292.IX Item "X509_V_ERR_INVALID_PURPOSE: unsupported certificate purpose"
293the supplied certificate cannot be used for the specified purpose.
294.IP "\fBX509_V_ERR_CERT_UNTRUSTED: certificate not trusted\fR" 4
295.IX Item "X509_V_ERR_CERT_UNTRUSTED: certificate not trusted"
296the root \s-1CA\s0 is not marked as trusted for the specified purpose.
297.IP "\fBX509_V_ERR_CERT_REJECTED: certificate rejected\fR" 4
298.IX Item "X509_V_ERR_CERT_REJECTED: certificate rejected"
299the root \s-1CA\s0 is marked to reject the specified purpose.
300.IP "\fBX509_V_ERR_SUBJECT_ISSUER_MISMATCH: subject issuer mismatch\fR" 4
301.IX Item "X509_V_ERR_SUBJECT_ISSUER_MISMATCH: subject issuer mismatch"
302the current candidate issuer certificate was rejected because its subject name
303did not match the issuer name of the current certificate. This is only set
304if issuer check debugging is enabled it is used for status notification and
305is \fBnot\fR in itself an error.
306.IP "\fBX509_V_ERR_AKID_SKID_MISMATCH: authority and subject key identifier mismatch\fR" 4
307.IX Item "X509_V_ERR_AKID_SKID_MISMATCH: authority and subject key identifier mismatch"
308the current candidate issuer certificate was rejected because its subject key
309identifier was present and did not match the authority key identifier current
310certificate. This is only set if issuer check debugging is enabled it is used
311for status notification and is \fBnot\fR in itself an error.
312.IP "\fBX509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH: authority and issuer serial number mismatch\fR" 4
313.IX Item "X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH: authority and issuer serial number mismatch"
314the current candidate issuer certificate was rejected because its issuer name
315and serial number was present and did not match the authority key identifier of
316the current certificate. This is only set if issuer check debugging is enabled
317it is used for status notification and is \fBnot\fR in itself an error.
318.IP "\fBX509_V_ERR_KEYUSAGE_NO_CERTSIGN:key usage does not include certificate signing\fR" 4
319.IX Item "X509_V_ERR_KEYUSAGE_NO_CERTSIGN:key usage does not include certificate signing"
320the current candidate issuer certificate was rejected because its keyUsage
321extension does not permit certificate signing. This is only set if issuer check
322debugging is enabled it is used for status notification and is \fBnot\fR in itself
323an error.
324.IP "\fBX509_V_ERR_INVALID_EXTENSION: invalid or inconsistent certificate extension\fR" 4
325.IX Item "X509_V_ERR_INVALID_EXTENSION: invalid or inconsistent certificate extension"
326A certificate extension had an invalid value (for example an incorrect
327encoding) or some value inconsistent with other extensions.
328.IP "\fBX509_V_ERR_INVALID_POLICY_EXTENSION: invalid or inconsistent certificate policy extension\fR" 4
329.IX Item "X509_V_ERR_INVALID_POLICY_EXTENSION: invalid or inconsistent certificate policy extension"
330A certificate policies extension had an invalid value (for example an incorrect
331encoding) or some value inconsistent with other extensions. This error only
332occurs if policy processing is enabled.
333.IP "\fBX509_V_ERR_NO_EXPLICIT_POLICY: no explicit policy\fR" 4
334.IX Item "X509_V_ERR_NO_EXPLICIT_POLICY: no explicit policy"
335The verification flags were set to require and explicit policy but none was
336present.
337.IP "\fBX509_V_ERR_DIFFERENT_CRL_SCOPE: Different \s-1CRL\s0 scope\fR" 4
338.IX Item "X509_V_ERR_DIFFERENT_CRL_SCOPE: Different CRL scope"
339The only CRLs that could be found did not match the scope of the certificate.
340.IP "\fBX509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE: Unsupported extension feature\fR" 4
341.IX Item "X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE: Unsupported extension feature"
342Some feature of a certificate extension is not supported. Unused.
343.IP "\fBX509_V_ERR_PERMITTED_VIOLATION: permitted subtree violation\fR" 4
344.IX Item "X509_V_ERR_PERMITTED_VIOLATION: permitted subtree violation"
345A name constraint violation occured in the permitted subtrees.
346.IP "\fBX509_V_ERR_EXCLUDED_VIOLATION: excluded subtree violation\fR" 4
347.IX Item "X509_V_ERR_EXCLUDED_VIOLATION: excluded subtree violation"
348A name constraint violation occured in the excluded subtrees.
349.IP "\fBX509_V_ERR_SUBTREE_MINMAX: name constraints minimum and maximum not supported\fR" 4
350.IX Item "X509_V_ERR_SUBTREE_MINMAX: name constraints minimum and maximum not supported"
351A certificate name constraints extension included a minimum or maximum field:
352this is not supported.
353.IP "\fBX509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE: unsupported name constraint type\fR" 4
354.IX Item "X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE: unsupported name constraint type"
355An unsupported name constraint type was encountered. OpenSSL currently only
356supports directory name, \s-1DNS\s0 name, email and \s-1URI\s0 types.
357.IP "\fBX509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX: unsupported or invalid name constraint syntax\fR" 4
358.IX Item "X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX: unsupported or invalid name constraint syntax"
359The format of the name constraint is not recognised: for example an email
5a44c043 360address format of a form not mentioned in \s-1RFC3280.\s0 This could be caused by
01185282
PA
361a garbage extension or some new feature not currently supported.
362.IP "\fBX509_V_ERR_CRL_PATH_VALIDATION_ERROR: \s-1CRL\s0 path validation error\fR" 4
363.IX Item "X509_V_ERR_CRL_PATH_VALIDATION_ERROR: CRL path validation error"
364An error occured when attempting to verify the \s-1CRL\s0 path. This error can only
365happen if extended \s-1CRL\s0 checking is enabled.
366.IP "\fBX509_V_ERR_APPLICATION_VERIFICATION: application verification failure\fR" 4
367.IX Item "X509_V_ERR_APPLICATION_VERIFICATION: application verification failure"
368an application specific error. This will never be returned unless explicitly
369set by an application.
370.SH "NOTES"
371.IX Header "NOTES"
372The above functions should be used instead of directly referencing the fields
373in the \fBX509_VERIFY_CTX\fR structure.
374.PP
375In versions of OpenSSL before 1.0 the current certificate returned by
376\&\fIX509_STORE_CTX_get_current_cert()\fR was never \fB\s-1NULL\s0\fR. Applications should
377check the return value before printing out any debugging information relating
378to the current certificate.
379.PP
380If an unrecognised error code is passed to \fIX509_verify_cert_error_string()\fR the
381numerical value of the unknown code is returned in a static buffer. This is not
382thread safe but will never happen unless an invalid code is passed.
383.SH "SEE ALSO"
384.IX Header "SEE ALSO"
385\&\fIX509_verify_cert\fR\|(3)
386.SH "HISTORY"
387.IX Header "HISTORY"
388\&\s-1TBA\s0