diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-12-16 17:30:42 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-12-16 17:30:42 +0100 |
commit | 6eb6bbfe8e504a611145f454f4045e8f49fd5e44 (patch) | |
tree | baba850cc86ee2d9d61de89da1cdfe408ad8694a /tests/gc.c | |
parent | bdcfdac13179eccee6294402f2654fece149f82b (diff) | |
download | gnutls-6eb6bbfe8e504a611145f454f4045e8f49fd5e44.tar.gz |
Indented code. Use same indentation but with -nut to avoid usage of tabs. In several editors tabs can be configured not to be 8 spaces and this produces artifacts with the current indentation that is a mixture of tabs and spaces.
Diffstat (limited to 'tests/gc.c')
-rw-r--r-- | tests/gc.c | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/tests/gc.c b/tests/gc.c index 3f0b1b8353..da3c211d2d 100644 --- a/tests/gc.c +++ b/tests/gc.c @@ -48,37 +48,37 @@ doit (void) else { if (memcmp (digest, "\x3c\xb0\x9d\x83\x28\x01\xef\xc0" - "\x7b\xb3\xaf\x42\x69\xe5\x93\x9a", 16) == 0) - { - if (debug) - success ("_gnutls_hmac_fast(MD5) OK\n"); - } + "\x7b\xb3\xaf\x42\x69\xe5\x93\x9a", 16) == 0) + { + if (debug) + success ("_gnutls_hmac_fast(MD5) OK\n"); + } else - { - hexprint (digest, 16); - fail ("_gnutls_hmac_fast(MD5) failure\n"); - } + { + hexprint (digest, 16); + fail ("_gnutls_hmac_fast(MD5) failure\n"); + } } err = _gnutls_hmac_fast (GNUTLS_MAC_SHA1, "keykeykey", 9, "abcdefgh", 8, - digest); + digest); if (err < 0) fail ("_gnutls_hmac_fast(SHA1) failed: %d\n", err); else { if (memcmp (digest, "\x58\x93\x7a\x58\xfe\xea\x82\xf8" - "\x0e\x64\x62\x01\x40\x2b\x2c\xed\x5d\x54\xc1\xfa", - 20) == 0) - { - if (debug) - success ("_gnutls_hmac_fast(SHA1) OK\n"); - } + "\x0e\x64\x62\x01\x40\x2b\x2c\xed\x5d\x54\xc1\xfa", + 20) == 0) + { + if (debug) + success ("_gnutls_hmac_fast(SHA1) OK\n"); + } else - { - hexprint (digest, 20); - fail ("_gnutls_hmac_fast(SHA1) failure\n"); - } + { + hexprint (digest, 20); + fail ("_gnutls_hmac_fast(SHA1) failure\n"); + } } err = _gnutls_pbkdf2_sha1 ("password", 8, "salt", 4, 4711, digest, 16); @@ -87,16 +87,16 @@ doit (void) else { if (memcmp (digest, "\x09\xb7\x85\x57\xdd\xf6\x07\x15" - "\x1c\x52\x34\xde\xba\x5c\xdc\x59", 16) == 0) - { - if (debug) - success ("_gnutls_pkcs5_pbkdf2_sha1() OK\n"); - } + "\x1c\x52\x34\xde\xba\x5c\xdc\x59", 16) == 0) + { + if (debug) + success ("_gnutls_pkcs5_pbkdf2_sha1() OK\n"); + } else - { - hexprint (digest, 16); - fail ("_gnutls_pkcs5_pbkdf2_sha1() failure\n"); - } + { + hexprint (digest, 16); + fail ("_gnutls_pkcs5_pbkdf2_sha1() failure\n"); + } } gnutls_global_deinit (); |