[#OSSL_CMP_CTX_set1_referenceValue]
= OSSL&lowbar;CMP&lowbar;CTX&lowbar;set1&lowbar;referenceValue
:mrdocs:

Set the reference value used for password&hyphen;based CMP message protection&period;

== Synopsis

Declared in `&lt;openssl&sol;cmp&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;CMP&lowbar;CTX&lowbar;set1&lowbar;referenceValue(
    xref:OSSL_CMP_CTX.adoc[OSSL&lowbar;CMP&lowbar;CTX]* ctx,
    unsigned char const* ref,
    int len);
----

== Return Value

1 on success, 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| CMP context&period;
| *ref*
| Reference octets copied into the context&period;
| *len*
| Length of `ref` in bytes&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
