[#SSL_CTX_npn_advertised_cb_func]
= SSL&lowbar;CTX&lowbar;npn&lowbar;advertised&lowbar;cb&lowbar;func
:mrdocs:

NPN server callback that advertises the server&apos;s protocol list&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
typedef int(* SSL&lowbar;CTX&lowbar;npn&lowbar;advertised&lowbar;cb&lowbar;func)(xref:SSL.adoc[SSL]*, unsigned char const**, unsigned int*, void*);
----

== Return Value

SSL&lowbar;TLSEXT&lowbar;ERR&lowbar;OK to send the list, or another SSL&lowbar;TLSEXT&lowbar;ERR&lowbar;&ast; code&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ssl*
| Server SSL connection performing NPN&period;
| *out*
| Set to the wire&hyphen;format protocol list to advertise&period;
| *outlen*
| Receives the length of &ast;`out&period;`
| *arg*
| User argument from SSL&lowbar;CTX&lowbar;set&lowbar;next&lowbar;protos&lowbar;advertised&lowbar;cb&period;
|===


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