[#SSL_dane_tlsa_add]
= SSL&lowbar;dane&lowbar;tlsa&lowbar;add
:mrdocs:

Add a DANE TLSA record used to authenticate the peer on a connection&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;dane&lowbar;tlsa&lowbar;add(
    xref:SSL.adoc[SSL]* s,
    uint8&lowbar;t usage,
    uint8&lowbar;t selector,
    uint8&lowbar;t mtype,
    unsigned char const* data,
    size&lowbar;t dlen);
----

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| DANE&hyphen;enabled SSL connection that will use the record during verification&period;
| *usage*
| TLSA certificate usage field&period;
| *selector*
| TLSA selector field&period;
| *mtype*
| TLSA matching type field&period;
| *data*
| Binary association data for the TLSA record&period;
| *dlen*
| Length of `data` in bytes&period;
|===


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