# HG changeset patch # User Francois Perrad # Date 1451573941 -3600 # Node ID c6346c63281b2178cbb8e81f47a2c95497e61725 # Parent f7d565054e5f7c7996fc9306c9aaa0dfe5ed4116 refactor indentation with hard tab diff -r f7d565054e5f -r c6346c63281b cli-auth.c --- 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); diff -r f7d565054e5f -r c6346c63281b dropbearkey.c --- 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); diff -r f7d565054e5f -r c6346c63281b packet.c --- 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"); } diff -r f7d565054e5f -r c6346c63281b rsa.c --- 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; } diff -r f7d565054e5f -r c6346c63281b signkey.c --- 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