From 43c2ec31ef12ac5491efade3c61bb9aeafec3c9b Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 9 Aug 2016 15:41:27 +0200 Subject: [PATCH] Windows build fix fixes #12339 --- lib/remote/apilistener.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/remote/apilistener.cpp b/lib/remote/apilistener.cpp index 424c63004..510323588 100644 --- a/lib/remote/apilistener.cpp +++ b/lib/remote/apilistener.cpp @@ -1190,12 +1190,12 @@ void ApiListener::ValidateTlsProtocolmin(const String& value, const ValidationUt value != SSL_TXT_TLSV1_2 #endif /* SSL_TXT_TLSV1_1 */ ) { - BOOST_THROW_EXCEPTION(ValidationError(this, boost::assign::list_of("tls_protocolmin"), "Invalid TLS version. " - "Must be one of '" SSL_TXT_TLSV1 "'" + String message = "Invalid TLS version. Must be one of '" SSL_TXT_TLSV1 "'"; #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 */ - )); + + BOOST_THROW_EXCEPTION(ValidationError(this, boost::assign::list_of("tls_protocolmin"), message)); } }