Author: rfm
Date: Fri May 19 18:20:17 2017
New Revision: 40510

URL: http://svn.gna.org/viewcvs/gnustep?rev=40510&view=rev
Log:
improve debug log

Modified:
    libs/base/trunk/Source/GSTLS.m

Modified: libs/base/trunk/Source/GSTLS.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/GSTLS.m?rev=40510&r1=40509&r2=40510&view=diff
==============================================================================
--- libs/base/trunk/Source/GSTLS.m      (original)
+++ libs/base/trunk/Source/GSTLS.m      Fri May 19 18:20:17 2017
@@ -159,7 +159,7 @@
 static NSString *revokeFile = nil;      // GSTLS/revoke.crl
 
 /* The verifyClient variable tells us if connections from a remote server
- * should (by default) require and verify a client certificate against
+ * should (by default) provide a client certificate which we verify against
  * our trusted authorities.
  * The hard-coded value can be overridden by the GS_TLS_VERIFY_C environment
  * variable, which in turn will be overridden by the GSTLSVerifyClient user
@@ -170,7 +170,7 @@
 
 /* The verifyServer variable tells us if outgoing connections (as a client)
  * to a remote server should (by default) verify that server's certificate
- * against trusted authorities.
+ * against our trusted authorities.
  * The hard-coded value can be overridden by the GS_TLS_VERIFY_S environment
  * variable, which in turn will be overridden by the GSTLSVerifyServer user
  * default string.
@@ -1785,7 +1785,14 @@
 
       if (globalDebug > 1)
         {
-          NSLog(@"%@ before verify:\n%@", self, [self sessionInfo]);
+          if (YES == shouldVerify)
+            {
+              NSLog(@"%@ before verify:\n%@", self, [self sessionInfo]);
+            }
+          else
+            {
+              NSLog(@"%@ do not verify:\n%@", self, [self sessionInfo]);
+            }
         }
       if (YES == shouldVerify)
         {


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to