This is a known problem, see
https://github.com/apache/trafficserver/issues/2388 . The point of that
feature request is to be able to store data on the TSNetVConn (which you
have in the SSL hook) and then retrieve it later in an HTTP hook (from
which you can get to the same TSNetVConn). Currently I can't suggest
anything better than making your own global table of TSNetVConn -> SSL
information which admittedly is painful.

On Mon, Sep 25, 2017 at 9:31 PM, Dk Jack <dnj0...@gmail.com> wrote:

> Hi,
> I am adding a hook to get access to the ssl handshake data. I am using
> something like:
>
> TSHttpHookAdd(TS_SSL_CERT_HOOK, cb_cert);
>
> In the ssl callback, I am extracting some info from the ssl connection and
> I'd like to save the info. I'd like to later retrieve this info when my
> Http hook call back is invoked.
>
> TSHttpHookAdd(TS_HTTP_SEND_REQUEST_HDR_HOOK, cont);
>
> When my HTTP hook callback is called, I get TSHttpTxn. From HttpTxn how to
> retrieve the saved ssl information? What is the correct way to make this
> work? Any help is appreciated. Thanks.
>
> Dk.
>

Reply via email to