summaryrefslogtreecommitdiff
path: root/tests/tlsfeature-crt.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2016-09-11 12:21:59 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2016-09-11 13:21:04 +0200
commitaa2cc04b9ef04404b719db5d693e6f146dbe026a (patch)
tree469b7b176428d24e797ae39105705eea45ef1901 /tests/tlsfeature-crt.c
parent09f1d96b662d34c55de9903a8a890ad887bcd699 (diff)
downloadgnutls-aa2cc04b9ef04404b719db5d693e6f146dbe026a.tar.gz
several spacing fixes to keep syntax-check happy
Diffstat (limited to 'tests/tlsfeature-crt.c')
-rw-r--r--tests/tlsfeature-crt.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/tests/tlsfeature-crt.c b/tests/tlsfeature-crt.c
index 02288d5d0b..fa68816303 100644
--- a/tests/tlsfeature-crt.c
+++ b/tests/tlsfeature-crt.c
@@ -61,39 +61,39 @@ void doit(void)
if (ret < 0)
fail("init %d\n", ret);
- assert(gnutls_x509_tlsfeatures_init(&feat) >= 0);
- assert(gnutls_x509_crt_init(&crt) >= 0);
+ assert(gnutls_x509_tlsfeatures_init(&feat) >= 0);
+ assert(gnutls_x509_crt_init(&crt) >= 0);
- assert(gnutls_x509_crt_import(crt, &server_cert, GNUTLS_X509_FMT_PEM) >= 0);
+ assert(gnutls_x509_crt_import(crt, &server_cert, GNUTLS_X509_FMT_PEM) >= 0);
- assert(gnutls_x509_crt_get_tlsfeatures(crt, feat, 0, &critical) >= 0);
- assert(critical == 0);
+ assert(gnutls_x509_crt_get_tlsfeatures(crt, feat, 0, &critical) >= 0);
+ assert(critical == 0);
- assert(gnutls_x509_tlsfeatures_get(feat, 0, &out) >= 0);
- assert(out == 5);
+ assert(gnutls_x509_tlsfeatures_get(feat, 0, &out) >= 0);
+ assert(out == 5);
- assert(gnutls_x509_tlsfeatures_get(feat, 1, &out) == GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE);
+ assert(gnutls_x509_tlsfeatures_get(feat, 1, &out) == GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE);
- assert(gnutls_x509_tlsfeatures_check_crt(feat, crt) != 0);
+ assert(gnutls_x509_tlsfeatures_check_crt(feat, crt) != 0);
- /* append more features */
- assert(gnutls_x509_tlsfeatures_add(feat, 6) >= 0);
- assert(gnutls_x509_tlsfeatures_check_crt(feat, crt) == 0);
+ /* append more features */
+ assert(gnutls_x509_tlsfeatures_add(feat, 6) >= 0);
+ assert(gnutls_x509_tlsfeatures_check_crt(feat, crt) == 0);
- assert(gnutls_x509_tlsfeatures_add(feat, 8) >= 0);
- assert(gnutls_x509_tlsfeatures_check_crt(feat, crt) == 0);
+ assert(gnutls_x509_tlsfeatures_add(feat, 8) >= 0);
+ assert(gnutls_x509_tlsfeatures_check_crt(feat, crt) == 0);
- gnutls_x509_tlsfeatures_deinit(feat);
+ gnutls_x509_tlsfeatures_deinit(feat);
- /* check whether a single TLSFeat with another value will fail verification */
- assert(gnutls_x509_tlsfeatures_init(&feat) >= 0);
+ /* check whether a single TLSFeat with another value will fail verification */
+ assert(gnutls_x509_tlsfeatures_init(&feat) >= 0);
- assert(gnutls_x509_tlsfeatures_add(feat, 8) >= 0);
- assert(gnutls_x509_tlsfeatures_check_crt(feat, crt) == 0);
+ assert(gnutls_x509_tlsfeatures_add(feat, 8) >= 0);
+ assert(gnutls_x509_tlsfeatures_check_crt(feat, crt) == 0);
- gnutls_x509_tlsfeatures_deinit(feat);
- gnutls_x509_crt_deinit(crt);
+ gnutls_x509_tlsfeatures_deinit(feat);
+ gnutls_x509_crt_deinit(crt);
gnutls_global_deinit();
}