Re: [API] Expose Client request SSL Stats

2019-07-16 Thread Valentín Gutierrez
So something like this would be more appealing? typedef enum { TS_STAT_SSL_PROTOCOL = 0, TS_STAT_SSL_CIPHER, TS_STAT_SSL_CURVE, } TSStatSsl; int TSHttpTxnClientReqIsSslReused(TSHttpTxn txnp); const char *TSHttpTxnClientReqSslStatGet(TSHttpTxn txnp, TSStatSsl stat_ssl); On Wed, Jul 17, 2019 at 1:

Re: [API] Expose Client request SSL Stats

2019-07-16 Thread Sudheer Vinukonda
Hmm...feels like this is a bit of an overload to write a separate API for each stat - Would it be better to write generic APIs that can return any stat (defined as an ENUM for example)?  On Tuesday, July 16, 2019, 11:07:19 AM PDT, Valentín Gutierrez wrote: Hi, We need to expose sev

[API] Expose Client request SSL Stats

2019-07-16 Thread Valentín Gutierrez
Hi, We need to expose several client request SSL stats that are currently being gathered in the HttpSM to the Lua plugin. To achieve this I'd like to propose adding several functions to the API: int TSHttpTxnClientReqIsSslReused(TSHttpTxn txnp); const char *TSHttpTxnClientReqSslCipherGet(TSHttpTx