[#SSL_get0_next_proto_negotiated] = SSL_get0_next_proto_negotiated :mrdocs: Return the Next Protocol Negotiation (NPN) protocol selected on this connection. == Synopsis Declared in `<openssl/ssl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void SSL_get0_next_proto_negotiated( xref:SSL.adoc[SSL] const* s, unsigned char const** data, unsigned int* len); ---- == Description NPN is obsolete relative to ALPN and cannot be used with QUIC SSL objects. == Return Value the Next Protocol Negotiation (NPN) protocol selected on this connection. == Parameters [cols="1,4"] |=== | Name| Description | *s* | SSL connection that completed NPN during the handshake. | *data* | Receives a pointer to the protocol name (not NUL‐terminated), or NULL if none was negotiated. | *len* | Receives the length of the protocol name in bytes, or 0 if `data` is NULL. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#