You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by "jasmine-nahrain (via GitHub)" <gi...@apache.org> on 2026/01/08 00:52:03 UTC
[PR] Add boringssl support to the ja4_fingerprint plugin [trafficserver]
jasmine-nahrain opened a new pull request, #12790:
URL: https://github.com/apache/trafficserver/pull/12790
(no comment)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add boringssl support to the ja4_fingerprint plugin [trafficserver]
Posted by "maskit (via GitHub)" <gi...@apache.org>.
maskit commented on code in PR #12790:
URL: https://github.com/apache/trafficserver/pull/12790#discussion_r2742676333
##########
doc/developer-guide/api/types/TSClientHello.en.rst:
##########
@@ -0,0 +1,43 @@
+.. Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed
+ with this work for additional information regarding copyright
+ ownership. The ASF licenses this file to you under the Apache
+ License, Version 2.0 (the "License"); you may not use this file
+ except in compliance with the License. You may obtain a copy of
+ the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied. See the License for the specific language governing
+ permissions and limitations under the License.
+
+.. include:: ../../../common.defs
+
+.. default-domain:: cpp
+
+TSClientHello
+*************
+
+Synopsis
+========
+
+.. code-block:: cpp
+
+ #include <ts/apidefs.h>
+
+.. type:: TSClientHello
+
+
+Description
+===========
+
+:type:`TSClientHello` is an opaque handle to a TLS ClientHello message sent by
Review Comment:
It's not just a handle. I think the accessors need to be listed. Otherwise reading the header file would be the only way to know how to use it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add boringssl support to the ja4_fingerprint plugin [trafficserver]
Posted by "maskit (via GitHub)" <gi...@apache.org>.
maskit commented on code in PR #12790:
URL: https://github.com/apache/trafficserver/pull/12790#discussion_r2738177167
##########
plugins/experimental/ja4_fingerprint/plugin.cc:
##########
@@ -289,9 +288,10 @@ add_ciphers(JA4::TLSClientHelloSummary &summary, TSClientHello ch)
void
add_extensions(JA4::TLSClientHelloSummary &summary, TSClientHello ch)
{
- if (ch->extensions != nullptr) {
- const uint8_t *ext = ch->extensions;
- size_t remaining = ch->extensions_len;
+ // For BoringSSL, we have direct access to the extensions buffer
Review Comment:
Can't `ch` have a function that returns an iterator for extension type IDs so plugins don't need to deal with the difference?
```
for (auto ext_type : ch->get_extension_types()) {
summary.add_extension(ext_type);
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add boringssl support to the ja4_fingerprint plugin [trafficserver]
Posted by "maskit (via GitHub)" <gi...@apache.org>.
maskit commented on PR #12790:
URL: https://github.com/apache/trafficserver/pull/12790#issuecomment-4166350079
The change on this PR was merged as part of https://github.com/apache/trafficserver/pull/12914.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add boringssl support to the ja4_fingerprint plugin [trafficserver]
Posted by "maskit (via GitHub)" <gi...@apache.org>.
maskit commented on code in PR #12790:
URL: https://github.com/apache/trafficserver/pull/12790#discussion_r2742894555
##########
doc/developer-guide/api/functions/TSVConnClientHelloGet.en.rst:
##########
@@ -0,0 +1,50 @@
+.. Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed
+ with this work for additional information regarding copyright
+ ownership. The ASF licenses this file to you under the Apache
+ License, Version 2.0 (the "License"); you may not use this file
+ except in compliance with the License. You may obtain a copy of
+ the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied. See the License for the specific language governing
+ permissions and limitations under the License.
+
+.. include:: ../../../common.defs
+
+.. default-domain:: cpp
+
+TSVConnClientHelloGet
+*********************
+
+Synopsis
+========
+
+.. code-block:: cpp
+
+ #include <ts/ts.h>
+
+.. function:: TSClientHello TSVConnClientHelloGet(TSVConn sslp)
+.. function:: void TSClientHelloDestroy(TSClientHello ch)
+.. function:: TSReturnCode TSClientHelloExtensionGet(TSClientHello ch, unsigned int type, const unsigned char **out, size_t *outlen)
+
+Description
+===========
+
+:func:`TSVConnClientHelloGet` retrieves ClientHello message data from the TLS
+virtual connection :arg:`sslp`. This function is typically called from the
Review Comment:
Since we don't deep copy the information, we can use this function only on limited hooks. I'm sure we can use `TS_EVENT_SSL_CLIENT_HELLO`, but I'm not sure if it's the only hook or there are other hooks.
The documentation should list up all the hook, or tell that `TS_EVENT_SSL_CLIENT_HELLO` is the only hook supported (maybe for now, until somebody confirms another hook work as well).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add boringssl support to the ja4_fingerprint plugin [trafficserver]
Posted by "maskit (via GitHub)" <gi...@apache.org>.
maskit closed pull request #12790: Add boringssl support to the ja4_fingerprint plugin
URL: https://github.com/apache/trafficserver/pull/12790
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add boringssl support to the ja4_fingerprint plugin [trafficserver]
Posted by "bneradt (via GitHub)" <gi...@apache.org>.
bneradt commented on code in PR #12790:
URL: https://github.com/apache/trafficserver/pull/12790#discussion_r2723219183
##########
include/ts/apidefs.h.in:
##########
@@ -1081,6 +1081,19 @@ using TSAIOCallback = struct tsapi_aiocallback *;
using TSAcceptor = struct tsapi_net_accept *;
using TSRemapPluginInfo = struct tsapi_remap_plugin_info *;
+struct tsapi_ssl_client_hello {
+ uint16_t version;
+ const uint8_t *cipher_suites;
+ size_t cipher_suites_len;
+ const uint8_t *extensions;
+ size_t extensions_len;
+ int *extension_ids;
+ size_t extension_ids_len;
+ void *ssl_ptr;
+};
Review Comment:
Let's initialize these here (nullptr, 0).
Also: as a tweak on this, what do you think of making these private and adding public getters for these such that we can lazily load them as they are requested? Subsequent requests can then return the populated (cached) values if the same value is asked for twice. Currently, the caller has to pay for the population of all of these even though they might not need them all.
##########
plugins/experimental/ja4_fingerprint/plugin.cc:
##########
@@ -163,13 +163,21 @@ handle_client_hello(TSCont /* cont ATS_UNUSED */, TSEvent event, void *edata)
// We ignore the event, but we don't want to reject the connection.
return TS_SUCCESS;
}
- TSVConn const ssl_vc{static_cast<TSVConn>(edata)};
- TSSslConnection const ssl{TSVConnSslConnectionGet(ssl_vc)};
- if (nullptr == ssl) {
- Dbg(dbg_ctl, "Could not get SSL object.");
+
+ TSVConn const ssl_vc{static_cast<TSVConn>(edata)};
+
+#ifdef OPENSSL_IS_BORINGSSL
+ TSClientHello ch = TSVConnClientHelloGet(ssl_vc);
+#else
+ TSSslConnection const ssl_conn{TSVConnSslConnectionGet(ssl_vc)};
+ TSClientHello ch = reinterpret_cast<TSClientHello>(ssl_conn);
+#endif
Review Comment:
Can't we use the same interface for both boringssl and openssl?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add boringssl support to the ja4_fingerprint plugin [trafficserver]
Posted by "jasmine-nahrain (via GitHub)" <gi...@apache.org>.
jasmine-nahrain commented on PR #12790:
URL: https://github.com/apache/trafficserver/pull/12790#issuecomment-3775934642
[approve ci autest 1]
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add boringssl support to the ja4_fingerprint plugin [trafficserver]
Posted by "maskit (via GitHub)" <gi...@apache.org>.
maskit commented on PR #12790:
URL: https://github.com/apache/trafficserver/pull/12790#issuecomment-3842549714
Thank you for all the updates @jasmine-nahrain . Things look good to me. Since you made a lot of changes on this PR, please update the API proposal on the list.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add boringssl support to the ja4_fingerprint plugin [trafficserver]
Posted by "jasmine-nahrain (via GitHub)" <gi...@apache.org>.
jasmine-nahrain commented on PR #12790:
URL: https://github.com/apache/trafficserver/pull/12790#issuecomment-3775694866
[approve ci AuTest 1]
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add boringssl support to the ja4_fingerprint plugin [trafficserver]
Posted by "jasmine-nahrain (via GitHub)" <gi...@apache.org>.
jasmine-nahrain commented on PR #12790:
URL: https://github.com/apache/trafficserver/pull/12790#issuecomment-3775934038
[approve autest1]
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add boringssl support to the ja4_fingerprint plugin [trafficserver]
Posted by "bneradt (via GitHub)" <gi...@apache.org>.
bneradt commented on code in PR #12790:
URL: https://github.com/apache/trafficserver/pull/12790#discussion_r2738473869
##########
include/ts/apidefs.h.in:
##########
@@ -1044,6 +1044,86 @@ struct TSHttp2Priority {
* or -1 if the stream has no dependency. */
int32_t stream_dependency;
};
+/**
+ * A structure for SSL Client Hello data
+ */
+struct tsapi_ssl_client_hello {
+ uint16_t version{0};
+ const uint8_t *cipher_suites{nullptr};
+ size_t cipher_suites_len{0};
+ const uint8_t *extensions{nullptr};
+ size_t extensions_len{0};
+ int *extension_ids{nullptr};
+ size_t extension_ids_len{0};
+ void *ssl_ptr{nullptr};
+};
+
+// Wrapper class that provides controlled access to client hello data
+class TSClientHelloImpl
+{
+public:
+ TSClientHelloImpl(tsapi_ssl_client_hello *ch) : _ssl_client_hello(ch) {}
+
+ ~TSClientHelloImpl() { delete _ssl_client_hello; }
+
+ uint16_t
+ get_version() const
+ {
+ return _ssl_client_hello->version;
+ }
+
+ const uint8_t *
+ get_cipher_suites() const
+ {
+ return _ssl_client_hello->cipher_suites;
+ }
+
+ size_t
+ get_cipher_suites_len() const
+ {
+ return _ssl_client_hello->cipher_suites_len;
+ }
+
+ const uint8_t *
+ get_extensions() const
+ {
+ return _ssl_client_hello->extensions;
+ }
+
+ size_t
+ get_extensions_len() const
+ {
+ return _ssl_client_hello->extensions_len;
+ }
+
+ const int *
+ get_extension_ids() const
+ {
+ return _ssl_client_hello->extension_ids;
+ }
+
+ size_t
+ get_extension_ids_len() const
+ {
+ return _ssl_client_hello->extension_ids_len;
+ }
+
+ void *
+ get_ssl_ptr() const
+ {
+ return _ssl_client_hello->ssl_ptr;
+ }
+
+ // Internal accessor for API implementation
+ tsapi_ssl_client_hello *
+ _get_internal() const
+ {
+ return _ssl_client_hello;
+ }
+
+private:
+ tsapi_ssl_client_hello *_ssl_client_hello;
Review Comment:
Since the TSClientHelloImpl takes ownership of the tsapi_ssl_client_hello, lets manage this as a std::unique_ptr:
```cpp
TSClientHelloImpl(std::unique_ptr<tsapi_ssl_client_hello> ch) : _ssl_client_hello(std::move(ch)) {}
~TSClientHelloImpl() = default;
...
std::unique_ptr<tsapi_ssl_client_hello> _ssl_client_hello;
```
With a call interface like:
```cpp
auto ch = std::make_unique<tsapi_ssl_client_hello>();
...
return new TSClientHelloImpl(std::move(ch));
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add boringssl support to the ja4_fingerprint plugin [trafficserver]
Posted by "maskit (via GitHub)" <gi...@apache.org>.
maskit commented on code in PR #12790:
URL: https://github.com/apache/trafficserver/pull/12790#discussion_r2742848310
##########
include/ts/apidefs.h.in:
##########
@@ -1044,6 +1046,122 @@ struct TSHttp2Priority {
* or -1 if the stream has no dependency. */
int32_t stream_dependency;
};
+/**
+ * A structure for SSL Client Hello data
+ */
+struct tsapi_ssl_client_hello {
+ uint16_t version{0};
+ const uint8_t *cipher_suites{nullptr};
+ size_t cipher_suites_len{0};
+ const uint8_t *extensions{nullptr};
+ size_t extensions_len{0};
+ int *extension_ids{nullptr};
+ size_t extension_ids_len{0};
+ void *ssl_ptr{nullptr};
+};
+
+// Wrapper class that provides controlled access to client hello data
+class TSClientHelloImpl
+{
+public:
+ TSClientHelloImpl(std::unique_ptr<tsapi_ssl_client_hello> ch) : _ssl_client_hello(std::move(ch)) {}
+
+ ~TSClientHelloImpl() = default;
+
+ uint16_t
+ get_version() const
+ {
+ return _ssl_client_hello->version;
+ }
+
+ const uint8_t *
+ get_cipher_suites() const
+ {
+ return _ssl_client_hello->cipher_suites;
+ }
+
+ size_t
+ get_cipher_suites_len() const
+ {
+ return _ssl_client_hello->cipher_suites_len;
+ }
+
+ const uint8_t *
+ get_extensions() const
+ {
+ return _ssl_client_hello->extensions;
+ }
+
+ size_t
+ get_extensions_len() const
+ {
+ return _ssl_client_hello->extensions_len;
+ }
+
+ const int *
+ get_extension_ids() const
+ {
+ return _ssl_client_hello->extension_ids;
+ }
+
+ size_t
+ get_extension_ids_len() const
+ {
+ return _ssl_client_hello->extension_ids_len;
+ }
+
+ void *
+ get_ssl_ptr() const
+ {
+ return _ssl_client_hello->ssl_ptr;
+ }
+
+ // Returns a vector of extension type IDs
+ // This abstracts the difference between BoringSSL (extensions buffer) and OpenSSL (extension_ids array)
+ std::vector<uint16_t>
Review Comment:
Hmm, I was expecting a custom iterable object. This implementation copies each item (extension type) into a vector. A custom iterator that internally manages an index/offset would avoid the copy.
Maybe we can hide the actual type, which is currently std:vector, by typedef/using for now, and tell that this function returns an iterable object. Then we can replace/optimize the implementation later. It would be nice if we could declare it like Iterable interface in Java, but I'm not sure how to do it in C++.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add boringssl support to the ja4_fingerprint plugin [trafficserver]
Posted by "maskit (via GitHub)" <gi...@apache.org>.
maskit commented on code in PR #12790:
URL: https://github.com/apache/trafficserver/pull/12790#discussion_r2723263318
##########
include/ts/apidefs.h.in:
##########
@@ -1081,6 +1081,19 @@ using TSAIOCallback = struct tsapi_aiocallback *;
using TSAcceptor = struct tsapi_net_accept *;
using TSRemapPluginInfo = struct tsapi_remap_plugin_info *;
+struct tsapi_ssl_client_hello {
+ uint16_t version;
+ const uint8_t *cipher_suites;
+ size_t cipher_suites_len;
+ const uint8_t *extensions;
+ size_t extensions_len;
+ int *extension_ids;
+ size_t extension_ids_len;
+ void *ssl_ptr;
+};
Review Comment:
Lazy load would be tricky. Best we can do is probably read and cache everything in `TSVConnClientHelloGet`.
As I commented on somewhere, `SSL_CLIENT_HELLO` is only available during BoringSSL callback functions are called. So `TSVConnClientHelloGet` needs to be called on certain hooks (this should be documented). This plugin seems fine since `TSVConnClientHelloGet` and `TSClientHelloDestroy` are called on `TS_SSL_CLIENT_HELLO_HOOK`, but if another plugin needs information from Client Hello later on another hook, everything needs to be deep copied when `TSVConnClientHelloGet` is called.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add boringssl support to the ja4_fingerprint plugin [trafficserver]
Posted by "maskit (via GitHub)" <gi...@apache.org>.
maskit commented on code in PR #12790:
URL: https://github.com/apache/trafficserver/pull/12790#discussion_r2723263318
##########
include/ts/apidefs.h.in:
##########
@@ -1081,6 +1081,19 @@ using TSAIOCallback = struct tsapi_aiocallback *;
using TSAcceptor = struct tsapi_net_accept *;
using TSRemapPluginInfo = struct tsapi_remap_plugin_info *;
+struct tsapi_ssl_client_hello {
+ uint16_t version;
+ const uint8_t *cipher_suites;
+ size_t cipher_suites_len;
+ const uint8_t *extensions;
+ size_t extensions_len;
+ int *extension_ids;
+ size_t extension_ids_len;
+ void *ssl_ptr;
+};
Review Comment:
Lazy load would be tricky. Best we can do is probably read and cache everything in `TSVConnClientHelloGet`.
As I commented on somewhere, `SSL_CLIENT_HELLO` is only available during BoringSSL callback functions are called. So `TSVConnClientHelloGet` needs to be called on certain hooks (this should be documented). This plugin seems fine since TSClientHelloDestroy is called on `TS_SSL_CLIENT_HELLO_HOOK`, but if another plugin needs information from Client Hello later on another hook, everything needs to be deep copied when `TSVConnClientHelloGet` is called.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add boringssl support to the ja4_fingerprint plugin [trafficserver]
Posted by "maskit (via GitHub)" <gi...@apache.org>.
maskit commented on code in PR #12790:
URL: https://github.com/apache/trafficserver/pull/12790#discussion_r2723282253
##########
include/ts/apidefs.h.in:
##########
@@ -1081,6 +1081,19 @@ using TSAIOCallback = struct tsapi_aiocallback *;
using TSAcceptor = struct tsapi_net_accept *;
using TSRemapPluginInfo = struct tsapi_remap_plugin_info *;
+struct tsapi_ssl_client_hello {
+ uint16_t version;
+ const uint8_t *cipher_suites;
+ size_t cipher_suites_len;
+ const uint8_t *extensions;
+ size_t extensions_len;
+ int *extension_ids;
+ size_t extension_ids_len;
+ void *ssl_ptr;
+};
Review Comment:
Public getters would be nice even if we don't do lazy land. Those would enable removing ifdef from the plugin code.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add boringssl support to the ja4_fingerprint plugin [trafficserver]
Posted by "maskit (via GitHub)" <gi...@apache.org>.
maskit commented on code in PR #12790:
URL: https://github.com/apache/trafficserver/pull/12790#discussion_r2742894555
##########
doc/developer-guide/api/functions/TSVConnClientHelloGet.en.rst:
##########
@@ -0,0 +1,50 @@
+.. Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed
+ with this work for additional information regarding copyright
+ ownership. The ASF licenses this file to you under the Apache
+ License, Version 2.0 (the "License"); you may not use this file
+ except in compliance with the License. You may obtain a copy of
+ the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied. See the License for the specific language governing
+ permissions and limitations under the License.
+
+.. include:: ../../../common.defs
+
+.. default-domain:: cpp
+
+TSVConnClientHelloGet
+*********************
+
+Synopsis
+========
+
+.. code-block:: cpp
+
+ #include <ts/ts.h>
+
+.. function:: TSClientHello TSVConnClientHelloGet(TSVConn sslp)
+.. function:: void TSClientHelloDestroy(TSClientHello ch)
+.. function:: TSReturnCode TSClientHelloExtensionGet(TSClientHello ch, unsigned int type, const unsigned char **out, size_t *outlen)
+
+Description
+===========
+
+:func:`TSVConnClientHelloGet` retrieves ClientHello message data from the TLS
+virtual connection :arg:`sslp`. This function is typically called from the
Review Comment:
Since we don't deep copy the information, we can use this function only on limited hooks. I'm sure we can use `TS_EVENT_SSL_CLIENT_HELLO`, but I'm not sure if it's the only hook or there are other hooks.
The documentation should list up all the hooks, or tell that `TS_EVENT_SSL_CLIENT_HELLO` is the only hook supported (maybe for now, until somebody confirms another hook work as well).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org