[#SSL_dane_tlsa_add] = SSL_dane_tlsa_add :mrdocs: Add a DANE TLSA record used to authenticate the peer on a connection. == Synopsis Declared in `<openssl/ssl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int SSL_dane_tlsa_add( xref:SSL.adoc[SSL]* s, uint8_t usage, uint8_t selector, uint8_t mtype, unsigned char const* data, size_t dlen); ---- == Return Value Positive value on success, 0 for invalid input, or a negative value on resource failure. == Parameters [cols="1,4"] |=== | Name| Description | *s* | DANE‐enabled SSL connection that will use the record during verification. | *usage* | TLSA certificate usage field. | *selector* | TLSA selector field. | *mtype* | TLSA matching type field. | *data* | Binary association data for the TLSA record. | *dlen* | Length of `data` in bytes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#