OCSP_RESPID_set_by_key_ex

Set a ResponderID to the SHA-1 hash of cert's public key, with provider selection.

Synopsis

Declared in <openssl/ocsp.h>

int
OCSP_RESPID_set_by_key_ex(
    OCSP_RESPID* respid,
    X509* cert,
    OSSL_LIB_CTX* libctx,
    char const* propq);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
respidResponderID to update.
certCertificate whose public key is hashed for the byKey identity.
libctxLibrary context for algorithm fetches, or NULL for the default.
propqProperty query for provider selection, or NULL.