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

[or-cvs] more pesky tabs



Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/common

Modified Files:
	crypto.c crypto.h fakepoll.c util.c 
Log Message:
more pesky tabs


Index: crypto.c
===================================================================
RCS file: /home/or/cvsroot/src/common/crypto.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- crypto.c	11 Mar 2004 06:22:53 -0000	1.55
+++ crypto.c	12 Mar 2004 13:02:16 -0000	1.56
@@ -1047,14 +1047,14 @@
   if (!provider_set) {
     if (!CryptAcquireContext(&provider, NULL, NULL, PROV_RSA_FULL, 0)) {
       if (GetLastError() != NTE_BAD_KEYSET) {
-	log_fn(LOG_ERR,"Can't get CryptoAPI provider [1]");
-	return -1;
+        log_fn(LOG_ERR,"Can't get CryptoAPI provider [1]");
+        return -1;
       }
       /* Yes, we need to try it twice. */
       if (!CryptAcquireContext(&provider, NULL, NULL, PROV_RSA_FULL,
-			       CRYPT_NEWKEYSET)) {
-	log_fn(LOG_ERR,"Can't get CryptoAPI provider [2]");
-	return -1;
+                               CRYPT_NEWKEYSET)) {
+        log_fn(LOG_ERR,"Can't get CryptoAPI provider [2]");
+        return -1;
       }
     }
     provider_set = 1;

Index: crypto.h
===================================================================
RCS file: /home/or/cvsroot/src/common/crypto.h,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- crypto.h	23 Dec 2003 07:43:05 -0000	1.28
+++ crypto.h	12 Mar 2004 13:02:16 -0000	1.29
@@ -74,10 +74,10 @@
 crypto_dh_env_t *crypto_dh_new();
 int crypto_dh_get_bytes(crypto_dh_env_t *dh);
 int crypto_dh_get_public(crypto_dh_env_t *dh, char *pubkey_out,
-			 int pubkey_out_len);
+                         int pubkey_out_len);
 int crypto_dh_compute_secret(crypto_dh_env_t *dh,
-			     char *pubkey, int pubkey_len,
-			     char *secret_out, int secret_out_len);
+                             char *pubkey, int pubkey_len,
+                             char *secret_out, int secret_out_len);
 void crypto_dh_free(crypto_dh_env_t *dh);
 
 /* symmetric crypto */

Index: fakepoll.c
===================================================================
RCS file: /home/or/cvsroot/src/common/fakepoll.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- fakepoll.c	11 Mar 2004 06:22:53 -0000	1.19
+++ fakepoll.c	12 Mar 2004 13:02:16 -0000	1.20
@@ -32,7 +32,7 @@
 int
 tor_poll(struct pollfd *ufds, unsigned int nfds, int timeout)
 {
-	    unsigned int idx;
+        unsigned int idx;
         int maxfd, fd;
         int r;
 #ifdef MS_WINDOWS

Index: util.c
===================================================================
RCS file: /home/or/cvsroot/src/common/util.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- util.c	11 Mar 2004 06:35:03 -0000	1.58
+++ util.c	12 Mar 2004 13:02:16 -0000	1.59
@@ -527,9 +527,9 @@
     }
     log(LOG_INFO, "Creating directory %s", dirname);
 #ifdef MS_WINDOWS
-	r = mkdir(dirname);
+    r = mkdir(dirname);
 #else
-	r = mkdir(dirname, 0700);
+    r = mkdir(dirname, 0700);
 #endif
     if (r) {
       log(LOG_WARN, "Error creating directory %s: %s", dirname,
@@ -877,12 +877,12 @@
   uint32_t r;
   assert(c && addr);
   if (strcmp(c, "255.255.255.255") == 0) {
-	addr->s_addr = 0xFFFFFFFFu;
-	return 1;
+    addr->s_addr = 0xFFFFFFFFu;
+    return 1;
   }
   r = inet_addr(c);
   if (r == INADDR_NONE)
-	return 0;
+    return 0;
   addr->s_addr = r;
   return 1;
 #endif