diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-11-08 22:14:07 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-11-08 22:17:10 +0100 |
commit | 76c93d23c073ef8b885503b7d28a31ffe2add6d8 (patch) | |
tree | 1dd2d22a197bc40c5330e516969a7cb1ae9bc96f /tests/openssl.c | |
parent | 559a144f6bbcbb611453f82e655dd7438c14d1a7 (diff) | |
download | gnutls-76c93d23c073ef8b885503b7d28a31ffe2add6d8.tar.gz |
reindented code
Diffstat (limited to 'tests/openssl.c')
-rw-r--r-- | tests/openssl.c | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/tests/openssl.c b/tests/openssl.c index 4ed15e6ca7..aee870a707 100644 --- a/tests/openssl.c +++ b/tests/openssl.c @@ -30,30 +30,27 @@ #include <gnutls/openssl.h> -void -doit (void) +void doit(void) { - MD5_CTX c; - unsigned char md[MD5_DIGEST_LENGTH]; + MD5_CTX c; + unsigned char md[MD5_DIGEST_LENGTH]; - if (global_init () != 0) - fail ("global_init\n"); + if (global_init() != 0) + fail("global_init\n"); - if (!gnutls_check_version (GNUTLS_VERSION)) - success ("gnutls_check_version ERROR\n"); + if (!gnutls_check_version(GNUTLS_VERSION)) + success("gnutls_check_version ERROR\n"); - MD5_Init (&c); - MD5_Update (&c, "abc", 3); - MD5_Final (&(md[0]), &c); + MD5_Init(&c); + MD5_Update(&c, "abc", 3); + MD5_Final(&(md[0]), &c); - if (memcmp (md, "\x90\x01\x50\x98\x3c\xd2\x4f\xb0" - "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72", sizeof (md)) != 0) - { - hexprint (md, sizeof (md)); - fail ("MD5 failure\n"); - } - else if (debug) - success ("MD5 OK\n"); + if (memcmp(md, "\x90\x01\x50\x98\x3c\xd2\x4f\xb0" + "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72", sizeof(md)) != 0) { + hexprint(md, sizeof(md)); + fail("MD5 failure\n"); + } else if (debug) + success("MD5 OK\n"); - gnutls_global_deinit (); + gnutls_global_deinit(); } |