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. +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