mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-19 11:09:42 +00:00
TLS krypton compat
This commit is contained in:
1 parent
9eabf3fa81
commit
7d67d578fd
2 files changed
+6
-4
No files matched your search
+3
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user