changeset 1249:c6346c63281b

refactor indentation with hard tab
author Francois Perrad <francois.perrad@gadz.org>
date Thu, 31 Dec 2015 15:59:01 +0100
parents f7d565054e5f
children 2bb4c662d1c2
files cli-auth.c dropbearkey.c packet.c rsa.c signkey.c
diffstat 5 files changed, 21 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/cli-auth.c	Fri Dec 18 21:20:46 2015 +0800
+++ b/cli-auth.c	Thu Dec 31 15:59:01 2015 +0100
@@ -332,12 +332,12 @@
 	char* password = NULL;
 	
 #ifdef DROPBEAR_PASSWORD_ENV
-    /* Password provided in an environment var */
-    password = getenv(DROPBEAR_PASSWORD_ENV);
-    if (password)
-    {
-        return password;
-    }
+	/* Password provided in an environment var */
+	password = getenv(DROPBEAR_PASSWORD_ENV);
+	if (password)
+	{
+		return password;
+	}
 #endif
 
 	password = getpass(prompt);
--- a/dropbearkey.c	Fri Dec 18 21:20:46 2015 +0800
+++ b/dropbearkey.c	Thu Dec 31 15:59:01 2015 +0100
@@ -238,13 +238,13 @@
 		}
 		
 		check_signkey_bits(keytype, bits);;
-    }
+	}
 
 	fprintf(stderr, "Generating key, this may take a while...\n");
-    if (signkey_generate(keytype, bits, filename) == DROPBEAR_FAILURE)
-    {
-    	dropbear_exit("Failed to generate key.\n");
-    }
+	if (signkey_generate(keytype, bits, filename) == DROPBEAR_FAILURE)
+	{
+		dropbear_exit("Failed to generate key.\n");
+	}
 
 	printpubfile(filename);
 
--- a/packet.c	Fri Dec 18 21:20:46 2015 +0800
+++ b/packet.c	Thu Dec 31 15:59:01 2015 +0100
@@ -645,7 +645,7 @@
 			dropbear_exit("HMAC error");
 		}
 	
-        bufsize = MAX_MAC_LEN;
+		bufsize = MAX_MAC_LEN;
 		if (hmac_done(&hmac, output_mac, &bufsize) != CRYPT_OK) {
 			dropbear_exit("HMAC error");
 		}
--- a/rsa.c	Fri Dec 18 21:20:46 2015 +0800
+++ b/rsa.c	Thu Dec 31 15:59:01 2015 +0100
@@ -69,12 +69,12 @@
 	}
 
 	TRACE(("leave buf_get_rsa_pub_key: success"))
-    ret = DROPBEAR_SUCCESS;
+	ret = DROPBEAR_SUCCESS;
 out:
-    if (ret == DROPBEAR_FAILURE) {
-        m_free(key->e);
-        m_free(key->n);
-    }
+	if (ret == DROPBEAR_FAILURE) {
+		m_free(key->e);
+		m_free(key->n);
+	}
 	return ret;
 }
 
--- a/signkey.c	Fri Dec 18 21:20:46 2015 +0800
+++ b/signkey.c	Thu Dec 31 15:59:01 2015 +0100
@@ -317,15 +317,15 @@
 #ifdef DROPBEAR_DSS
 	if (type == DROPBEAR_SIGNKEY_DSS) {
 		buf_put_dss_priv_key(buf, key->dsskey);
-	TRACE(("leave buf_put_priv_key: dss done"))
-	return;
+		TRACE(("leave buf_put_priv_key: dss done"))
+		return;
 	}
 #endif
 #ifdef DROPBEAR_RSA
 	if (type == DROPBEAR_SIGNKEY_RSA) {
 		buf_put_rsa_priv_key(buf, key->rsakey);
-	TRACE(("leave buf_put_priv_key: rsa done"))
-	return;
+		TRACE(("leave buf_put_priv_key: rsa done"))
+		return;
 	}
 #endif
 #ifdef DROPBEAR_ECDSA