[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] flagday] Make connections finally work again. Circs claim ...



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

Modified Files:
      Tag: tor-0_0_6incompat
	tortls.c 
Log Message:
[flagday] Make connections finally work again.  Circs claim to get built, too.

Index: tortls.c
===================================================================
RCS file: /home/or/cvsroot/src/common/tortls.c,v
retrieving revision 1.42.2.2
retrieving revision 1.42.2.3
diff -u -d -r1.42.2.2 -r1.42.2.3
--- tortls.c	17 Apr 2004 18:15:00 -0000	1.42.2.2
+++ tortls.c	17 Apr 2004 18:48:02 -0000	1.42.2.3
@@ -254,7 +254,7 @@
     if (crypto_pk_generate_key(rsa)<0)
       goto error;
     cert = tor_tls_create_certificate(rsa, identity, nickname, nn2);
-    idcert = tor_tls_create_certificate(rsa, identity, nn2, nn2);
+    idcert = tor_tls_create_certificate(identity, identity, nn2, nn2);
     if (!cert || !idcert) {
       log(LOG_WARN, "Error creating certificate");
       goto error;
@@ -552,6 +552,7 @@
   EVP_PKEY *id_pkey = NULL;
   time_t now, t;
   int r = -1;
+
   if (!(cert = SSL_get_peer_certificate(tls->ssl)))
     return -1;