[cpp-xmltooling COMMIT] /branches/REL_1/xmltooling/soap/impl/CURLSOAPTransport.cpp
noreply at shibboleth.net
noreply at shibboleth.net
Fri Mar 16 02:16:22 GMT 2012
Author: scantor
Date: Fri Mar 16 02:16:21 2012
New Revision: 967
URL: http://svn.shibboleth.net/view/cpp-xmltooling?rev=967&view=rev
Log:
https://issues.shibboleth.net/jira/browse/CPPXT-82
Modified:
branches/REL_1/xmltooling/soap/impl/CURLSOAPTransport.cpp
Modified: branches/REL_1/xmltooling/soap/impl/CURLSOAPTransport.cpp
URL: http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/xmltooling/soap/impl/CURLSOAPTransport.cpp?rev=967&r1=966&r2=967&view=diff
==============================================================================
--- branches/REL_1/xmltooling/soap/impl/CURLSOAPTransport.cpp (original)
+++ branches/REL_1/xmltooling/soap/impl/CURLSOAPTransport.cpp Fri Mar 16 02:16:21 2012
@@ -663,8 +663,19 @@
}
if (!success) {
- log.error("supplied TrustEngine failed to validate SSL/TLS server certificate");
- x509_ctx->error=X509_V_ERR_APPLICATION_VERIFICATION; // generic error, check log for plugin specifics
+ 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);
+ BUF_MEM* bptr = nullptr;
+ BIO_get_mem_ptr(b, &bptr);
+ if (bptr && bptr->length > 0) {
+ string s(bptr->data, bptr->length);
+ log.error(s);
+ }
+ BIO_free(b);
+ }
+ x509_ctx->error = X509_V_ERR_APPLICATION_VERIFICATION; // generic error, check log for plugin specifics
ctx->setAuthenticated(false);
return ctx->m_mandatory ? 0 : 1;
}
More information about the commits
mailing list