TSVConnClientHelloGet
Synopsis
#include <ts/ts.h>
-
TSClientHello TSVConnClientHelloGet(TSVConn sslp)
-
TSReturnCode TSClientHelloExtensionGet(TSClientHello ch, unsigned int type, const unsigned char **out, size_t *outlen)
Description
TSVConnClientHelloGet() retrieves ClientHello message data from the TLS
virtual connection sslp. Returns a TSClientHello always. The availability
of the returned object must be checked before use.
重要
This function should only be called from the TS_EVENT_SSL_CLIENT_HELLO hook.
The returned TSClientHello is only valid during the SSL ClientHello event processing.
Using this function from other hooks may result in accessing invalid or stale data.
TSClientHelloExtensionGet() retrieves extension data for the specified
type (e.g., 0x10 for ALPN). Returns TS_SUCCESS if
found, TS_ERROR otherwise. The returned pointer in out is
valid only while ch exists.