This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tango-certstore/src/cert_session.h
fengweihao a6a80839aa 1.添加从Redis读取配置文件并读取证书信息
2.修改读取证书信息文件文件接口,增加对der、P12证书个数获取
3.添加Redis重连机制及宏开关控制信息,默认关闭
2018-10-22 11:15:57 +08:00

54 lines
963 B
C

/*************************************************************************
> File Name: cert_session.h
> Author:
> Mail:
> Created Time: Fri 01 Jun 2018 02:01:08 AM PDT
************************************************************************/
#ifndef _CERT_SESSION_H
#define _CERT_SESSION_H
#include "event_struct.h"
#include "MESA_list_queue.h"
#include "rt_sync.h"
struct x509_object_ctx
{
X509 *root;
EVP_PKEY *key;
};
typedef struct {
int id;
rt_pthread pid; /* unique ID of this thread */
evutil_socket_t accept_fd;
rt_pthread_attr *attr;
struct event_base *base;
struct x509_object_ctx def;
struct redisAsyncContext *cl_ctx;
struct redisContext *sync;
void * (*routine)(void *); /** Executive entry */
int field_ids; /* dispaly */
int column_ids;
uint64_t diffTime;
} libevent_thread;
int cert_session_init();
void sigproc(int __attribute__((__unused__))sig);
#endif