[#SSL_add1_host]
= SSL&lowbar;add1&lowbar;host
:mrdocs:

Add an additional expected DNS hostname for peer certificate name checks&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;add1&lowbar;host(
    xref:SSL.adoc[SSL]* s,
    char const* hostname);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| Client SSL connection&semi; existing hostnames from SSL&lowbar;set1&lowbar;host &sol; SSL&lowbar;add1&lowbar;host are retained&period;
| *hostname*
| Hostname to add&semi; NULL or empty leaves the list unchanged&period;
|===


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