[#CTLOG_new]
= CTLOG&lowbar;new
:mrdocs:

Create a CT log with a public key and name using the default library context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CTLOG.adoc[CTLOG]*
CTLOG&lowbar;new(
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]* public&lowbar;key,
    char const* name);
----

== Return Value

New CTLOG, or NULL on allocation or DER&hyphen;conversion failure&semi; free with CTLOG&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *public&lowbar;key*
| Log public key&semi; ownership is transferred to the CTLOG&period;
| *name*
| Human&hyphen;readable name copied into the log (helps identify the log)&period;
|===


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