1.注册maat延迟删除接口keyring_table_new_cb等
2.增加读取本地默认证书开关, 开启:读取本地根证书 关闭:keyring_id为0本地非可信根证书,keyring_id为1本地可信根证书 3.将valid标志写入redis-key中
This commit is contained in:
@@ -15,8 +15,13 @@
|
||||
#include <x509.h>
|
||||
#include <evp.h>
|
||||
|
||||
#include "moodycamel_maat_rule.h"
|
||||
#include "MESA_htable.h"
|
||||
|
||||
#define CT_PATH_MAX 256
|
||||
#define CT_ARRARY_LEN (CT_PATH_MAX/2)
|
||||
#define CT_STRING_MAX 1024
|
||||
|
||||
struct request_t{
|
||||
#define DATALEN 128
|
||||
int thread_id;
|
||||
@@ -30,27 +35,18 @@ struct request_t{
|
||||
};
|
||||
|
||||
struct pxy_obj_keyring{
|
||||
int id;
|
||||
int service;
|
||||
int keyring_id;
|
||||
char keyring_type[CT_ARRARY_LEN];
|
||||
uint64_t expire_after;
|
||||
char public_algo[CT_STRING_MAX];
|
||||
char v3_ctl[CT_STRING_MAX];
|
||||
char finger[EVP_MAX_MD_SIZE];
|
||||
EVP_PKEY *key;
|
||||
X509 *root;
|
||||
char digest[EVP_MAX_MD_SIZE];
|
||||
char name[128];
|
||||
char type[128];
|
||||
char ctl[512];
|
||||
char public_algo[256];
|
||||
uint64_t expire_after;
|
||||
int is_valid;
|
||||
STACK_OF(X509) *stack_ca;
|
||||
};
|
||||
|
||||
struct key_ring_list
|
||||
{
|
||||
int updata_type;
|
||||
uint64_t sum_cnt;
|
||||
MESA_htable_handle htable, oldhtable;
|
||||
};
|
||||
|
||||
struct _initer_addr_t{
|
||||
uint16_t e_port; /*libevent prot*/
|
||||
uint16_t maat_port; /*maat redis port*/
|
||||
@@ -71,13 +67,15 @@ struct ntc_maat_t{
|
||||
};
|
||||
|
||||
struct config_bucket_t{
|
||||
Maat_feather_t feather;
|
||||
int table_id;
|
||||
unsigned int local_debug;
|
||||
unsigned int thread_nu;
|
||||
unsigned int expire_after;
|
||||
char ca_path[128];
|
||||
char uninsec_path[128];
|
||||
struct ntc_maat_t maat_t;
|
||||
struct _initer_addr_t addr_t;
|
||||
struct key_ring_list keyring;
|
||||
};
|
||||
|
||||
extern struct config_bucket_t *cert_default_config();
|
||||
|
||||
Reference in New Issue
Block a user