[#CTLOG_new_ex]
= CTLOG&lowbar;new&lowbar;ex
:mrdocs:

Create a CT log for `public&lowbar;key` and `name` using `libctx` &sol; `propq&period;` Takes ownership of `public&lowbar;key` and copies `name&period;` Free with CTLOG&lowbar;free()&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&lowbar;ex(
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]* public&lowbar;key,
    char const* name,
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* libctx,
    char const* propq);
----

== Return Value

A new CTLOG, or NULL if allocation fails or the key cannot be converted to DER&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *public&lowbar;key*
| Log public key (ownership transferred)&period;
| *name*
| Log name to copy&period;
| *libctx*
| Library context, or NULL for the default&period;
| *propq*
| Property query string, or NULL&period;
|===


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