[cpp-xmltooling COMMIT] /branches/REL_1/xmltooling/soap/impl/CURLSOAPTransport.cpp

noreply at shibboleth.net noreply at shibboleth.net
Fri Mar 16 02:20:55 GMT 2012


Author: scantor
Date: Fri Mar 16 02:20:55 2012
New Revision: 968

URL: http://svn.shibboleth.net/view/cpp-xmltooling?rev=968&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=968&r1=967&r2=968&view=diff
==============================================================================
--- branches/REL_1/xmltooling/soap/impl/CURLSOAPTransport.cpp (original)
+++ branches/REL_1/xmltooling/soap/impl/CURLSOAPTransport.cpp Fri Mar 16 02:20:55 2012
@@ -663,7 +663,7 @@
     }
 
     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);
@@ -671,7 +671,10 @@
             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);
         }



More information about the commits mailing list