可以检测certificate pinning和mutual authentication。
This commit is contained in:
24
platform/include/internal/ssl_service_cache.h
Normal file
24
platform/include/internal/ssl_service_cache.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include <tfe_types.h>
|
||||
#include <ssl_utils.h>
|
||||
#include <event2/event.h>
|
||||
|
||||
#define PINNING_ST_NOT_PINNING 0
|
||||
#define PINNING_ST_PINNING 1
|
||||
#define PINNING_ST_MAYBE_PINNING 2
|
||||
struct ssl_service_status
|
||||
{
|
||||
char pinning_status;
|
||||
char is_ev;
|
||||
char is_ct;
|
||||
char is_mutual_auth;
|
||||
};
|
||||
|
||||
struct ssl_service_cache;
|
||||
struct ssl_service_cache* ssl_service_cache_create(unsigned int slot_size, unsigned int expire_seconds);
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user