Do you guys have any example plugins that use these hooks?

Brian

On Thursday, February 13, 2014, Wei Sun <sun...@yahoo-inc.com> 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:
>
>
> https://issues.apache.org/jira/browse/TS-2437?focusedCommentId=13897621&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13897621
>
> The reason for these hooks is that I have a use case to manipulate
> (overwrite) the OpenSSL related callbacks in my plugin. I think it is also
> useful for applications who have a need to change or retrieve the ssl
> related attributes (callbacks, certs, configurations, etc.).
>
> The doc for the hooks is attached in the Jira above, and below as well.
>
> There are no ABI / API incompatibilities with this patch.
>
> Please comment.
>
> Thanks,
> Wei Sun
>
> /*
>       TS_LIFECYCLE_SERVER_SSL_CTX_INITIALIZED_HOOK
>
>         called every time after a server SSL_CTX has finished the
> initialization.
>         It exposes the initialized SSL_CTX pointer.
>
>         Event: TS_EVENT_LIFECYCLE_SERVER_SSL_CTX_INITIALIZED
>
>       TS_LIFECYCLE_CLIENT_SSL_CTX_INITIALIZED_HOOK
>
>         called once, after the client SSL_CTX has finished the
> initialization.
>         It exposes the initialized SSL_CTX pointer.
>
>         Event: TS_EVENT_LIFECYCLE_CLIENT_SSL_CTX_INITIALIZED
> */
>
> @@ -322,6 +336,8 @@ extern "C"
>      TS_LIFECYCLE_PORTS_INITIALIZED_HOOK,
>      TS_LIFECYCLE_PORTS_READY_HOOK,
>      TS_LIFECYCLE_CACHE_READY_HOOK,
> +    TS_LIFECYCLE_SERVER_SSL_CTX_INITIALIZED_HOOK,
> +    TS_LIFECYCLE_CLIENT_SSL_CTX_INITIALIZED_HOOK,
>      TS_LIFECYCLE_LAST_HOOK
>    } TSLifecycleHookID;
>
> @@ -413,6 +429,8 @@ extern "C"
>      TS_EVENT_LIFECYCLE_PORTS_INITIALIZED = 60018,
>      TS_EVENT_LIFECYCLE_PORTS_READY = 60019,
>      TS_EVENT_LIFECYCLE_CACHE_READY = 60020,
> +    TS_EVENT_LIFECYCLE_SERVER_SSL_CTX_INITIALIZED = 60021,
> +    TS_EVENT_LIFECYCLE_CLIENT_SSL_CTX_INITIALIZED = 60022,
>      TS_EVENT_MGMT_UPDATE = 60100,
>
>

Reply via email to