Debian Codegraph @

templates/man3/X509_STORE_CTX_set_verify_cb.3ssl.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:51+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # #-#-#-#-# archlinux: X509_STORE_CTX_set_verify_cb.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
20 #
21 #. #-#-#-#-# archlinux: X509_STORE_CTX_set_verify_cb.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
22 #. Required to disable full justification in groff 1.23.0.
23 #. ========================================================================
24 #. type: IX
25 #. #-#-#-#-# debian-trixie: X509_STORE_CTX_set_verify_cb.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
26 #. ========================================================================
27 #. type: IX
28 #. #-#-#-#-# debian-unstable: X509_STORE_CTX_set_verify_cb.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
29 #. ========================================================================
30 #. type: IX
31 #: archlinux debian-trixie debian-unstable
32 #, no-wrap
33 msgid "Title"
34 msgstr ""
35
36 #
37 #. Required to disable full justification in groff 1.23.0.
38 #. ========================================================================
39 #. type: IX
40 #: archlinux
41 #, no-wrap
42 msgid "X509_STORE_CTX_SET_VERIFY_CB 3ssl"
43 msgstr ""
44
45 #. type: TH
46 #: archlinux debian-trixie debian-unstable
47 #, no-wrap
48 msgid "X509_STORE_CTX_SET_VERIFY_CB"
49 msgstr ""
50
51 #. type: TH
52 #: archlinux debian-trixie debian-unstable
53 #, no-wrap
54 msgid "2026-04-07"
55 msgstr ""
56
57 #. type: TH
58 #: archlinux debian-unstable
59 #, no-wrap
60 msgid "3.6.2"
61 msgstr ""
62
63 #. type: TH
64 #: archlinux debian-trixie debian-unstable
65 #, no-wrap
66 msgid "OpenSSL"
67 msgstr ""
68
69 #. type: SH
70 #: archlinux debian-trixie debian-unstable
71 #, no-wrap
72 msgid "NAME"
73 msgstr ""
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable
77 msgid ""
78 "X509_STORE_CTX_get_cleanup, X509_STORE_CTX_get_lookup_crls, "
79 "X509_STORE_CTX_get_lookup_certs, X509_STORE_CTX_get_check_policy, "
80 "X509_STORE_CTX_get_cert_crl, X509_STORE_CTX_get_check_crl, "
81 "X509_STORE_CTX_get_get_crl, X509_STORE_CTX_set_get_crl, "
82 "X509_STORE_CTX_get_check_revocation, X509_STORE_CTX_get_check_issued, "
83 "X509_STORE_CTX_get_get_issuer, X509_STORE_CTX_get_verify_cb, "
84 "X509_STORE_CTX_set_verify_cb, X509_STORE_CTX_verify_cb, "
85 "X509_STORE_CTX_print_verify_cb, X509_STORE_CTX_set_current_reasons \\&- get "
86 "and set X509_STORE_CTX components such as verification callback"
87 msgstr ""
88
89 #. type: IX
90 #: archlinux debian-trixie debian-unstable
91 #, no-wrap
92 msgid "SYNOPSIS"
93 msgstr ""
94
95 #. type: IX
96 #: archlinux debian-trixie debian-unstable
97 #, no-wrap
98 msgid "Header"
99 msgstr ""
100
101 #. type: Plain text
102 #: archlinux debian-trixie debian-unstable
103 #, no-wrap
104 msgid ""
105 "\\& #include E<lt>openssl/x509_vfy.hE<gt>\n"
106 "\\&\n"
107 "\\& typedef int (*X509_STORE_CTX_verify_cb)(int, X509_STORE_CTX *);\n"
108 "\\& int X509_STORE_CTX_print_verify_cb(int ok, X509_STORE_CTX *ctx);\n"
109 "\\&\n"
110 "\\& X509_STORE_CTX_verify_cb X509_STORE_CTX_get_verify_cb(X509_STORE_CTX *ctx);\n"
111 "\\&\n"
112 "\\& void X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx,\n"
113 "\\& X509_STORE_CTX_verify_cb verify_cb);\n"
114 "\\&\n"
115 "\\& X509_STORE_CTX_get_issuer_fn X509_STORE_CTX_get_get_issuer(X509_STORE_CTX *ctx);\n"
116 "\\& X509_STORE_CTX_check_issued_fn X509_STORE_CTX_get_check_issued(X509_STORE_CTX *ctx);\n"
117 "\\& X509_STORE_CTX_check_revocation_fn X509_STORE_CTX_get_check_revocation(X509_STORE_CTX *ctx);\n"
118 "\\&\n"
119 "\\& X509_STORE_CTX_get_crl_fn X509_STORE_CTX_get_get_crl(X509_STORE_CTX *ctx);\n"
120 "\\&\n"
121 "\\& void X509_STORE_CTX_set_get_crl(X509_STORE_CTX *ctx,\n"
122 "\\& X509_STORE_CTX_get_crl_fn get_crl);\n"
123 "\\&\n"
124 "\\& X509_STORE_CTX_check_crl_fn X509_STORE_CTX_get_check_crl(X509_STORE_CTX *ctx);\n"
125 "\\& X509_STORE_CTX_cert_crl_fn X509_STORE_CTX_get_cert_crl(X509_STORE_CTX *ctx);\n"
126 "\\& X509_STORE_CTX_check_policy_fn X509_STORE_CTX_get_check_policy(X509_STORE_CTX *ctx);\n"
127 "\\& X509_STORE_CTX_lookup_certs_fn X509_STORE_CTX_get_lookup_certs(X509_STORE_CTX *ctx);\n"
128 "\\& X509_STORE_CTX_lookup_crls_fn X509_STORE_CTX_get_lookup_crls(X509_STORE_CTX *ctx);\n"
129 "\\& X509_STORE_CTX_cleanup_fn X509_STORE_CTX_get_cleanup(X509_STORE_CTX *ctx);\n"
130 "\\& void X509_STORE_CTX_set_current_reasons(X509_STORE_CTX *ctx,\n"
131 "\\& unsigned int current_reasons);\n"
132 msgstr ""
133
134 #. type: IX
135 #: archlinux debian-trixie debian-unstable
136 #, no-wrap
137 msgid "DESCRIPTION"
138 msgstr ""
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable
142 msgid ""
143 "\\&B<X509_STORE_CTX_set_verify_cb()> sets the verification callback of "
144 "B<ctx> to \\&B<verify_cb> overwriting any existing callback."
145 msgstr ""
146
147 #. type: Plain text
148 #: archlinux debian-trixie debian-unstable
149 msgid ""
150 "The verification callback can be used to customise the operation of "
151 "certificate verification, for instance by overriding error conditions or "
152 "logging errors for debugging purposes."
153 msgstr ""
154
155 #. type: Plain text
156 #: archlinux debian-trixie debian-unstable
157 msgid ""
158 "However, a verification callback is B<not> essential and the default "
159 "operation is often sufficient."
160 msgstr ""
161
162 #. type: Plain text
163 #: archlinux debian-trixie debian-unstable
164 msgid ""
165 "The B<ok> parameter to the callback indicates the value the callback should "
166 "return to retain the default behaviour. If it is zero then an error "
167 "condition is indicated. If it is 1 then no error occurred. If the flag "
168 "\\&B<X509_V_FLAG_NOTIFY_POLICY> is set then B<ok> is set to 2 to indicate "
169 "the policy checking is complete."
170 msgstr ""
171
172 #. type: Plain text
173 #: archlinux debian-trixie debian-unstable
174 msgid ""
175 "The B<ctx> parameter to the callback is the B<X509_STORE_CTX> structure that "
176 "is performing the verification operation. A callback can examine this "
177 "structure and receive additional information about the error, for example by "
178 "calling B<X509_STORE_CTX_get_current_cert()>. Additional application data "
179 "can be passed to the callback via the B<ex_data> mechanism."
180 msgstr ""
181
182 #. type: Plain text
183 #: archlinux debian-trixie debian-unstable
184 msgid ""
185 "\\&B<X509_STORE_CTX_print_verify_cb()> is a verification callback function "
186 "that, when a certificate verification has failed, adds an entry to the error "
187 "queue with code B<X509_R_CERTIFICATE_VERIFICATION_FAILED> and with "
188 "diagnostic details, including the most relevant fields of the target "
189 "certificate that failed to verify and, if appropriate, of the available "
190 "untrusted and trusted certificates."
191 msgstr ""
192
193 #. type: Plain text
194 #: archlinux debian-trixie debian-unstable
195 msgid ""
196 "\\&B<X509_STORE_CTX_get_verify_cb()> returns the value of the current "
197 "callback for the specific B<ctx>."
198 msgstr ""
199
200 #. type: Plain text
201 #: archlinux debian-trixie debian-unstable
202 msgid ""
203 "\\&B<X509_STORE_CTX_get_get_issuer()>, "
204 "\\&B<X509_STORE_CTX_get_check_issued()>, "
205 "B<X509_STORE_CTX_get_check_revocation()>, "
206 "\\&B<X509_STORE_CTX_get_get_crl()>, B<X509_STORE_CTX_get_check_crl()>, "
207 "\\&B<X509_STORE_CTX_get_cert_crl()>, B<X509_STORE_CTX_get_check_policy()>, "
208 "\\&B<X509_STORE_CTX_get_lookup_certs()>, B<X509_STORE_CTX_get_lookup_crls()> "
209 "and B<X509_STORE_CTX_get_cleanup()> return the function pointers cached from "
210 "the corresponding B<X509_STORE>, please see \\&B<X509_STORE_set_verify>\\|"
211 "(3) for more information."
212 msgstr ""
213
214 #. type: Plain text
215 #: archlinux debian-trixie debian-unstable
216 msgid ""
217 "\\&B<X509_STORE_CTX_set_get_crl()> sets the function to get the crl for a "
218 "given certificate I<x>. When found, the crl must be assigned to I<*crl>. "
219 "This function must return 0 on failure and 1 on success. \\&I<If no "
220 "function to get the issuer is provided, the internal default function will "
221 "be used instead.>"
222 msgstr ""
223
224 #. type: Plain text
225 #: archlinux debian-trixie debian-unstable
226 msgid ""
227 "\\&B<X509_STORE_CTX_set_current_reasons()> is used in conjunction with "
228 "X509_STORE_CTX_get_crl_fn. The X509_STORE_CTX_get_crl_fn callback must use "
229 "this method to set the reason why the certificate is invalid."
230 msgstr ""
231
232 #. type: IX
233 #: archlinux debian-trixie debian-unstable
234 #, no-wrap
235 msgid "WARNINGS"
236 msgstr ""
237
238 #. type: Plain text
239 #: archlinux debian-trixie debian-unstable
240 msgid ""
241 "In general a verification callback should B<NOT> unconditionally return 1 in "
242 "all circumstances because this will allow verification to succeed no matter "
243 "what the error. This effectively removes all security from the application "
244 "because B<any> certificate (including untrusted generated ones) will be "
245 "accepted."
246 msgstr ""
247
248 #. type: IX
249 #: archlinux debian-trixie debian-unstable
250 #, no-wrap
251 msgid "NOTES"
252 msgstr ""
253
254 #. type: Plain text
255 #: archlinux debian-trixie debian-unstable
256 msgid ""
257 "The verification callback can be set and inherited from the parent structure "
258 "performing the operation. In some cases (such as S/MIME verification) the "
259 "\\&B<X509_STORE_CTX> structure is created and destroyed internally and the "
260 "only way to set a custom verification callback is by inheriting it from the "
261 "associated B<X509_STORE>."
262 msgstr ""
263
264 #. type: IX
265 #: archlinux debian-trixie debian-unstable
266 #, no-wrap
267 msgid "RETURN VALUES"
268 msgstr ""
269
270 #. type: Plain text
271 #: archlinux debian-trixie debian-unstable
272 msgid "\\&B<X509_STORE_CTX_set_verify_cb()> does not return a value."
273 msgstr ""
274
275 #. type: IX
276 #: archlinux debian-trixie debian-unstable
277 #, no-wrap
278 msgid "EXAMPLES"
279 msgstr ""
280
281 #. type: Plain text
282 #: archlinux debian-trixie debian-unstable
283 msgid "Default callback operation:"
284 msgstr ""
285
286 #. type: Plain text
287 #: archlinux debian-trixie debian-unstable
288 #, no-wrap
289 msgid ""
290 "\\& int verify_callback(int ok, X509_STORE_CTX *ctx) {\n"
291 "\\& return ok;\n"
292 "\\& }\n"
293 msgstr ""
294
295 #. type: Plain text
296 #: archlinux debian-trixie debian-unstable
297 msgid ""
298 "Simple example, suppose a certificate in the chain is expired and we wish to "
299 "continue after this error:"
300 msgstr ""
301
302 #. type: Plain text
303 #: archlinux debian-trixie debian-unstable
304 #, no-wrap
305 msgid ""
306 "\\& int verify_callback(int ok, X509_STORE_CTX *ctx) {\n"
307 "\\& /* Tolerate certificate expiration */\n"
308 "\\& if (X509_STORE_CTX_get_error(ctx) == X509_V_ERR_CERT_HAS_EXPIRED)\n"
309 "\\& return 1;\n"
310 "\\& /* Otherwise don\\*(Aqt override */\n"
311 "\\& return ok;\n"
312 "\\& }\n"
313 msgstr ""
314
315 #. type: Plain text
316 #: archlinux
317 msgid ""
318 "More complex example, we don\\*(Aqt wish to continue after B<any> "
319 "certificate has expired just one specific case:"
320 msgstr ""
321
322 #. type: Plain text
323 #: archlinux debian-trixie debian-unstable
324 #, no-wrap
325 msgid ""
326 "\\& int verify_callback(int ok, X509_STORE_CTX *ctx)\n"
327 "\\& {\n"
328 "\\& int err = X509_STORE_CTX_get_error(ctx);\n"
329 "\\& X509 *err_cert = X509_STORE_CTX_get_current_cert(ctx);\n"
330 "\\&\n"
331 "\\& if (err == X509_V_ERR_CERT_HAS_EXPIRED) {\n"
332 "\\& if (check_is_acceptable_expired_cert(err_cert)\n"
333 "\\& return 1;\n"
334 "\\& }\n"
335 "\\& return ok;\n"
336 "\\& }\n"
337 msgstr ""
338
339 #. type: Plain text
340 #: archlinux debian-trixie debian-unstable
341 msgid ""
342 "Full featured logging callback. In this case the B<bio_err> is assumed to be "
343 "a global logging B<BIO>, an alternative would to store a BIO in B<ctx> using "
344 "\\&B<ex_data>."
345 msgstr ""
346
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable
349 #, no-wrap
350 msgid ""
351 "\\& int verify_callback(int ok, X509_STORE_CTX *ctx)\n"
352 "\\& {\n"
353 "\\& X509 *err_cert;\n"
354 "\\& int err, depth;\n"
355 "\\&\n"
356 "\\& err_cert = X509_STORE_CTX_get_current_cert(ctx);\n"
357 "\\& err = X509_STORE_CTX_get_error(ctx);\n"
358 "\\& depth = X509_STORE_CTX_get_error_depth(ctx);\n"
359 "\\&\n"
360 "\\& BIO_printf(bio_err, \"depth=%d \", depth);\n"
361 "\\& if (err_cert) {\n"
362 "\\& X509_NAME_print_ex(bio_err, X509_get_subject_name(err_cert),\n"
363 "\\& 0, XN_FLAG_ONELINE);\n"
364 "\\& BIO_puts(bio_err, \"\\en\");\n"
365 "\\& }\n"
366 "\\& else\n"
367 "\\& BIO_puts(bio_err, \"E<lt>no certE<gt>\\en\");\n"
368 "\\& if (!ok)\n"
369 "\\& BIO_printf(bio_err, \"verify error:num=%d:%s\\en\", err,\n"
370 "\\& X509_verify_cert_error_string(err));\n"
371 "\\& switch (err) {\n"
372 "\\& case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT:\n"
373 "\\& BIO_puts(bio_err, \"issuer= \");\n"
374 "\\& X509_NAME_print_ex(bio_err, X509_get_issuer_name(err_cert),\n"
375 "\\& 0, XN_FLAG_ONELINE);\n"
376 "\\& BIO_puts(bio_err, \"\\en\");\n"
377 "\\& break;\n"
378 "\\& case X509_V_ERR_CERT_NOT_YET_VALID:\n"
379 "\\& case X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD:\n"
380 "\\& BIO_printf(bio_err, \"notBefore=\");\n"
381 "\\& ASN1_TIME_print(bio_err, X509_get_notBefore(err_cert));\n"
382 "\\& BIO_printf(bio_err, \"\\en\");\n"
383 "\\& break;\n"
384 "\\& case X509_V_ERR_CERT_HAS_EXPIRED:\n"
385 "\\& case X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD:\n"
386 "\\& BIO_printf(bio_err, \"notAfter=\");\n"
387 "\\& ASN1_TIME_print(bio_err, X509_get_notAfter(err_cert));\n"
388 "\\& BIO_printf(bio_err, \"\\en\");\n"
389 "\\& break;\n"
390 "\\& case X509_V_ERR_NO_EXPLICIT_POLICY:\n"
391 "\\& policies_print(bio_err, ctx);\n"
392 "\\& break;\n"
393 "\\& }\n"
394 "\\& if (err == X509_V_OK && ok == 2)\n"
395 "\\& /* print out policies */\n"
396 "\\&\n"
397 "\\& BIO_printf(bio_err, \"verify return:%d\\en\", ok);\n"
398 "\\& return(ok);\n"
399 "\\& }\n"
400 msgstr ""
401
402 #. type: IX
403 #: archlinux debian-trixie debian-unstable
404 #, no-wrap
405 msgid "SEE ALSO"
406 msgstr ""
407
408 #. type: Plain text
409 #: archlinux debian-trixie debian-unstable
410 msgid ""
411 "\\&B<X509_STORE_CTX_get_error>\\|(3) \\&B<X509_STORE_set_verify_cb_func>\\|"
412 "(3) \\&B<X509_STORE_CTX_get_ex_new_index>\\|(3)"
413 msgstr ""
414
415 #. type: IX
416 #: archlinux debian-trixie debian-unstable
417 #, no-wrap
418 msgid "HISTORY"
419 msgstr ""
420
421 #. type: Plain text
422 #: archlinux debian-trixie debian-unstable
423 msgid ""
424 "The \\&B<X509_STORE_CTX_get_get_issuer()>, "
425 "\\&B<X509_STORE_CTX_get_check_issued()>, "
426 "B<X509_STORE_CTX_get_check_revocation()>, "
427 "\\&B<X509_STORE_CTX_get_get_crl()>, B<X509_STORE_CTX_get_check_crl()>, "
428 "\\&B<X509_STORE_CTX_get_cert_crl()>, B<X509_STORE_CTX_get_check_policy()>, "
429 "\\&B<X509_STORE_CTX_get_lookup_certs()>, B<X509_STORE_CTX_get_lookup_crls()> "
430 "and B<X509_STORE_CTX_get_cleanup()> functions were added in OpenSSL 1.1.0."
431 msgstr ""
432
433 #. type: Plain text
434 #: archlinux debian-trixie debian-unstable
435 msgid "\\&B<X509_STORE_CTX_print_verify_cb()> was added in OpenSSL 3.0."
436 msgstr ""
437
438 #. type: IX
439 #: archlinux debian-trixie debian-unstable
440 #, no-wrap
441 msgid "COPYRIGHT"
442 msgstr ""
443
444 #. type: Plain text
445 #: archlinux debian-trixie debian-unstable
446 msgid "Copyright 2009-2023 The OpenSSL Project Authors. All Rights Reserved."
447 msgstr ""
448
449 #. type: Plain text
450 #: archlinux debian-trixie debian-unstable
451 msgid ""
452 "Licensed under the Apache License 2.0 (the \"License\"). You may not use "
453 "this file except in compliance with the License. You can obtain a copy in "
454 "the file LICENSE in the source distribution or at E<lt>https://"
455 "www.openssl.org/source/license.htmlE<gt>."
456 msgstr ""
457
458 #. ========================================================================
459 #. type: IX
460 #: debian-trixie debian-unstable
461 #, no-wrap
462 msgid "X509_STORE_CTX_SET_VERIFY_CB 3SSL"
463 msgstr ""
464
465 #. type: TH
466 #: debian-trixie
467 #, no-wrap
468 msgid "3.5.6"
469 msgstr ""
470
471 #. type: Plain text
472 #: debian-trixie debian-unstable
473 msgid ""
474 "More complex example, we don't wish to continue after B<any> certificate has "
475 "expired just one specific case:"
476 msgstr ""