mirror of
https://github.com/cesanta/mongoose.git
synced 2025-08-06 13:37:34 +08:00
TLS krypton compat
This commit is contained in:
parent
9eabf3fa81
commit
7d67d578fd
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user