OSSL_CMP_CTX_set1_referenceValue

Set the reference value used for password-based CMP message protection.

Synopsis

Declared in <openssl/cmp.h>

int
OSSL_CMP_CTX_set1_referenceValue(
    OSSL_CMP_CTX* ctx,
    unsigned char const* ref,
    int len);

Return Value

1 on success, 0 on error.

Parameters

NameDescription
ctxCMP context.
refReference octets copied into the context.
lenLength of ref in bytes.