Debian Codegraph @

templates/man3/X509_STORE_CTX_new.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_new.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
20 #
21 #. #-#-#-#-# archlinux: X509_STORE_CTX_new.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_new.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
26 #. ========================================================================
27 #. type: IX
28 #. #-#-#-#-# debian-unstable: X509_STORE_CTX_new.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_NEW 3ssl"
43 msgstr ""
44
45 #. type: TH
46 #: archlinux debian-trixie debian-unstable
47 #, no-wrap
48 msgid "X509_STORE_CTX_NEW"
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-unstable
77 msgid ""
78 "X509_STORE_CTX_new_ex, X509_STORE_CTX_new, X509_STORE_CTX_cleanup, "
79 "X509_STORE_CTX_free, X509_STORE_CTX_init, X509_STORE_CTX_init_rpk, "
80 "X509_STORE_CTX_set0_trusted_stack, X509_STORE_CTX_set_cert, "
81 "X509_STORE_CTX_set0_crls, X509_STORE_CTX_set0_rpk, "
82 "X509_STORE_CTX_get0_param, X509_STORE_CTX_set0_param, "
83 "X509_STORE_CTX_get0_untrusted, X509_STORE_CTX_set0_untrusted, "
84 "X509_STORE_CTX_get_num_untrusted, X509_STORE_CTX_get0_chain, "
85 "X509_STORE_CTX_set0_verified_chain, X509_STORE_CTX_get0_rpk, "
86 "X509_STORE_CTX_set_default, X509_STORE_CTX_set_verify, "
87 "X509_STORE_CTX_verify_fn, X509_STORE_CTX_set_ocsp_resp, "
88 "X509_STORE_CTX_set_purpose, X509_STORE_CTX_set_trust, "
89 "X509_STORE_CTX_purpose_inherit \\&- X509_STORE_CTX initialisation"
90 msgstr ""
91
92 #. type: IX
93 #: archlinux debian-trixie debian-unstable
94 #, no-wrap
95 msgid "SYNOPSIS"
96 msgstr ""
97
98 #. type: IX
99 #: archlinux debian-trixie debian-unstable
100 #, no-wrap
101 msgid "Header"
102 msgstr ""
103
104 #. type: Plain text
105 #: archlinux debian-unstable
106 #, no-wrap
107 msgid ""
108 "\\& #include E<lt>openssl/x509_vfy.hE<gt>\n"
109 "\\&\n"
110 "\\& X509_STORE_CTX *X509_STORE_CTX_new_ex(OSSL_LIB_CTX *libctx, const char *propq);\n"
111 "\\& X509_STORE_CTX *X509_STORE_CTX_new(void);\n"
112 "\\& void X509_STORE_CTX_cleanup(X509_STORE_CTX *ctx);\n"
113 "\\& void X509_STORE_CTX_free(X509_STORE_CTX *ctx);\n"
114 "\\&\n"
115 "\\& int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *trust_store,\n"
116 "\\& X509 *target, STACK_OF(X509) *untrusted);\n"
117 "\\& int X509_STORE_CTX_init_rpk(X509_STORE_CTX *ctx, X509_STORE *trust_store,\n"
118 "\\& EVP_PKEY *rpk);\n"
119 "\\&\n"
120 "\\& void X509_STORE_CTX_set0_trusted_stack(X509_STORE_CTX *ctx, STACK_OF(X509) *sk);\n"
121 "\\&\n"
122 "\\& void X509_STORE_CTX_set_cert(X509_STORE_CTX *ctx, X509 *target);\n"
123 "\\& void X509_STORE_CTX_set0_crls(X509_STORE_CTX *ctx, STACK_OF(X509_CRL) *sk);\n"
124 "\\& void X509_STORE_CTX_set0_rpk(X509_STORE_CTX *ctx, EVP_PKEY *target);\n"
125 "\\&\n"
126 "\\& X509_VERIFY_PARAM *X509_STORE_CTX_get0_param(const X509_STORE_CTX *ctx);\n"
127 "\\& void X509_STORE_CTX_set0_param(X509_STORE_CTX *ctx, X509_VERIFY_PARAM *param);\n"
128 "\\&\n"
129 "\\& STACK_OF(X509)* X509_STORE_CTX_get0_untrusted(const X509_STORE_CTX *ctx);\n"
130 "\\& void X509_STORE_CTX_set0_untrusted(X509_STORE_CTX *ctx, STACK_OF(X509) *sk);\n"
131 "\\&\n"
132 "\\& int X509_STORE_CTX_get_num_untrusted(const X509_STORE_CTX *ctx);\n"
133 "\\& STACK_OF(X509) *X509_STORE_CTX_get0_chain(const X509_STORE_CTX *ctx);\n"
134 "\\& void X509_STORE_CTX_set0_verified_chain(X509_STORE_CTX *ctx, STACK_OF(X509) *chain);\n"
135 "\\& EVP_PKEY *X509_STORE_CTX_get0_rpk(const X509_STORE_CTX *ctx);\n"
136 "\\&\n"
137 "\\& int X509_STORE_CTX_set_default(X509_STORE_CTX *ctx, const char *name);\n"
138 "\\& typedef int (*X509_STORE_CTX_verify_fn)(X509_STORE_CTX *);\n"
139 "\\& void X509_STORE_CTX_set_verify(X509_STORE_CTX *ctx, X509_STORE_CTX_verify_fn verify);\n"
140 "\\&\n"
141 "\\& void X509_STORE_CTX_set_ocsp_resp(X509_STORE_CTX *ctx, STACK_OF(OCSP_RESPONSE) *sk);\n"
142 "\\& int X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose);\n"
143 "\\& int X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust);\n"
144 "\\& int X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose,\n"
145 "\\& int purpose, int trust);\n"
146 msgstr ""
147
148 #. type: IX
149 #: archlinux debian-trixie debian-unstable
150 #, no-wrap
151 msgid "DESCRIPTION"
152 msgstr ""
153
154 #. type: Plain text
155 #: archlinux debian-trixie debian-unstable
156 msgid ""
157 "These functions initialise an B<X509_STORE_CTX> structure for subsequent use "
158 "by B<X509_verify_cert>\\|(3) or B<X509_STORE_CTX_verify>\\|(3)."
159 msgstr ""
160
161 #. type: Plain text
162 #: archlinux debian-trixie debian-unstable
163 msgid ""
164 "\\&B<X509_STORE_CTX_new_ex()> returns a newly initialised B<X509_STORE_CTX> "
165 "structure associated with the specified library context I<libctx> and "
166 "property query string I<propq>. Any cryptographic algorithms fetched while "
167 "performing processing with the X509_STORE_CTX will use that library context "
168 "and property query string."
169 msgstr ""
170
171 #. type: Plain text
172 #: archlinux debian-trixie debian-unstable
173 msgid ""
174 "\\&B<X509_STORE_CTX_new()> is the same as B<X509_STORE_CTX_new_ex()> except "
175 "that the default library context and a NULL property query string are used."
176 msgstr ""
177
178 #. type: Plain text
179 #: archlinux debian-trixie debian-unstable
180 msgid ""
181 "\\&B<X509_STORE_CTX_cleanup()> internally cleans up an B<X509_STORE_CTX> "
182 "structure. It is used by B<X509_STORE_CTX_init()> and "
183 "B<X509_STORE_CTX_free()>."
184 msgstr ""
185
186 #. type: Plain text
187 #: archlinux debian-trixie debian-unstable
188 msgid ""
189 "\\&B<X509_STORE_CTX_free()> completely frees up I<ctx>. After this call "
190 "I<ctx> is no longer valid. If I<ctx> is NULL nothing is done."
191 msgstr ""
192
193 #. type: Plain text
194 #: archlinux debian-trixie debian-unstable
195 msgid ""
196 "\\&B<X509_STORE_CTX_init()> sets up I<ctx> for a subsequent verification "
197 "operation."
198 msgstr ""
199
200 #. type: Plain text
201 #: archlinux debian-trixie debian-unstable
202 msgid ""
203 "\\&B<X509_STORE_CTX_init()> initializes the internal state and resources of "
204 "the given I<ctx>. Among others, it sets the verification parameters "
205 "associated with the method name CW<\\*(C`default\\*(C'>, which includes the "
206 "CW<\\*(C`any\\*(C'> purpose, and takes over callback function pointers from "
207 "I<trust_store> (unless NULL). It must be called before each call to "
208 "B<X509_verify_cert>\\|(3) or \\&B<X509_STORE_CTX_verify>\\|(3), i.e., a "
209 "context is only good for one verification. If you want to verify a further "
210 "certificate or chain with the same I<ctx> then you must call "
211 "B<X509_STORE_CTX_init()> again. The trusted certificate store is set to "
212 "I<trust_store> of type B<X509_STORE>. This may be NULL because there are no "
213 "trusted certificates or because they are provided simply as a list using "
214 "B<X509_STORE_CTX_set0_trusted_stack()>. The certificate to be verified is "
215 "set to I<target>, and a list of additional certificates may be provided in "
216 "I<untrusted>, which will be untrusted but may be used to build the chain. "
217 "The I<target> certificate is not copied (its reference count is not "
218 "updated), and the caller must not free it before verification is complete. "
219 "Each of the I<trust_store>, I<target> and I<untrusted> parameters can be "
220 "NULL. Yet note that B<X509_verify_cert>\\|(3) and "
221 "B<X509_STORE_CTX_verify>\\|(3) will need a verification target. This can "
222 "also be set using B<X509_STORE_CTX_set_cert()>. For "
223 "B<X509_STORE_CTX_verify>\\|(3), which takes by default the first element of "
224 "the list of untrusted certificates as its verification target, this can be "
225 "also set indirectly using B<X509_STORE_CTX_set0_untrusted()>."
226 msgstr ""
227
228 #. type: Plain text
229 #: archlinux debian-trixie debian-unstable
230 msgid ""
231 "\\&B<X509_STORE_CTX_init_rpk()> sets up I<ctx> for a subsequent verification "
232 "operation for the I<target> raw public key. It behaves similarly to "
233 "B<X509_STORE_CTX_init()>. The I<target> raw public key can also be supplied "
234 "separately, via \\&B<X509_STORE_CTX_set0_rpk()>. The I<target> public key "
235 "is not copied (its reference count is not updated), and the caller must not "
236 "free it before verification is complete."
237 msgstr ""
238
239 #. type: Plain text
240 #: archlinux debian-trixie debian-unstable
241 msgid ""
242 "\\&B<X509_STORE_CTX_set0_trusted_stack()> sets the set of trusted "
243 "certificates of \\&I<ctx> to I<sk>. This is an alternative way of specifying "
244 "trusted certificates instead of using an B<X509_STORE> where its complexity "
245 "is not needed or to make sure that only the given set I<sk> of certificates "
246 "are trusted."
247 msgstr ""
248
249 #. type: Plain text
250 #: archlinux debian-trixie debian-unstable
251 msgid ""
252 "\\&B<X509_STORE_CTX_set_cert()> sets the target certificate to be verified "
253 "in I<ctx> to I<target>. The target certificate is not copied (its reference "
254 "count is not updated), and the caller must not free it before verification "
255 "is complete."
256 msgstr ""
257
258 #. type: Plain text
259 #: archlinux debian-trixie debian-unstable
260 msgid ""
261 "\\&B<X509_STORE_CTX_set0_rpk()> sets the target raw public key to be "
262 "verified in I<ctx> to I<target>, a non-NULL raw public key preempts any "
263 "target certificate, which is then ignored. The I<target> public key is not "
264 "copied (its reference count is not updated), and the caller must not free it "
265 "before verification is complete."
266 msgstr ""
267
268 #. type: Plain text
269 #: archlinux
270 msgid ""
271 "\\&B<X509_STORE_CTX_set0_verified_chain()> sets the validated chain to "
272 "I<chain>. Ownership of the chain is transferred to I<ctx>, and so it should "
273 "not be free\\*(Aqd by the caller."
274 msgstr ""
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable
278 msgid ""
279 "\\&B<X509_STORE_CTX_get0_chain()> returns the internal pointer used by the "
280 "\\&I<ctx> that contains the constructed (output) chain."
281 msgstr ""
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable
285 msgid ""
286 "\\&B<X509_STORE_CTX_get0_rpk()> returns the internal pointer used by the "
287 "\\&I<ctx> that contains the raw public key."
288 msgstr ""
289
290 #. type: Plain text
291 #: archlinux debian-trixie debian-unstable
292 msgid ""
293 "\\&B<X509_STORE_CTX_set0_crls()> sets a set of CRLs to use to aid "
294 "certificate verification to I<sk>. These CRLs will only be used if CRL "
295 "verification is enabled in the associated B<X509_VERIFY_PARAM> structure. "
296 "This might be used where additional \"useful\" CRLs are supplied as part of "
297 "a protocol, for example in a PKCS#7 structure."
298 msgstr ""
299
300 #. type: Plain text
301 #: archlinux debian-trixie debian-unstable
302 msgid ""
303 "\\&B<X509_STORE_CTX_get0_param()> retrieves an internal pointer to the "
304 "verification parameters associated with I<ctx>."
305 msgstr ""
306
307 #. type: Plain text
308 #: archlinux debian-trixie debian-unstable
309 msgid ""
310 "\\&B<X509_STORE_CTX_set0_param()> sets the internal verification parameter "
311 "pointer to I<param>. After this call B<param> should not be used."
312 msgstr ""
313
314 #. type: Plain text
315 #: archlinux debian-trixie debian-unstable
316 msgid ""
317 "\\&B<X509_STORE_CTX_get0_untrusted()> retrieves an internal pointer to the "
318 "stack of untrusted certificates associated with I<ctx>."
319 msgstr ""
320
321 #. type: Plain text
322 #: archlinux debian-trixie debian-unstable
323 msgid ""
324 "\\&B<X509_STORE_CTX_set0_untrusted()> sets the internal pointer to the stack "
325 "of untrusted certificates associated with I<ctx> to I<sk>. "
326 "\\&B<X509_STORE_CTX_verify()> will take the first element, if any, as its "
327 "default target if the target certificate is not set explicitly."
328 msgstr ""
329
330 #. type: Plain text
331 #: archlinux debian-trixie debian-unstable
332 msgid ""
333 "\\&B<X509_STORE_CTX_get_num_untrusted()> returns the number of untrusted "
334 "certificates that were used in building the chain. This is can be used "
335 "after calling B<X509_verify_cert>\\|(3) and similar functions. With "
336 "B<X509_STORE_CTX_verify>\\|(3), this does not count the first chain element."
337 msgstr ""
338
339 #. type: Plain text
340 #: archlinux debian-trixie debian-unstable
341 msgid ""
342 "\\&B<X509_STORE_CTX_get0_chain()> returns the internal pointer used by the "
343 "\\&I<ctx> that contains the validated chain."
344 msgstr ""
345
346 #. type: Plain text
347 #: archlinux debian-trixie debian-unstable
348 msgid ""
349 "Details of the chain building and checking process are described in "
350 "\"Certification Path Building\" in B<openssl-verification-options>\\|(1) and "
351 "\"Certification Path Validation\" in B<openssl-verification-options>\\|(1)."
352 msgstr ""
353
354 #. type: Plain text
355 #: archlinux
356 msgid ""
357 "\\&B<X509_STORE_CTX_set0_verified_chain()> sets the validated chain used by "
358 "I<ctx> to be I<chain>. Ownership of the chain is transferred to I<ctx>, and "
359 "so it should not be free\\*(Aqd by the caller."
360 msgstr ""
361
362 #. type: Plain text
363 #: archlinux debian-trixie debian-unstable
364 msgid ""
365 "\\&B<X509_STORE_CTX_set_default()> looks up and sets the default "
366 "verification method. This uses the function B<X509_VERIFY_PARAM_lookup()> "
367 "to find the set of parameters associated with the given verification method "
368 "I<name>. Among others, the parameters determine the trust model and "
369 "verification purpose. More detail, including the list of currently "
370 "predefined methods, is described for the B<-verify_name> command-line option "
371 "in \"Verification Options\" in B<openssl-verification-options>\\|(1)."
372 msgstr ""
373
374 #. type: Plain text
375 #: archlinux debian-trixie debian-unstable
376 msgid ""
377 "\\&B<X509_STORE_CTX_set_verify()> provides the capability for overriding the "
378 "default verify function. This function is responsible for verifying chain "
379 "signatures and expiration times."
380 msgstr ""
381
382 #. type: Plain text
383 #: archlinux debian-trixie debian-unstable
384 msgid ""
385 "A verify function is defined as an X509_STORE_CTX_verify type which has the "
386 "following signature:"
387 msgstr ""
388
389 #. type: Plain text
390 #: archlinux debian-trixie debian-unstable
391 #, no-wrap
392 msgid "\\& int (*verify)(X509_STORE_CTX *);\n"
393 msgstr ""
394
395 #. type: Plain text
396 #: archlinux debian-trixie debian-unstable
397 msgid ""
398 "This function should receive the current X509_STORE_CTX as a parameter and "
399 "return 1 on success or 0 on failure."
400 msgstr ""
401
402 #. type: Plain text
403 #: archlinux debian-trixie debian-unstable
404 msgid ""
405 "X509 certificates may contain information about what purposes keys contained "
406 "within them can be used for. For example \"TLS WWW Server Authentication\" "
407 "or \"Email Protection\". This \"key usage\" information is held internally "
408 "to the certificate itself. In addition the trust store containing trusted "
409 "certificates can declare what purposes we trust different certificates for. "
410 "This \"trust\" information is not held within the certificate itself but is "
411 "\"meta\" information held alongside it. This \"meta\" information is "
412 "associated with the certificate after it is issued and could be determined "
413 "by a system administrator. For example a certificate might declare that it "
414 "is suitable for use for both \"TLS WWW Server Authentication\" and \"TLS "
415 "Client Authentication\", but a system administrator might only trust it for "
416 "the former. An X.509 certificate extension exists that can record extended "
417 "key usage information to supplement the purpose information described above. "
418 "This extended mechanism is arbitrarily extensible and not well suited for a "
419 "generic library API; applications that need to validate extended key usage "
420 "information in certificates will need to define a custom \"purpose\" (see "
421 "below) or supply a nondefault verification callback "
422 "(B<X509_STORE_set_verify_cb_func>\\|(3))."
423 msgstr ""
424
425 #. type: Plain text
426 #: archlinux debian-unstable
427 msgid ""
428 "\\&B<X509_STORE_CTX_set_ocsp_resp()> sets the OCSP response(s) for the "
429 "verification of a certificate chain or for including in the TLS handshake, "
430 "when the client requests OCSP stapling. The stack of OCSP responses I<sk> is "
431 "not copied but just stored to the context. \\&I<ctx> holds a pointer to the "
432 "stack, so the stack must outlive the I<ctx>."
433 msgstr ""
434
435 #. type: Plain text
436 #: archlinux debian-trixie debian-unstable
437 msgid ""
438 "\\&B<X509_STORE_CTX_set_purpose()> sets the purpose for the target "
439 "certificate being verified in the I<ctx>. Built-in available values for the "
440 "I<purpose> argument are B<X509_PURPOSE_SSL_CLIENT>, "
441 "B<X509_PURPOSE_SSL_SERVER>, \\&B<X509_PURPOSE_NS_SSL_SERVER>, "
442 "B<X509_PURPOSE_SMIME_SIGN>, \\&B<X509_PURPOSE_SMIME_ENCRYPT>, "
443 "B<X509_PURPOSE_CRL_SIGN>, B<X509_PURPOSE_ANY>, "
444 "\\&B<X509_PURPOSE_OCSP_HELPER>, B<X509_PURPOSE_TIMESTAMP_SIGN> and "
445 "\\&B<X509_PURPOSE_CODE_SIGN>. It is also possible to create a custom "
446 "purpose value. Setting a purpose requests that the key usage and extended "
447 "key usage (EKU) extensions optionally declared within the certificate and "
448 "its chain are verified to be consistent with that purpose. For SSL client, "
449 "SSL server, and S/MIME purposes, the EKU is checked also for the CA "
450 "certificates along the chain, including any given trust anchor certificate. "
451 "Potentially also further checks are done (depending on the purpose given). "
452 "Every purpose also has an associated default trust value, which will also be "
453 "set at the same time. During verification, this trust setting will be "
454 "verified to check whether it is consistent with the trust set by the system "
455 "administrator for certificates in the chain."
456 msgstr ""
457
458 #. type: Plain text
459 #: archlinux debian-trixie debian-unstable
460 msgid ""
461 "\\&B<X509_STORE_CTX_set_trust()> sets the trust value for the target "
462 "certificate being verified in the I<ctx>. Built-in available values for the "
463 "I<trust> argument are B<X509_TRUST_COMPAT>, B<X509_TRUST_SSL_CLIENT>, "
464 "\\&B<X509_TRUST_SSL_SERVER>, B<X509_TRUST_EMAIL>, B<X509_TRUST_OBJECT_SIGN>, "
465 "\\&B<X509_TRUST_OCSP_SIGN>, B<X509_TRUST_OCSP_REQUEST> and "
466 "B<X509_TRUST_TSA>. It is also possible to create a custom trust value. Since "
467 "B<X509_STORE_CTX_set_purpose()> also sets the trust value it is normally "
468 "sufficient to only call that function. If both are called then "
469 "B<X509_STORE_CTX_set_trust()> should be called after "
470 "\\&B<X509_STORE_CTX_set_purpose()> since the trust setting of the last call "
471 "will be used."
472 msgstr ""
473
474 #. type: Plain text
475 #: archlinux debian-trixie debian-unstable
476 msgid ""
477 "It should not normally be necessary for end user applications to call "
478 "\\&B<X509_STORE_CTX_purpose_inherit()> directly. Typically applications "
479 "should call \\&B<X509_STORE_CTX_set_purpose()> or "
480 "B<X509_STORE_CTX_set_trust()> instead. Using this function it is possible to "
481 "set the purpose and trust values for the I<ctx> at the same time. Both "
482 "I<ctx> and its internal verification parameter pointer must not be NULL. "
483 "The I<def_purpose> and I<purpose> arguments can have the same purpose values "
484 "as described for B<X509_STORE_CTX_set_purpose()> above. The I<trust> "
485 "argument can have the same trust values as described in "
486 "\\&B<X509_STORE_CTX_set_trust()> above. Any of the I<def_purpose>, "
487 "I<purpose> or \\&I<trust> values may also have the value 0 to indicate that "
488 "the supplied parameter should be ignored. After calling this function the "
489 "purpose to be used for verification is set from the I<purpose> argument "
490 "unless the purpose was already set in I<ctx> before, and the trust is set "
491 "from the I<trust> argument unless the trust was already set in I<ctx> "
492 "before. If I<trust> is 0 then the trust value will be set from the default "
493 "trust value for I<purpose>. If the default trust value for the purpose is "
494 "I<X509_TRUST_DEFAULT> and I<trust> is 0 then the default trust value "
495 "associated with the I<def_purpose> value is used for the trust setting "
496 "instead."
497 msgstr ""
498
499 #. type: IX
500 #: archlinux debian-trixie debian-unstable
501 #, no-wrap
502 msgid "NOTES"
503 msgstr ""
504
505 #. type: Plain text
506 #: archlinux debian-trixie debian-unstable
507 msgid ""
508 "The certificates and CRLs in a store are used internally and should B<not> "
509 "be freed up until after the associated B<X509_STORE_CTX> is freed."
510 msgstr ""
511
512 #. type: IX
513 #: archlinux debian-trixie debian-unstable
514 #, no-wrap
515 msgid "BUGS"
516 msgstr ""
517
518 #. type: Plain text
519 #: archlinux debian-trixie debian-unstable
520 msgid ""
521 "The certificates and CRLs in a context are used internally and should B<not> "
522 "be freed up until after the associated B<X509_STORE_CTX> is freed. Copies "
523 "should be made or reference counts increased instead."
524 msgstr ""
525
526 #. type: IX
527 #: archlinux debian-trixie debian-unstable
528 #, no-wrap
529 msgid "RETURN VALUES"
530 msgstr ""
531
532 #. type: Plain text
533 #: archlinux debian-trixie debian-unstable
534 msgid ""
535 "\\&B<X509_STORE_CTX_new()> returns a newly allocated context or NULL if an "
536 "error occurred."
537 msgstr ""
538
539 #. type: Plain text
540 #: archlinux debian-trixie debian-unstable
541 msgid ""
542 "\\&B<X509_STORE_CTX_init()> and B<X509_STORE_CTX_init_rpk()> return 1 for "
543 "success or 0 if an error occurred."
544 msgstr ""
545
546 #. type: Plain text
547 #: archlinux debian-trixie debian-unstable
548 msgid ""
549 "\\&B<X509_STORE_CTX_get0_param()> returns a pointer to an "
550 "B<X509_VERIFY_PARAM> structure or NULL if an error occurred."
551 msgstr ""
552
553 #. type: Plain text
554 #: archlinux debian-trixie debian-unstable
555 msgid ""
556 "\\&B<X509_STORE_CTX_get0_rpk()> returns a pointer to an B<EVP_PKEY> "
557 "structure if present, or NULL if absent."
558 msgstr ""
559
560 #. type: Plain text
561 #: archlinux debian-trixie debian-unstable
562 msgid ""
563 "\\&B<X509_STORE_CTX_cleanup()>, B<X509_STORE_CTX_free()>, "
564 "\\&B<X509_STORE_CTX_set0_trusted_stack()>, \\&B<X509_STORE_CTX_set_cert()>, "
565 "\\&B<X509_STORE_CTX_set0_crls()> and B<X509_STORE_CTX_set0_param()> do not "
566 "return values."
567 msgstr ""
568
569 #. type: Plain text
570 #: archlinux debian-trixie debian-unstable
571 msgid ""
572 "\\&B<X509_STORE_CTX_set_default()> returns 1 for success or 0 if an error "
573 "occurred."
574 msgstr ""
575
576 #. type: Plain text
577 #: archlinux debian-trixie debian-unstable
578 msgid ""
579 "\\&B<X509_STORE_CTX_get_num_untrusted()> returns the number of untrusted "
580 "certificates used."
581 msgstr ""
582
583 #. type: IX
584 #: archlinux debian-trixie debian-unstable
585 #, no-wrap
586 msgid "SEE ALSO"
587 msgstr ""
588
589 #. type: Plain text
590 #: archlinux debian-trixie debian-unstable
591 msgid ""
592 "\\&B<X509_verify_cert>\\|(3), B<X509_STORE_CTX_verify>\\|(3), "
593 "\\&B<X509_VERIFY_PARAM_set_flags>\\|(3)"
594 msgstr ""
595
596 #. type: IX
597 #: archlinux debian-trixie debian-unstable
598 #, no-wrap
599 msgid "HISTORY"
600 msgstr ""
601
602 #. type: Plain text
603 #: archlinux debian-unstable
604 msgid ""
605 "The B<X509_STORE_CTX_set0_crls()> function was added in OpenSSL 1.0.0. The "
606 "B<X509_STORE_CTX_get_num_untrusted()> function was added in OpenSSL 1.1.0. "
607 "The B<X509_STORE_CTX_new_ex()> function was added in OpenSSL 3.0. The "
608 "B<X509_STORE_CTX_init_rpk()>, B<X509_STORE_CTX_get0_rpk()>, and "
609 "\\&B<X509_STORE_CTX_set0_rpk()> functions were added in OpenSSL 3.2. "
610 "\\&B<X509_STORE_CTX_set_ocsp_resp()> function was added in OpenSSL 3.6."
611 msgstr ""
612
613 #. type: Plain text
614 #: archlinux debian-trixie debian-unstable
615 msgid ""
616 "There is no need to call B<X509_STORE_CTX_cleanup()> explicitly since "
617 "OpenSSL 3.0."
618 msgstr ""
619
620 #. type: IX
621 #: archlinux debian-trixie debian-unstable
622 #, no-wrap
623 msgid "COPYRIGHT"
624 msgstr ""
625
626 #. type: Plain text
627 #: archlinux debian-trixie debian-unstable
628 msgid "Copyright 2009-2025 The OpenSSL Project Authors. All Rights Reserved."
629 msgstr ""
630
631 #. type: Plain text
632 #: archlinux debian-trixie debian-unstable
633 msgid ""
634 "Licensed under the Apache License 2.0 (the \"License\"). You may not use "
635 "this file except in compliance with the License. You can obtain a copy in "
636 "the file LICENSE in the source distribution or at E<lt>https://"
637 "www.openssl.org/source/license.htmlE<gt>."
638 msgstr ""
639
640 #. ========================================================================
641 #. type: IX
642 #: debian-trixie debian-unstable
643 #, no-wrap
644 msgid "X509_STORE_CTX_NEW 3SSL"
645 msgstr ""
646
647 #. type: TH
648 #: debian-trixie
649 #, no-wrap
650 msgid "3.5.6"
651 msgstr ""
652
653 #. type: Plain text
654 #: debian-trixie
655 msgid ""
656 "X509_STORE_CTX_new_ex, X509_STORE_CTX_new, X509_STORE_CTX_cleanup, "
657 "X509_STORE_CTX_free, X509_STORE_CTX_init, X509_STORE_CTX_init_rpk, "
658 "X509_STORE_CTX_set0_trusted_stack, X509_STORE_CTX_set_cert, "
659 "X509_STORE_CTX_set0_crls, X509_STORE_CTX_set0_rpk, "
660 "X509_STORE_CTX_get0_param, X509_STORE_CTX_set0_param, "
661 "X509_STORE_CTX_get0_untrusted, X509_STORE_CTX_set0_untrusted, "
662 "X509_STORE_CTX_get_num_untrusted, X509_STORE_CTX_get0_chain, "
663 "X509_STORE_CTX_set0_verified_chain, X509_STORE_CTX_get0_rpk, "
664 "X509_STORE_CTX_set_default, X509_STORE_CTX_set_verify, "
665 "X509_STORE_CTX_verify_fn, X509_STORE_CTX_set_purpose, "
666 "X509_STORE_CTX_set_trust, X509_STORE_CTX_purpose_inherit \\&- X509_STORE_CTX "
667 "initialisation"
668 msgstr ""
669
670 #. type: Plain text
671 #: debian-trixie
672 #, no-wrap
673 msgid ""
674 "\\& #include E<lt>openssl/x509_vfy.hE<gt>\n"
675 "\\&\n"
676 "\\& X509_STORE_CTX *X509_STORE_CTX_new_ex(OSSL_LIB_CTX *libctx, const char *propq);\n"
677 "\\& X509_STORE_CTX *X509_STORE_CTX_new(void);\n"
678 "\\& void X509_STORE_CTX_cleanup(X509_STORE_CTX *ctx);\n"
679 "\\& void X509_STORE_CTX_free(X509_STORE_CTX *ctx);\n"
680 "\\&\n"
681 "\\& int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *trust_store,\n"
682 "\\& X509 *target, STACK_OF(X509) *untrusted);\n"
683 "\\& int X509_STORE_CTX_init_rpk(X509_STORE_CTX *ctx, X509_STORE *trust_store,\n"
684 "\\& EVP_PKEY *rpk);\n"
685 "\\&\n"
686 "\\& void X509_STORE_CTX_set0_trusted_stack(X509_STORE_CTX *ctx, STACK_OF(X509) *sk);\n"
687 "\\&\n"
688 "\\& void X509_STORE_CTX_set_cert(X509_STORE_CTX *ctx, X509 *target);\n"
689 "\\& void X509_STORE_CTX_set0_crls(X509_STORE_CTX *ctx, STACK_OF(X509_CRL) *sk);\n"
690 "\\& void X509_STORE_CTX_set0_rpk(X509_STORE_CTX *ctx, EVP_PKEY *target);\n"
691 "\\&\n"
692 "\\& X509_VERIFY_PARAM *X509_STORE_CTX_get0_param(const X509_STORE_CTX *ctx);\n"
693 "\\& void X509_STORE_CTX_set0_param(X509_STORE_CTX *ctx, X509_VERIFY_PARAM *param);\n"
694 "\\&\n"
695 "\\& STACK_OF(X509)* X509_STORE_CTX_get0_untrusted(const X509_STORE_CTX *ctx);\n"
696 "\\& void X509_STORE_CTX_set0_untrusted(X509_STORE_CTX *ctx, STACK_OF(X509) *sk);\n"
697 "\\&\n"
698 "\\& int X509_STORE_CTX_get_num_untrusted(const X509_STORE_CTX *ctx);\n"
699 "\\& STACK_OF(X509) *X509_STORE_CTX_get0_chain(const X509_STORE_CTX *ctx);\n"
700 "\\& void X509_STORE_CTX_set0_verified_chain(X509_STORE_CTX *ctx, STACK_OF(X509) *chain);\n"
701 "\\& EVP_PKEY *X509_STORE_CTX_get0_rpk(const X509_STORE_CTX *ctx);\n"
702 "\\&\n"
703 "\\& int X509_STORE_CTX_set_default(X509_STORE_CTX *ctx, const char *name);\n"
704 "\\& typedef int (*X509_STORE_CTX_verify_fn)(X509_STORE_CTX *);\n"
705 "\\& void X509_STORE_CTX_set_verify(X509_STORE_CTX *ctx, X509_STORE_CTX_verify_fn verify);\n"
706 "\\&\n"
707 "\\& int X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose);\n"
708 "\\& int X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust);\n"
709 "\\& int X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose,\n"
710 "\\& int purpose, int trust);\n"
711 msgstr ""
712
713 #. type: Plain text
714 #: debian-trixie debian-unstable
715 msgid ""
716 "\\&B<X509_STORE_CTX_set0_verified_chain()> sets the validated chain to "
717 "I<chain>. Ownership of the chain is transferred to I<ctx>, and so it should "
718 "not be free'd by the caller."
719 msgstr ""
720
721 #. type: Plain text
722 #: debian-trixie debian-unstable
723 msgid ""
724 "\\&B<X509_STORE_CTX_set0_verified_chain()> sets the validated chain used by "
725 "I<ctx> to be I<chain>. Ownership of the chain is transferred to I<ctx>, and "
726 "so it should not be free'd by the caller."
727 msgstr ""
728
729 #. type: Plain text
730 #: debian-trixie
731 msgid ""
732 "The B<X509_STORE_CTX_set0_crls()> function was added in OpenSSL 1.0.0. The "
733 "B<X509_STORE_CTX_get_num_untrusted()> function was added in OpenSSL 1.1.0. "
734 "The B<X509_STORE_CTX_new_ex()> function was added in OpenSSL 3.0. The "
735 "B<X509_STORE_CTX_init_rpk()>, B<X509_STORE_CTX_get0_rpk()>, and "
736 "\\&B<X509_STORE_CTX_set0_rpk()> functions were added in OpenSSL 3.2."
737 msgstr ""