[#SSL_add_dir_cert_subjects_to_stack]
= SSL&lowbar;add&lowbar;dir&lowbar;cert&lowbar;subjects&lowbar;to&lowbar;stack
:mrdocs:

Append subject names from every certificate file in `dir` to `stackCAs&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;add&lowbar;dir&lowbar;cert&lowbar;subjects&lowbar;to&lowbar;stack(
    stack&lowbar;st&lowbar;X509&lowbar;NAME* stackCAs,
    char const* dir);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *stackCAs*
| Destination stack of X509&lowbar;NAME values (typically CA subjects)&period;
| *dir*
| Directory whose certificate files are scanned&period;
|===


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