diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-10-25 12:38:55 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-10-25 12:38:55 (GMT) |
commit | 43a0db67ba6527b00d7c60347675803ac3b1cfaa (patch) | |
tree | 72939afea08d69c5263ec380654d30f5807a4ab0 /src/uscxml/server | |
parent | 4bd97f940d87d861bec3e124b00936417f0e619d (diff) | |
download | uscxml-43a0db67ba6527b00d7c60347675803ac3b1cfaa.zip uscxml-43a0db67ba6527b00d7c60347675803ac3b1cfaa.tar.gz uscxml-43a0db67ba6527b00d7c60347675803ac3b1cfaa.tar.bz2 |
Fixed missing eliptic curves on some redhat based distros
Diffstat (limited to 'src/uscxml/server')
-rw-r--r-- | src/uscxml/server/HTTPServer.cpp | 6 | ||||
-rw-r--r-- | src/uscxml/server/HTTPServer.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/uscxml/server/HTTPServer.cpp b/src/uscxml/server/HTTPServer.cpp index ce403ee..ef7fb83 100644 --- a/src/uscxml/server/HTTPServer.cpp +++ b/src/uscxml/server/HTTPServer.cpp @@ -50,7 +50,7 @@ extern "C" { //#include <arpa/inet.h> #endif -#if (defined EVENT_SSL_FOUND && defined OPENSSL_FOUND) +#if (defined EVENT_SSL_FOUND && defined OPENSSL_FOUND && defined OPENSSL_HAS_ELIPTIC_CURVES) #include <openssl/ssl.h> #include <openssl/bio.h> #include <openssl/err.h> @@ -92,7 +92,7 @@ HTTPServer::HTTPServer(unsigned short port, SSLConfig* sslConf) { } determineAddress(); -#if (defined EVENT_SSL_FOUND && defined OPENSSL_FOUND) +#if (defined EVENT_SSL_FOUND && defined OPENSSL_FOUND && defined OPENSSL_HAS_ELIPTIC_CURVES) if (!sslConf) { _https = NULL; _sslHandle = NULL; @@ -165,7 +165,7 @@ HTTPServer* HTTPServer::getInstance(unsigned short port, SSLConfig* sslConf) { return _instance; } -#if (defined EVENT_SSL_FOUND && defined OPENSSL_FOUND) +#if (defined EVENT_SSL_FOUND && defined OPENSSL_FOUND && defined OPENSSL_HAS_ELIPTIC_CURVES) // see https://github.com/ppelleti/https-example/blob/master/https-server.c struct bufferevent* HTTPServer::sslBufferEventCallback(struct event_base *base, void *arg) { struct bufferevent* r; diff --git a/src/uscxml/server/HTTPServer.h b/src/uscxml/server/HTTPServer.h index 581181c..d5191da 100644 --- a/src/uscxml/server/HTTPServer.h +++ b/src/uscxml/server/HTTPServer.h @@ -125,7 +125,7 @@ private: friend class HTTPServlet; -#if (defined EVENT_SSL_FOUND && defined OPENSSL_FOUND) +#if (defined EVENT_SSL_FOUND && defined OPENSSL_FOUND && defined OPENSSL_HAS_ELIPTIC_CURVES) struct evhttp* _https; struct evhttp_bound_socket* _sslHandle; unsigned short _sslPort; |