[#SSL_CTX_set_tlsext_use_srtp]
= SSL&lowbar;CTX&lowbar;set&lowbar;tlsext&lowbar;use&lowbar;srtp
:mrdocs:

Set the DTLS use&lowbar;srtp extension protection profiles for a context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;CTX&lowbar;set&lowbar;tlsext&lowbar;use&lowbar;srtp(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    char const* profiles);
----

== Return Value

0 on success, or 1 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context to configure&period;
| *profiles*
| Colon&hyphen;separated list of SRTP profile names&period;
|===


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