[#OSSL_PARAM_get_octet_string]
= OSSL&lowbar;PARAM&lowbar;get&lowbar;octet&lowbar;string
:mrdocs:

Copy an OSSL&lowbar;PARAM octet&hyphen;string value into a caller buffer&period;

== Synopsis

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

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

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p*
| Parameter locating the octet string&period;
| *val*
| Address of a buffer pointer that receives up to `max&lowbar;len` bytes&semi; may allocate when &ast;`val` is NULL depending on call pattern&period;
| *max&lowbar;len*
| Capacity of the destination buffer in bytes&period;
| *used&lowbar;len*
| Optional output set to the number of bytes copied or required&period;
|===


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