[#OPENSSL_hexstr2buf]
= OPENSSL&lowbar;hexstr2buf
:mrdocs:

Decode a hexadecimal string into a newly allocated byte buffer&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned char*
OPENSSL&lowbar;hexstr2buf(
    char const* str,
    long* buflen);
----

== Return Value

Allocated buffer with decoded bytes, or NULL on error&semi; free with OPENSSL&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *str*
| NUL&hyphen;terminated hex text (optional &apos;&colon;&apos; separators between octets)&period;
| *buflen*
| Receives the number of decoded bytes, or may be NULL&period;
|===


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