[#SCT_set_signature_nid]
= SCT&lowbar;set&lowbar;signature&lowbar;nid
:mrdocs:

Set the signature algorithm NID used by an SCT&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SCT&lowbar;set&lowbar;signature&lowbar;nid(
    xref:SCT.adoc[SCT]* sct,
    int nid);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sct*
| Signed Certificate Timestamp to update&period;
| *nid*
| For CT v1, NID&lowbar;sha256WithRSAEncryption or NID&lowbar;ecdsa&lowbar;with&lowbar;SHA256&period;
|===


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