[#SSL_get0_dane_authority]
= SSL&lowbar;get0&lowbar;dane&lowbar;authority
:mrdocs:

Return the matching DANE&hyphen;TA &sol; DANE&hyphen;EE authority depth and optional anchors&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;authority(
    xref:SSL.adoc[SSL]* s,
    xref:X509.adoc[X509]** mcert,
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]** mspki);
----

== Return Value

Depth of the matching authority (&gt;&equals;0), or a negative value if none&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| SSL connection that completed DANE verification&period;
| *mcert*
| If non&hyphen;NULL, receives the matching certificate when applicable (borrowed)&period;
| *mspki*
| If non&hyphen;NULL, receives the matching public key when applicable (borrowed)&period;
|===


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