git-svn-id: https://svn.shibboleth.net/cpp-xmltooling/branches/REL_1@968
de75baf8-a10c-0410-a50a-
987c0e22f00f
}
if (!success) {
- log.error("supplied TrustEngine failed to validate SSL/TLS server certificate:");
+ log.error("supplied TrustEngine failed to validate SSL/TLS server certificate");
if (x509_ctx->cert) {
BIO* b = BIO_new(BIO_s_mem());
X509_print(b, x509_ctx->cert);
BIO_get_mem_ptr(b, &bptr);
if (bptr && bptr->length > 0) {
string s(bptr->data, bptr->length);
- log.error(s);
+ if (ctx->m_mandatory)
+ log.error(s);
+ else
+ log.debug(s);
}
BIO_free(b);
}