OSSL_CMP_CTX_set1_secretValue

Set the shared secret used for MAC-based CMP message protection.

Synopsis

Declared in <openssl/cmp.h>

int
OSSL_CMP_CTX_set1_secretValue(
    OSSL_CMP_CTX* ctx,
    unsigned char const* sec,
    int len);

Return Value

1 on success, 0 on error.

Parameters

NameDescription
ctxCMP context.
secSecret octets copied into the context.
lenLength of sec in bytes.