ssl_ctx.h 285 B

123456789101112131415
  1. #ifndef HV_SSL_CTX_H
  2. #define HV_SSL_CTX_H
  3. #include "hexport.h"
  4. BEGIN_EXTERN_C
  5. extern void* g_ssl_ctx; // for SSL_CTX
  6. HV_EXPORT int ssl_ctx_init(const char* crt_file, const char* key_file, const char* ca_file);
  7. HV_EXPORT int ssl_ctx_destory();
  8. END_EXTERN_C
  9. #endif // HV_SSL_CTX_H