[or-cvs] Call tls_log_errors at a more appropriate location; we can ...

Nick Mathewson nickm at seul.org
Mon Apr 26 03:09:19 UTC 2004


Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv31744/src/common

Modified Files:
	tortls.c 
Log Message:
Call tls_log_errors at a more appropriate location; we can remove the other calls in tor_tls_verify once we are sure they never happen.

Index: tortls.c
===================================================================
RCS file: /home/or/cvsroot/src/common/tortls.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- tortls.c	26 Apr 2004 02:33:12 -0000	1.45
+++ tortls.c	26 Apr 2004 03:09:17 -0000	1.46
@@ -580,6 +580,7 @@
   if (!(id_pkey = _crypto_pk_env_get_evp_pkey(identity_key,0)) ||
       X509_verify(cert, id_pkey) <= 0) {
     log_fn(LOG_WARN,"X509_verify on cert and pkey returned <= 0");
+    tls_log_errors(LOG_WARN,"verifying certificate");
     goto done;
   }
 



More information about the tor-commits mailing list