[#SSL_add_expected_rpk]
= SSL&lowbar;add&lowbar;expected&lowbar;rpk
:mrdocs:

Add a DANE TLSA record matching raw public key `rpk` to the connection&apos;s validation policy&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;add&lowbar;expected&lowbar;rpk(
    xref:SSL.adoc[SSL]* s,
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]* rpk);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| SSL connection with DANE enabled (or to be enabled) that will trust `rpk&period;`
| *rpk*
| Expected peer raw public key&semi; may be called multiple times for key rotation&period;
|===


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