Windows build fix

fixes #12339
This commit is contained in:
Gunnar Beutner 2016-08-09 15:41:27 +02:00
parent 1e9adc047f
commit 43c2ec31ef
1 changed files with 4 additions and 4 deletions

View File

@ -1190,12 +1190,12 @@ void ApiListener::ValidateTlsProtocolmin(const String& value, const ValidationUt
value != SSL_TXT_TLSV1_2 value != SSL_TXT_TLSV1_2
#endif /* SSL_TXT_TLSV1_1 */ #endif /* SSL_TXT_TLSV1_1 */
) { ) {
BOOST_THROW_EXCEPTION(ValidationError(this, boost::assign::list_of("tls_protocolmin"), "Invalid TLS version. " String message = "Invalid TLS version. Must be one of '" SSL_TXT_TLSV1 "'";
"Must be one of '" SSL_TXT_TLSV1 "'"
#ifdef SSL_TXT_TLSV1_1 #ifdef SSL_TXT_TLSV1_1
", '" SSL_TXT_TLSV1_1 "' or '" SSL_TXT_TLSV1_2 "'" message += ", '" SSL_TXT_TLSV1_1 "' or '" SSL_TXT_TLSV1_2 "'";
#endif /* SSL_TXT_TLSV1_1 */ #endif /* SSL_TXT_TLSV1_1 */
));
BOOST_THROW_EXCEPTION(ValidationError(this, boost::assign::list_of("tls_protocolmin"), message));
} }
} }