20 lines
519 B
C
20 lines
519 B
C
#ifndef CERT_H
|
|
#define CERT_H
|
|
|
|
#include <openssl/ssl.h>
|
|
#include <pthread.h>
|
|
|
|
struct cert
|
|
{
|
|
EVP_PKEY *key;
|
|
X509 *crt;
|
|
STACK_OF(X509) * chain;
|
|
};
|
|
struct cert_mgr;
|
|
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);
|
|
#endif /* !CERT_H */
|