TLSClient: Commented possible need for version protection

This commit is contained in:
Paul Beckingham 2016-12-19 11:57:24 -05:00
parent e717d13802
commit 6d3af50604

View file

@ -146,6 +146,7 @@ void TLSClient::init (
(ret = gnutls_certificate_set_x509_trust_file (_credentials, _ca.c_str (), GNUTLS_X509_FMT_PEM)) < 0) // All (ret = gnutls_certificate_set_x509_trust_file (_credentials, _ca.c_str (), GNUTLS_X509_FMT_PEM)) < 0) // All
throw format ("Bad CA file. {1}", gnutls_strerror (ret)); // All throw format ("Bad CA file. {1}", gnutls_strerror (ret)); // All
// TODO This may need 0x030111 protection.
if (_cert != "" && if (_cert != "" &&
_key != "" && _key != "" &&
(ret = gnutls_certificate_set_x509_key_file (_credentials, _cert.c_str (), _key.c_str (), GNUTLS_X509_FMT_PEM)) < 0) // 3.1.11 (ret = gnutls_certificate_set_x509_key_file (_credentials, _cert.c_str (), _key.c_str (), GNUTLS_X509_FMT_PEM)) < 0) // 3.1.11