summaryrefslogtreecommitdiff
path: root/platform/include
diff options
context:
space:
mode:
authorzhengchao <[email protected]>2019-06-10 18:39:01 +0800
committerzhengchao <[email protected]>2019-06-11 15:26:16 +0800
commitf18c5efdb173da7b8dbff72aa19b461d87970132 (patch)
tree52b76f23399a6331a43a9f4d55e93c0f91348989 /platform/include
parentb612ef25076258d58f935b4ffcec43c5c72af7f9 (diff)
1、使用服务器IP+端口+sni生成服务端状态 #141,使用客户端IP+Client hello特征生成客户端状态。2、pinning detection的相关阈值可从tfe.conf中配置。
Diffstat (limited to 'platform/include')
-rw-r--r--platform/include/internal/ssl_service_cache.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/include/internal/ssl_service_cache.h b/platform/include/internal/ssl_service_cache.h
index 938535e..be84dd3 100644
--- a/platform/include/internal/ssl_service_cache.h
+++ b/platform/include/internal/ssl_service_cache.h
@@ -17,11 +17,11 @@ struct ssl_service_status
};
struct ssl_service_cache;
-struct ssl_service_cache* ssl_service_cache_create(unsigned int slot_size, unsigned int expire_seconds);
+struct ssl_service_cache* ssl_service_cache_create(unsigned int slot_size, unsigned int expire_seconds, int fail_as_pinning_cnt, int fail_as_proto_err_cnt, int fail_time_win);
void ssl_service_cache_destroy(struct ssl_service_cache* cache);
-int ssl_service_cache_read(struct ssl_service_cache* svc_cache, const struct ssl_chello* chello, struct ssl_service_status* result);
-void ssl_service_cache_write(struct ssl_service_cache* svc_cache, const struct ssl_chello* chello, const struct ssl_service_status* status);
+int ssl_service_cache_read(struct ssl_service_cache* svc_cache, const struct ssl_chello* chello, const struct tfe_stream_addr * addr, struct ssl_service_status* result);
+void ssl_service_cache_write(struct ssl_service_cache* svc_cache, const struct ssl_chello* chello, const struct tfe_stream_addr * addr, const struct ssl_service_status* status);
struct ssl_service_cache_statistics
{
long long pinning_cli_cnt;