[#OSSL_PARAM_set_octet_string]
= OSSL&lowbar;PARAM&lowbar;set&lowbar;octet&lowbar;string
:mrdocs:

Copy `len` octets from `val` into an octet&hyphen;string OSSL&lowbar;PARAM&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;string(
    xref:OSSL_PARAM.adoc[OSSL&lowbar;PARAM]* p,
    void const* val,
    size&lowbar;t len);
----

== Return Value

1 on success, or 0 on type&sol;size failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p*
| Parameter locator with type OSSL&lowbar;PARAM&lowbar;OCTET&lowbar;STRING&period;
| *val*
| Source buffer of `len` bytes&period;
| *len*
| Number of bytes to copy from `val&period;`
|===


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