ssl_ctx.h 282 B

1234567891011121314151617
  1. #ifndef HW_SSL_CTX_H
  2. #define HW_SSL_CTX_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. extern void* g_ssl_ctx; // for SSL_CTX
  7. int ssl_ctx_init(const char* crt_file, const char* key_file, const char* ca_file);
  8. int ssl_ctx_destory();
  9. #ifdef __cplusplus
  10. }
  11. #endif
  12. #endif // HW_SSL_CTX_H