完成ssl stream的流程梳理和接口定义。
This commit is contained in:
@@ -4,15 +4,16 @@
|
||||
#include <openssl/ssl.h>
|
||||
#include <pthread.h>
|
||||
|
||||
struct cert{};
|
||||
typedef struct cert cert_t;
|
||||
|
||||
struct cert
|
||||
{
|
||||
EVP_PKEY *key;
|
||||
X509 *crt;
|
||||
STACK_OF(X509) * chain;
|
||||
};
|
||||
struct cert_mgr;
|
||||
struct cert_mgr * cert_manager_init(const char * profile);
|
||||
|
||||
void cert_mgr_async_get(struct future * future, struct cert_mgr * mgr, int keyring_id,
|
||||
struct cert_mgr * cert_mgr_init(const char * profile, const char* section);
|
||||
struct cert* cert_mgr_query_result_release_cert(future_result_t* result);
|
||||
void cert_mgr_free_cert(struct cert* cert);
|
||||
void cert_mgr_async_query(struct future * future, struct cert_mgr * mgr, int keyring_id,
|
||||
X509 * origin_cert, struct event_base * evbase);
|
||||
|
||||
void cert_free(cert_t * cert);
|
||||
|
||||
#endif /* !CERT_H */
|
||||
|
||||
Reference in New Issue
Block a user