[#OSSL_PARAM_set_octet_ptr]
= OSSL&lowbar;PARAM&lowbar;set&lowbar;octet&lowbar;ptr
:mrdocs:

Set an OSSL&lowbar;PARAM that references an existing octet buffer without copying&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;PARAM&lowbar;set&lowbar;octet&lowbar;ptr(
    xref:OSSL_PARAM.adoc[OSSL&lowbar;PARAM]* p,
    void const* val,
    size&lowbar;t used&lowbar;len);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p*
| Parameter of type OSSL&lowbar;PARAM&lowbar;OCTET&lowbar;PTR to update&period;
| *val*
| Address of the caller&hyphen;owned octet data&period;
| *used&lowbar;len*
| Number of meaningful bytes at `val&period;`
|===


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