comparison OrthancFramework/Sources/HttpServer/HttpServer.h @ 4381:df313e410f0c varian

Add support to configure minimimum accepted TLS version and cipher suite
author Andrew Wallis <andrew.wallis@varian.com>>
date Fri, 11 Dec 2020 11:59:10 -0500
parents db3932f9660d
children 3aacd2bd8bbc
comparison
equal deleted inserted replaced
4379:85b5b0e1bac9 4381:df313e410f0c
95 bool authentication_; 95 bool authentication_;
96 bool sslVerifyPeers_; 96 bool sslVerifyPeers_;
97 std::string trustedClientCertificates_; 97 std::string trustedClientCertificates_;
98 bool ssl_; 98 bool ssl_;
99 std::string certificate_; 99 std::string certificate_;
100 std::string sslMinimumVersion_;
101 std::string sslCiphers_;
100 uint16_t port_; 102 uint16_t port_;
101 IIncomingHttpRequestFilter* filter_; 103 IIncomingHttpRequestFilter* filter_;
102 bool keepAlive_; 104 bool keepAlive_;
103 bool httpCompression_; 105 bool httpCompression_;
104 IHttpExceptionFormatter* exceptionFormatter_; 106 IHttpExceptionFormatter* exceptionFormatter_;
139 141
140 void SetSslEnabled(bool enabled); 142 void SetSslEnabled(bool enabled);
141 143
142 void SetSslVerifyPeers(bool enabled); 144 void SetSslVerifyPeers(bool enabled);
143 145
146 // set the minimum accepted version of SSL/TLS protocol according to the CivetWeb table published here:
147 // https://github.com/civetweb/civetweb/blob/master/docs/UserManual.md#ssl_protocol_version-0
148 void SetSslMinimumVersion(std::string version);
149
150 void SetSslCiphers(std::string ciphers);
151
144 void SetSslTrustedClientCertificates(const char* path); 152 void SetSslTrustedClientCertificates(const char* path);
145 153
146 bool IsKeepAliveEnabled() const; 154 bool IsKeepAliveEnabled() const;
147 155
148 void SetKeepAliveEnabled(bool enabled); 156 void SetKeepAliveEnabled(bool enabled);