//
// Created by lwp on 2019/10/16.
//

#ifndef TFE_SSL_FETCH_CERT_H
#define TFE_SSL_FETCH_CERT_H

// return 0 for success, return -1 for failed
int ssl_mid_cert_kafka_logger_create(const char *profile, const char *section);
void ssl_mid_cert_kafka_logger_destory(void);
void ssl_fetch_trusted_cert_from_chain(STACK_OF(X509) *cert_chain, X509_STORE *trusted_store, const char *hostname);

#endif //TFE_SSL_FETCH_CERT_H