OSSL_STORE_expect

Restrict an open store to a single expected OSSL_STORE_INFO_* type.

Synopsis

Declared in <openssl/store.h>

int
OSSL_STORE_expect(
    OSSL_STORE_CTX* ctx,
    int expected_type);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
ctxOpen store context; must be called before the first OSSL_STORE_load().
expected_typeDesired type code, or 0 for unspecified.