[#OSSL_PARAM_get_octet_ptr]
= OSSL&lowbar;PARAM&lowbar;get&lowbar;octet&lowbar;ptr
:mrdocs:

Return a pointer to the octet data referenced by an OSSL&lowbar;PARAM&lowbar;OCTET&lowbar;PTR parameter&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;ptr(
    xref:OSSL_PARAM.adoc[OSSL&lowbar;PARAM] const* 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&period;
| *val*
| Receives the address of the referenced octet data (not a copy)&period;
| *used&lowbar;len*
| Optional&semi; receives the number of meaningful bytes&period;
|===


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