[#SSL_dane_enable]
= SSL&lowbar;dane&lowbar;enable
:mrdocs:

Enable DANE TLSA authentication for a connection (must be called before the handshake)&period;

== Synopsis

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

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

== Return Value

Positive value on success, 0 on invalid usage, or a negative value on resource failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| SSL connection associated with a DANE&hyphen;enabled SSL&lowbar;CTX&period;
| *basedomain*
| Base domain name used for DANE name checks &sol; TLSA lookup context&period;
|===


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