[#SSL_CTX_add1_to_CA_list]
= SSL&lowbar;CTX&lowbar;add1&lowbar;to&lowbar;CA&lowbar;list
:mrdocs:

Append a CA subject name from a certificate to an SSL context&apos;s peer CA list&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;CTX&lowbar;add1&lowbar;to&lowbar;CA&lowbar;list(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    xref:X509.adoc[X509] const* x);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose CA list is updated&period;
| *x*
| Certificate whose subject name is duplicated onto the list&period;
|===


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