added support for TLSv1.1 and TLSv1.2 to Context

This commit is contained in:
Guenter Obiltschnig
2014-09-02 17:30:02 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -163,7 +163,7 @@ public:
app.logger().information(it->first + ": " + it->second); app.logger().information(it->first + ": " + it->second);
} }
if (request.getURI() == "/ws") if(request.find("Upgrade") != request.end() && request["Upgrade"] == "websocket")
return new WebSocketRequestHandler; return new WebSocketRequestHandler;
else else
return new PageRequestHandler; return new PageRequestHandler;

View File

@@ -340,7 +340,7 @@ void Context::createSSLContext()
break; break;
#endif #endif
default: default:
throw Poco::InvalidArgumentException("Invalid usage"); throw Poco::InvalidArgumentException("Invalid or unsupported usage");
} }
} }
if (!_pSSLContext) if (!_pSSLContext)