summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2024-09-25 16:08:00 +0800
committerluwenpeng <[email protected]>2024-09-25 16:08:00 +0800
commit3617db7201a816008d0bccc0f94a00ef6034be3e (patch)
tree6de37886f43d7bd66cc6bc4c5272694769775582 /common
parent4ef367ac41c94536ea7c3810636a3ca90bcb74b7 (diff)
feature(adapt maat): PXY_PROFILE_DECRYPTION adapt uuid
Diffstat (limited to 'common')
-rw-r--r--common/include/ssl_stream.h16
-rw-r--r--common/include/tfe_cmsg.h10
2 files changed, 13 insertions, 13 deletions
diff --git a/common/include/ssl_stream.h b/common/include/ssl_stream.h
index 7c38ec4..9354f8f 100644
--- a/common/include/ssl_stream.h
+++ b/common/include/ssl_stream.h
@@ -41,16 +41,16 @@ enum ssl_ja3_pinning_status
int sslver_str2num(const char * version_str);
//s_stream must be upstream.
-int ssl_stream_set_integer_opt(struct ssl_stream *upstream, enum SSL_STREAM_OPT opt_type, int opt_val);
-int ssl_stream_get_integer_opt(struct ssl_stream *upstream, enum SSL_STREAM_OPT opt_type, int *opt_val);
-int ssl_stream_get_string_opt(struct ssl_stream *upstream, enum SSL_STREAM_OPT opt_type, char* in_buff, size_t sz);
-
+int ssl_stream_set_integer_opt(struct ssl_stream *upstream, enum SSL_STREAM_OPT opt_type, int opt_val);
+int ssl_stream_get_integer_opt(struct ssl_stream *upstream, enum SSL_STREAM_OPT opt_type, int *opt_val);
+int ssl_stream_get_string_opt(struct ssl_stream *upstream, enum SSL_STREAM_OPT opt_type, char *in_buff, size_t sz);
+int ssl_stream_set_uuid_opt(struct ssl_stream *upstream, enum SSL_STREAM_OPT opt_type, uuid_t *uuid);
void ssl_stream_set_cmsg_string(struct ssl_stream *stream, enum tfe_cmsg_tlv_type type, const char *value_str);
-uint64_t ssl_stream_get_policy_id(struct ssl_stream *upstream);
-int ssl_stream_get_decrypted_profile_id(struct ssl_stream *upstream);
-int ssl_stream_get_trusted_keyring_profile_id(struct ssl_stream *upstream);
-int ssl_stream_get_untrusted_keyring_profile_id(struct ssl_stream *upstream);
+void ssl_stream_get_policy_id(struct ssl_stream *upstream, uuid_t *policy_id);
+void ssl_stream_get_decrypted_profile_id(struct ssl_stream *upstream, uuid_t *profile_id);
+void ssl_stream_get_trusted_keyring_profile_id(struct ssl_stream *upstream, uuid_t *profile_id);
+void ssl_stream_get_untrusted_keyring_profile_id(struct ssl_stream *upstream, uuid_t *profile_id);
unsigned int is_ssl_debug();
diff --git a/common/include/tfe_cmsg.h b/common/include/tfe_cmsg.h
index 7386c6b..1e67030 100644
--- a/common/include/tfe_cmsg.h
+++ b/common/include/tfe_cmsg.h
@@ -34,12 +34,12 @@ enum tfe_cmsg_tlv_type
TFE_CMSG_TCP_RESTORE_TS_CLIENT_VAL = 0xe,
TFE_CMSG_TCP_RESTORE_TS_SERVER_VAL = 0xf,
- TFE_CMSG_POLICY_ID = 0x10, // size uint64_t
+ TFE_CMSG_POLICY_ID = 0x10, // size uuid_t
TFE_CMSG_STREAM_TRACE_ID = 0x11,
- TFE_CMSG_TCP_OPTION_PROFILE_ID, // size int
- TFE_CMSG_DECRYPTION_PROFILE_ID, // size int
- TFE_CMSG_KEYRING_FOR_TRUSTED_ID, // size int
- TFE_CMSG_KEYRING_FOR_UNTRUSTED, // size int
+ TFE_CMSG_TCP_OPTION_PROFILE_ID, // size uuid_t
+ TFE_CMSG_DECRYPTION_PROFILE_ID, // size uuid_t
+ TFE_CMSG_KEYRING_FOR_TRUSTED_ID, // size uuid_t
+ TFE_CMSG_KEYRING_FOR_UNTRUSTED, // size uuid_t
TFE_CMSG_SSL_INTERCEPT_STATE, // size uint8_t, 0-passthrough, 1-intercept, 2-shutdown, referer from enum ssl_stream_action
TFE_CMSG_SSL_SERVER_SIDE_LATENCY, // size uint64_t, milisecond