mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 16:48:06 +02:00
added support for TLSv1.1 and TLSv1.2 to Context
This commit is contained in:
@@ -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;
|
||||||
|
@@ -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)
|
||||||
|
Reference in New Issue
Block a user