mirror of https://github.com/Icinga/icinga2.git
parent
1e9adc047f
commit
43c2ec31ef
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue