TLS krypton compat

This commit is contained in:
cpq 2021-01-23 17:47:51 +00:00
parent 9eabf3fa81
commit 7d67d578fd
2 changed files with 6 additions and 4 deletions

View File

@ -3413,10 +3413,11 @@ int mg_tls_free(struct mg_connection *c) {
}
#elif MG_ENABLE_OPENSSL ///////////////////////////////////////// OPENSSL
#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/ssl.h>
extern void ERR_clear_error(void); // Defined in openssl/err.h, but
extern void ERR_print_errors_fp(FILE *fp); // declare here for krypton
struct mg_tls {
SSL_CTX *ctx;
SSL *ssl;

View File

@ -166,10 +166,11 @@ int mg_tls_free(struct mg_connection *c) {
}
#elif MG_ENABLE_OPENSSL ///////////////////////////////////////// OPENSSL
#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/ssl.h>
extern void ERR_clear_error(void); // Defined in openssl/err.h, but
extern void ERR_print_errors_fp(FILE *fp); // declare here for krypton
struct mg_tls {
SSL_CTX *ctx;
SSL *ssl;