Skip to content

Commit

Permalink
adding include of openssl/err.h to fix errors when NO_SSL_DL is defined:
Browse files Browse the repository at this point in the history
mongoose.c:4680:23: error: ‘ERR_get_error’ was not declared in this scope
mongoose.c:4681:52: error: ‘ERR_error_string’ was not declared in this scope
  • Loading branch information
bick4ord committed Jul 26, 2013
1 parent 526f3aa commit ea81a22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mongoose.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ static const char *http_500_error = "Internal Server Error";

#if defined(NO_SSL_DL)
#include <openssl/ssl.h>
#include <openssl/err.h>
#else
// SSL loaded dynamically from DLL.
// I put the prototypes here to be independent from OpenSSL source installation.
Expand Down

0 comments on commit ea81a22

Please sign in to comment.