#include <openssl/store.h> int OSSL_STORE_expect(OSSL_STORE_CTX *ctx, int expected_type); int OSSL_STORE_supports_search(OSSL_STORE_CTX *ctx, int criterion_type); int OSSL_STORE_find(OSSL_STORE_CTX *ctx, OSSL_STORE_SEARCH *search);
OSSL_STORE_find() helps applications specify a criterion for a more fine grained search of objects.
OSSL_STORE_supports_search() checks if the loader of the given OSSL_STORE context supports the given search type. See ``SUPPORTED CRITERION TYPES'' in OSSL_STORE_SEARCH for information on the supported search criterion types.
OSSL_STORE_expect() and OSSL_STORE_find must be called before the first OSSL_STORE_load() of a given session, or they will fail.
However, some loaders may take advantage of the knowledge of an expected type to make object retrieval more efficient, so if a single type is expected, this method is usually preferable.
OSSL_STORE_supports_search() returns 1 if the criterion is supported, or 0 otherwise.
OSSL_STORE_find() returns 1 on success, or 0 on failure.
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>.