> On Nov 17, 2014, at 4:09 PM, Sudheer Vinukonda 
> <sudhe...@yahoo-inc.com.INVALID> wrote:
> 
> Hi All,
> 
> I would like add a new API TSSslAdvertiseProtocolSet(), to address the
> requirement of modifying the NPN advertising list for each SSL connection
> based on SNI (please refer TS-3153).
> 
> https://issues.apache.org/jira/browse/TS-3153
> 
> 
> Below is a brief description of the API. Please review and provide
> comments/concerns.

Why do you need this API when you can just do:

SSL_CTX_set_next_protos_advertised_cb(TSVConnSSLConnectionGet(vc), 
my_awesome_callback, foo);

> 
> 
> 
> +TSSslAdvertiseProtocolSet
> +============
> +
> +Synopsis
> +--------
> +
> +`#include <ts/ts.h>`
> +
> +.. c:function:: TSReturnCode TSSslAdvertiseProtocolSet(TSVConn sslp,
> const unsigned char ** list, unsigned int count);
> +
> +Description
> +-----------
> +
> +   Modifies the NPN advertisement list for a given SSL connection with
> :arg:`list`. If :arg:`count` is 0, sets the NPN advertisement list to the
> default registered protocol list for the end point. Note that, the plugin
> that uses this API owns the :arg:`list` and is responsible for making sure
> it points to a valid memory.
> +
> 
> 
> 
> Thanks,
> 
> Sudheer
> 

Reply via email to