Restrict an open store to a single expected OSSL_STORE_INFO_* type.
Declared in <openssl/store.h>
int
OSSL_STORE_expect(
OSSL_STORE_CTX* ctx,
int expected_type);
1 on success, or 0 on error.
| Name | Description |
|---|---|
| ctx | Open store context; must be called before the first OSSL_STORE_load(). |
| expected_type | Desired type code, or 0 for unspecified. |