summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
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