[#SSL_CTX_set_next_protos_advertised_cb]
= SSL&lowbar;CTX&lowbar;set&lowbar;next&lowbar;protos&lowbar;advertised&lowbar;cb
:mrdocs:

Set the Next Protocol Negotiation (NPN) advertisement callback for servers&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
SSL&lowbar;CTX&lowbar;set&lowbar;next&lowbar;protos&lowbar;advertised&lowbar;cb(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* s,
    xref:SSL_CTX_npn_advertised_cb_func.adoc[SSL&lowbar;CTX&lowbar;npn&lowbar;advertised&lowbar;cb&lowbar;func] cb,
    void* arg);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| SSL context used by NPN servers&period;
| *cb*
| Callback that supplies the protocol list to advertise, or NULL to clear&period;
| *arg*
| User pointer forwarded to `cb&period;`
|===


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