[or-cvs] move variable declarations to top of function
Roger Dingledine
arma at seul.org
Fri Sep 5 05:58:23 UTC 2003
Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/common
Modified Files:
tortls.c
Log Message:
move variable declarations to top of function
Index: tortls.c
===================================================================
RCS file: /home/or/cvsroot/src/common/tortls.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- tortls.c 4 Sep 2003 16:05:08 -0000 1.1
+++ tortls.c 5 Sep 2003 05:58:21 -0000 1.2
@@ -135,12 +135,13 @@
tor_tls_context *
tor_tls_context_new(char *certfile, crypto_pk_env_t *rsa, int isServer)
{
- assert(!rsa || rsa->type == CRYPTO_PK_RSA);
- assert((certfile && rsa) || (!certfile && !rsa));
crypto_dh_env_t *dh = NULL;
RSA *_rsa = NULL;
EVP_PKEY *pkey = NULL;
tor_tls_context *result;
+
+ assert(!rsa || rsa->type == CRYPTO_PK_RSA);
+ assert((certfile && rsa) || (!certfile && !rsa));
result = tor_malloc(sizeof(tor_tls_context));
if (!(result->ctx = SSL_CTX_new(TLSv1_method())))
More information about the tor-commits
mailing list