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/x509_altname.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/x509_altname.c')
-rw-r--r-- | tests/x509_altname.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/tests/x509_altname.c b/tests/x509_altname.c index 432b44fb98..392e226407 100644 --- a/tests/x509_altname.c +++ b/tests/x509_altname.c @@ -87,33 +87,33 @@ doit (void) for (alt_name_count = 0;; ++alt_name_count) { ret = - gnutls_x509_crt_get_issuer_alt_name (cert, alt_name_count, data, - &data_len, &critical); + gnutls_x509_crt_get_issuer_alt_name (cert, alt_name_count, data, + &data_len, &critical); if (ret == GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE) - break; + break; if (ret < 0) - fail ("get_issuer_alt_name: %d\n", ret); + fail ("get_issuer_alt_name: %d\n", ret); // TODO: print out / check results if (GNUTLS_SAN_URI == ret) - { - if (strcmp (data, "http://ca.su.se") != 0) - { - fail ("unexpected issuer GNUTLS_SAN_URI: %s\n", data); - } - } + { + if (strcmp (data, "http://ca.su.se") != 0) + { + fail ("unexpected issuer GNUTLS_SAN_URI: %s\n", data); + } + } else if (GNUTLS_SAN_RFC822NAME == ret) - { - if (strcmp (data, "ca@su.se") != 0) - { - fail ("unexpected issuer GNUTLS_SAN_RFC822NAME: %s\n", data); - } - } + { + if (strcmp (data, "ca@su.se") != 0) + { + fail ("unexpected issuer GNUTLS_SAN_RFC822NAME: %s\n", data); + } + } else - { - fail ("unexpected alt name type: %d\n", ret); - } + { + fail ("unexpected alt name type: %d\n", ret); + } data_len = MAX_DATA_SIZE; } |