Re: [API Review] Add lifecycle hook for SSL_CTX initialization

2014-02-13 Thread Wei Sun
Tweak a little bit.. On 2/13/14 5:43 PM, "Wei Sun" wrote: >Hi Brian, > >Below is a piece of code snippet I used in a test plugin, please let me >know if you need more details. > >Thanks, >Wei > >--- > >int >SSLCtxInitCallbackHandler(TSCont cnt, TSEvent id, void* ssl_ctx) { > switch (id) { > ca

Re: [API Review] Add lifecycle hook for SSL_CTX initialization

2014-02-13 Thread Wei Sun
Hi Brian, Below is a piece of code snippet I used in a test plugin, please let me know if you need more details. Thanks, Wei --- int SSLCtxInitCallbackHandler(TSCont cnt, TSEvent id, void* ssl_ctx) { switch (id) { case TS_EVENT_LIFECYCLE_SERVER_SSL_CTX_INITIALIZED: { SSL_CTX

RE: [API Review] Add lifecycle hook for SSL_CTX initialization

2014-02-13 Thread Luca Rea
Absolutely +1

Re: [API Review] Add lifecycle hook for SSL_CTX initialization

2014-02-13 Thread Brian Geffon
Do you guys have any example plugins that use these hooks? Brian On Thursday, February 13, 2014, Wei Sun wrote: > Hi all, > > I'd like to add two new lifecycle hooks, > TS_LIFECYCLE_SERVER_SSL_CTX_INITIALIZED_HOOK and > TS_LIFECYCLE_CLIENT_SSL_CTX_INITIALIZED_HOOK, as discussed on this jira: >

[API Review] Add lifecycle hook for SSL_CTX initialization

2014-02-13 Thread Wei Sun
Hi all, I'd like to add two new lifecycle hooks, TS_LIFECYCLE_SERVER_SSL_CTX_INITIALIZED_HOOK and TS_LIFECYCLE_CLIENT_SSL_CTX_INITIALIZED_HOOK, as discussed on this jira: https://issues.apache.org/jira/browse/TS-2437?focusedCommentId=13897621&page=com.atlassian.jira.plugin.system.issuetabpanels