-*- mode: troff; coding: utf-8 -*-
Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43)
Standard preamble:
========================================================================
..
.... \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
. ds C` "" . ds C' "" 'br\} . ds C` . ds C' 'br\}
Escape single quotes in literal strings from groff's Unicode transform.
If the F register is >0, we'll generate index entries on stderr for
titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
entries marked with X<> in POD. Of course, you'll have to process the
output yourself in some meaningful fashion.
Avoid warning from groff about undefined register 'F'.
.. .nr rF 0 . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF ========================================================================
Title "X509_LOOKUP 3"
way too many mistakes in technical documents.
\fBX509_LOOKUP_new() creates a new X509_LOOKUP using the given lookup \fImethod. It can also be created by calling X509_STORE_add_lookup\|(3), which will associate a X509_STORE with the lookup mechanism.
\fBX509_LOOKUP_init() initializes the internal state and resources as needed by the given X509_LOOKUP to do its work.
\fBX509_LOOKUP_shutdown() tears down the internal state and resources of the given X509_LOOKUP.
\fBX509_LOOKUP_free() destructs the given X509_LOOKUP. If the argument is NULL, nothing is done.
\fBX509_LOOKUP_set_method_data() and X509_LOOKUP_get_method_data() associates and retrieves a pointer to application data to and from the given X509_LOOKUP, respectively.
\fBX509_LOOKUP_ctrl_ex() is used to set or get additional data to or from a X509_LOOKUP structure or its associated X509_LOOKUP_METHOD\|(3). The arguments of the control command are passed via argc and argl, its return value via *ret. The library context libctx and property query propq are used when fetching algorithms from providers. The meaning of the arguments depends on the cmd number of the control command. In general, this function is not called directly, but wrapped by a macro call, see below. The control cmds known to OpenSSL are discussed in more depth in "Control Commands".
\fBX509_LOOKUP_ctrl() is similar to X509_LOOKUP_ctrl_ex() but uses NULL for the library context libctx and property query propq.
\fBX509_LOOKUP_load_file_ex() passes a filename to be loaded immediately into the associated X509_STORE. The library context libctx and property query propq are used when fetching algorithms from providers. \fItype indicates what type of object is expected. This can only be used with a lookup using the implementation \fBX509_LOOKUP_file\|(3).
\fBX509_LOOKUP_load_file() is similar to X509_LOOKUP_load_file_ex() but uses NULL for the library context libctx and property query propq.
\fBX509_LOOKUP_add_dir() passes a directory specification from which certificates and CRLs are loaded on demand into the associated \fBX509_STORE. \fItype indicates what type of object is expected. This can only be used with a lookup using the implementation \fBX509_LOOKUP_hash_dir\|(3).
\fBX509_LOOKUP_add_store_ex() passes a URI for a directory-like structure from which containers with certificates and CRLs are loaded on demand into the associated X509_STORE. The library context libctx and property query propq are used when fetching algorithms from providers.
\fBX509_LOOKUP_add_store() is similar to X509_LOOKUP_add_store_ex() but uses NULL for the library context libctx and property query propq.
\fBX509_LOOKUP_load_store_ex() passes a URI for a single container from which certificates and CRLs are immediately loaded into the associated \fBX509_STORE. The library context libctx and property query propq are used when fetching algorithms from providers. These functions can only be used with a lookup using the implementation X509_LOOKUP_store\|(3).
\fBX509_LOOKUP_load_store() is similar to X509_LOOKUP_load_store_ex() but uses NULL for the library context libctx and property query propq.
\fBX509_LOOKUP_load_file_ex(), X509_LOOKUP_load_file(), \fBX509_LOOKUP_add_dir(), \fBX509_LOOKUP_add_store_ex() X509_LOOKUP_add_store(), \fBX509_LOOKUP_load_store_ex() and X509_LOOKUP_load_store() are implemented as macros that use X509_LOOKUP_ctrl().
\fBX509_LOOKUP_by_subject_ex(), X509_LOOKUP_by_subject(), \fBX509_LOOKUP_by_issuer_serial(), X509_LOOKUP_by_fingerprint(), and \fBX509_LOOKUP_by_alias() look up certificates and CRLs in the X509_STORE\|(3) associated with the X509_LOOKUP using different criteria, where the looked up object is stored in ret. Some of the underlying X509_LOOKUP_METHODs will also cache objects matching the criteria in the associated X509_STORE, which makes it possible to handle cases where the criteria have more than one hit.
\fBX509_LOOKUP_init() and X509_LOOKUP_shutdown() return 1 on success, or 0 on error.
\fBX509_LOOKUP_ctrl() returns -1 if the X509_LOOKUP doesn't have an associated X509_LOOKUP_METHOD, or 1 if the doesn't have a control function. Otherwise, it returns what the control function in the \fBX509_LOOKUP_METHOD returns, which is usually 1 on success and 0 in error. Xref "509_LOOKUP_METHOD"
\fBX509_LOOKUP_get_store() returns a X509_STORE pointer if there is one, otherwise NULL.
\fBX509_LOOKUP_by_subject_ex(), X509_LOOKUP_by_subject(), \fBX509_LOOKUP_by_issuer_serial(), X509_LOOKUP_by_fingerprint(), and \fBX509_LOOKUP_by_alias() all return 0 if there is no X509_LOOKUP_METHOD or that method doesn't implement the corresponding function. Otherwise, it returns what the corresponding function in the \fBX509_LOOKUP_METHOD returns, which is usually 1 on success and 0 in error.
The macros X509_LOOKUP_load_file_ex(), \fBX509_LOOKUP_load_store_ex() and 509_LOOKUP_add_store_ex() were added in OpenSSL 3.0.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.