[#SSL_get0_dane_tlsa]
= SSL&lowbar;get0&lowbar;dane&lowbar;tlsa
:mrdocs:

Return the matching DANE TLSA record fields after successful authentication&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;get0&lowbar;dane&lowbar;tlsa(
    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

Nonnegative chain depth of the match on success, or a negative value if DANE failed or was not enabled&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| SSL connection that completed DANE peer authentication&period;
| *usage*
| Optional&semi; receives the TLSA certificate usage of the matching record&period;
| *selector*
| Optional&semi; receives the TLSA selector of the matching record&period;
| *mtype*
| Optional&semi; receives the TLSA matching type of the matching record&period;
| *data*
| Optional&semi; receives a pointer to the matching association data (do not free)&period;
| *dlen*
| Optional&semi; receives the length of `data` in bytes&period;
|===


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