[#CTLOG_new_from_base64_ex]
= CTLOG&lowbar;new&lowbar;from&lowbar;base64&lowbar;ex
:mrdocs:

Create a CT log from a base64&hyphen;encoded SubjectPublicKeyInfo DER key&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
CTLOG&lowbar;new&lowbar;from&lowbar;base64&lowbar;ex(
    xref:CTLOG.adoc[CTLOG]** ct&lowbar;log,
    char const* pkey&lowbar;base64,
    char const* name,
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* libctx,
    char const* propq);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ct&lowbar;log*
| Receives the new CT log on success&semi; free with CTLOG&lowbar;free()&period;
| *pkey&lowbar;base64*
| Base64&hyphen;encoded SubjectPublicKeyInfo DER&period;
| *name*
| Human&hyphen;readable name for the log&period;
| *libctx*
| Library context to associate with the log&period;
| *propq*
| Property query string, or NULL&period;
|===


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