[#SCT_new_from_base64]
= SCT&lowbar;new&lowbar;from&lowbar;base64
:mrdocs:

Create an SCT from base64&hyphen;encoded log id, extensions, and signature fields&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:SCT.adoc[SCT]*
SCT&lowbar;new&lowbar;from&lowbar;base64(
    unsigned char version,
    char const* logid&lowbar;base64,
    ct&lowbar;log&lowbar;entry&lowbar;type&lowbar;t entry&lowbar;type,
    uint64&lowbar;t timestamp,
    char const* extensions&lowbar;base64,
    char const* signature&lowbar;base64);
----

== Return Value

New SCT, or NULL on error&semi; free with SCT&lowbar;free&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *version*
| SCT version byte (typically SCT&lowbar;VERSION&lowbar;V1)&period;
| *logid&lowbar;base64*
| Base64&hyphen;encoded CT log ID&period;
| *entry&lowbar;type*
| Log entry type (X&period;509 certificate or precertificate)&period;
| *timestamp*
| SCT timestamp in milliseconds since the Unix epoch&period;
| *extensions&lowbar;base64*
| Base64&hyphen;encoded SCT extensions, or empty&sol;NULL for none&period;
| *signature&lowbar;base64*
| Base64&hyphen;encoded SCT signature&period;
|===


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