OSSL_STORE_SEARCH - Online Linux Manual PageSection : 3
Updated : 2021-03-26
Source : 1.1.1k
Note : OpenSSL

NAMEOSSL_STORE_SEARCH, OSSL_STORE_SEARCH_by_name, OSSL_STORE_SEARCH_by_issuer_serial, OSSL_STORE_SEARCH_by_key_fingerprint, OSSL_STORE_SEARCH_by_alias, OSSL_STORE_SEARCH_free, OSSL_STORE_SEARCH_get_type, OSSL_STORE_SEARCH_get0_name, OSSL_STORE_SEARCH_get0_serial, OSSL_STORE_SEARCH_get0_bytes, OSSL_STORE_SEARCH_get0_string, OSSL_STORE_SEARCH_get0_digest ​− Type and functions to create OSSL_STORE search criteria

SYNOPSIS​ #include <openssl/store.h> ​ ​ typedef struct ossl_store_search_st OSSL_STORE_SEARCH; ​ ​ OSSL_STORE_SEARCH *OSSL_STORE_SEARCH_by_name(X509_NAME *name); ​ OSSL_STORE_SEARCH *OSSL_STORE_SEARCH_by_issuer_serial(X509_NAME *name, ​ const ASN1_INTEGER ​ *serial); ​ OSSL_STORE_SEARCH *OSSL_STORE_SEARCH_by_key_fingerprint(const EVP_MD *digest, ​ const unsigned char ​ *bytes, int len); ​ OSSL_STORE_SEARCH *OSSL_STORE_SEARCH_by_alias(const char *alias); ​ ​ void OSSL_STORE_SEARCH_free(OSSL_STORE_SEARCH *search); ​ ​ int OSSL_STORE_SEARCH_get_type(const OSSL_STORE_SEARCH *criterion); ​ X509_NAME *OSSL_STORE_SEARCH_get0_name(OSSL_STORE_SEARCH *criterion); ​ const ASN1_INTEGER *OSSL_STORE_SEARCH_get0_serial(const OSSL_STORE_SEARCH ​ *criterion); ​ const unsigned char *OSSL_STORE_SEARCH_get0_bytes(const OSSL_STORE_SEARCH ​ *criterion, size_t *length); ​ const char *OSSL_STORE_SEARCH_get0_string(const OSSL_STORE_SEARCH *criterion); ​ const EVP_MD *OSSL_STORE_SEARCH_get0_digest(const OSSL_STORE_SEARCH ​ *criterion);

DESCRIPTIONThese functions are used to specify search criteria to help search for specific objects through other names than just the URI that's given to OSSL_STORE_open(). For example, this can be useful for an application that has received a URI and then wants to add on search criteria in a uniform and supported manner.

TypesOSSL_STORE_SEARCH is an opaque type that holds the constructed search criterion, and that can be given to an OSSL_STORE context with ​OSSL_STORE_find(). The calling application owns the allocation of an OSSL_STORE_SEARCH at all times, and should therefore be careful not to deallocate it before ​OSSL_STORE_close() has been called for the OSSL_STORE context it was given to.

Application FunctionsOSSL_STORE_SEARCH_by_name(), ​OSSL_STORE_SEARCH_by_issuer_serial(), ​OSSL_STORE_SEARCH_by_key_fingerprint(), and OSSL_STORE_SEARCH_by_alias() are used to create an OSSL_STORE_SEARCH from a subject name, an issuer name and serial number pair, a key fingerprint, and an alias (for example a friendly name). The parameters that are provided are not copied, only referred to in a criterion, so they must have at least the same life time as the created ​OSSL_STORE_SEARCH. OSSL_STORE_SEARCH_free() is used to free the OSSL_STORE_SEARCH.

Loader FunctionsOSSL_STORE_SEARCH_get_type() returns the criterion type for the given ​OSSL_STORE_SEARCH. OSSL_STORE_SEARCH_get0_name(), OSSL_STORE_SEARCH_get0_serial(), ​OSSL_STORE_SEARCH_get0_bytes(), OSSL_STORE_SEARCH_get0_string(), and OSSL_STORE_SEARCH_get0_digest() are used to retrieve different data from a OSSL_STORE_SEARCH, as available for each type. For more information, see SUPPORTED CRITERION TYPES below.

SUPPORTED CRITERION TYPESCurrently supported criterion types are: OSSL_STORE_SEARCH_BY_NAME This criterion supports a search by exact match of subject name. The subject name itself is a X509_NAME pointer. A criterion of this type is created with OSSL_STORE_SEARCH_by_name(), and the actual subject name is retrieved with OSSL_STORE_SEARCH_get0_name(). OSSL_STORE_SEARCH_BY_ISSUER_SERIAL This criterion supports a search by exact match of both issuer name and serial number. The issuer name itself is a X509_NAME pointer, and the serial number is a ASN1_INTEGER pointer. A criterion of this type is created with OSSL_STORE_SEARCH_by_issuer_serial() and the actual issuer name and serial number are retrieved with ​OSSL_STORE_SEARCH_get0_name() and OSSL_STORE_SEARCH_get0_serial(). OSSL_STORE_SEARCH_BY_KEY_FINGERPRINT This criterion supports a search by exact match of key fingerprint. The key fingerprint in itself is a string of bytes and its length, as well as the algorithm that was used to compute the fingerprint. The digest may be left unspecified (NULL), and in that case, the loader has to decide on a default digest and compare fingerprints accordingly. A criterion of this type is created with OSSL_STORE_SEARCH_by_key_fingerprint() and the actual fingerprint and its length can be retrieved with ​OSSL_STORE_SEARCH_get0_bytes(). The digest can be retrieved with OSSL_STORE_SEARCH_get0_digest(). OSSL_STORE_SEARCH_BY_ALIAS This criterion supports a search by match of an alias of some kind. The alias in itself is a simple C string. A criterion of this type is created with OSSL_STORE_SEARCH_by_alias() and the actual alias is retrieved with OSSL_STORE_SEARCH_get0_string().

RETURN VALUESOSSL_STORE_SEARCH_by_name(), ​OSSL_STORE_SEARCH_by_issuer_serial(), ​OSSL_STORE_SEARCH_by_key_fingerprint(), and OSSL_STORE_SEARCH_by_alias() return a OSSL_STORE_SEARCH pointer on success, or NULL on failure. OSSL_STORE_SEARCH_get_type() returns the criterion type of the given ​OSSL_STORE_SEARCH. There is no error value. OSSL_STORE_SEARCH_get0_name() returns a X509_NAME pointer on success, or NULL when the given OSSL_STORE_SEARCH was of a different type. OSSL_STORE_SEARCH_get0_serial() returns a ASN1_INTEGER pointer on success, or NULL when the given OSSL_STORE_SEARCH was of a different type. OSSL_STORE_SEARCH_get0_bytes() returns a const unsigned char pointer and sets *length to the strings length on success, or NULL when the given ​OSSL_STORE_SEARCH was of a different type. OSSL_STORE_SEARCH_get0_string() returns a const char pointer on success, or NULL when the given OSSL_STORE_SEARCH was of a different type. OSSL_STORE_SEARCH_get0_digest() returns a const EVP_MD pointer. ​NULL is a valid value and means that the store loader default will be used when applicable.

SEE ALSOossl_store(7), OSSL_STORE_supports_search(3), OSSL_STORE_find(3)

HISTORYOSSL_STORE_SEARCH, ​OSSL_STORE_SEARCH_by_name(), ​OSSL_STORE_SEARCH_by_issuer_serial(), ​OSSL_STORE_SEARCH_by_key_fingerprint(), ​OSSL_STORE_SEARCH_by_alias(), ​OSSL_STORE_SEARCH_free(), ​OSSL_STORE_SEARCH_get_type(), ​OSSL_STORE_SEARCH_get0_name(), ​OSSL_STORE_SEARCH_get0_serial(), ​OSSL_STORE_SEARCH_get0_bytes(), and OSSL_STORE_SEARCH_get0_string() were added in OpenSSL 1.1.1.

COPYRIGHTCopyright 2018 The OpenSSL Project Authors. All Rights Reserved. Licensed under the OpenSSL license (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>.
0
Johanes Gumabo
Data Size   :   23,581 byte
man-OSSL_STORE_SEARCH.3sslBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   4 / 204,092
Visitor ID   :     :  
Visitor IP   :   3.147.42.34   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|O___SSL_STORE_SEARCH.3ssl|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|O___SSL_STORE_SEARCH.3ssl|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|O___SSL_STORE_SEARCH.3ssl|43|br══─}─══|'br══─}─══ )         (htmlprn|149|O___SSL_STORE_SEARCH.3ssl|43|'br══─}─══ |'br══─}─══ )