#ifndef __NOPOLL_MBEDDTLS_H__ #define __NOPOLL_MBEDDTLS_H__ #include #include #include #include #include #include #include #include #include #ifndef EVP_MAX_MD_SIZE #define EVP_MAX_MD_SIZE 20 #endif struct nopoll_ssl { mbedtls_x509_crt ca_cert; mbedtls_x509_crt own_cert; mbedtls_pk_context pkey; mbedtls_ssl_context ssl; mbedtls_ssl_config conf; mbedtls_entropy_context entropy; mbedtls_ctr_drbg_context ctr_drbg; int fd; }; unsigned long ERR_get_error(void); void ERR_error_string_n(unsigned long e, char *buf, unsigned long len); #endif // __NOPOLL_MBEDDTLS_H__