summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2010-10-14 15:02:12 +0200
committerSimon Josefsson <simon@josefsson.org>2010-10-14 15:02:12 +0200
commit03636f4440ae918d6f710935a00806469f65f1c6 (patch)
tree1969ad6201816d1eb1421d93ef6900ec3b647788 /tests
parent59425cbec511cdc314f2a22ee95b299f8fa06fc8 (diff)
downloadgnutls-03636f4440ae918d6f710935a00806469f65f1c6.tar.gz
Indent (using GNU indent 2.2.11).
Diffstat (limited to 'tests')
-rw-r--r--tests/anonself.c2
-rw-r--r--tests/certder.c2
-rw-r--r--tests/certificate_set_x509_crl.c2
-rw-r--r--tests/certuniqueid.c167
-rw-r--r--tests/chainverify.c2
-rw-r--r--tests/crq_apis.c2
-rw-r--r--tests/crq_key_id.c2
-rw-r--r--tests/crypto_rng.c2
-rw-r--r--tests/cve-2008-4989.c2
-rw-r--r--tests/cve-2009-1415.c2
-rw-r--r--tests/cve-2009-1416.c2
-rw-r--r--tests/dhepskself.c2
-rw-r--r--tests/dn.c2
-rw-r--r--tests/dn2.c2
-rw-r--r--tests/finished.c2
-rw-r--r--tests/gc.c2
-rw-r--r--tests/hostname-check.c4
-rw-r--r--tests/init_roundtrip.c2
-rw-r--r--tests/mini-eagain.c35
-rw-r--r--tests/mini-x509-rehandshake.c10
-rw-r--r--tests/mini-x509.c2
-rw-r--r--tests/mini.c2
-rw-r--r--tests/moredn.c2
-rw-r--r--tests/mpi.c2
-rw-r--r--tests/netconf-psk.c2
-rw-r--r--tests/nul-in-x509-names.c2
-rw-r--r--tests/openpgp-auth.c57
-rw-r--r--tests/openpgp-keyring.c2
-rw-r--r--tests/openpgpself.c2
-rw-r--r--tests/openssl.c2
-rw-r--r--tests/parse_ca.c2
-rw-r--r--tests/pgps2kgnu.c2
-rw-r--r--tests/pkcs12_encode.c5
-rw-r--r--tests/pkcs12_s2k.c8
-rw-r--r--tests/pkcs12_s2k_pem.c2
-rw-r--r--tests/pskself.c2
-rw-r--r--tests/resume.c2
-rw-r--r--tests/safe-renegotiation/srn0.c13
-rw-r--r--tests/safe-renegotiation/srn1.c5
-rw-r--r--tests/safe-renegotiation/srn2.c28
-rw-r--r--tests/safe-renegotiation/srn3.c5
-rw-r--r--tests/safe-renegotiation/srn4.c15
-rw-r--r--tests/safe-renegotiation/srn5.c15
-rw-r--r--tests/set_pkcs12_cred.c2
-rw-r--r--tests/setcredcrash.c2
-rw-r--r--tests/simple.c2
-rw-r--r--tests/tlsia.c2
-rw-r--r--tests/utils.c2
-rw-r--r--tests/utils.h14
-rw-r--r--tests/x509_altname.c2
-rw-r--r--tests/x509dn.c2
-rw-r--r--tests/x509self.c2
-rw-r--r--tests/x509sign-verify.c2
53 files changed, 260 insertions, 199 deletions
diff --git a/tests/anonself.c b/tests/anonself.c
index c75c0ee67e..40ef7bc4e5 100644
--- a/tests/anonself.c
+++ b/tests/anonself.c
@@ -24,7 +24,7 @@
/* Parts copied from GnuTLS example programs. */
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/certder.c b/tests/certder.c
index 5f931d3fa5..fc3991b690 100644
--- a/tests/certder.c
+++ b/tests/certder.c
@@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include "config.h"
+#include "config.h"
#endif
#include <gnutls/gnutls.h>
diff --git a/tests/certificate_set_x509_crl.c b/tests/certificate_set_x509_crl.c
index 07b0314375..b242ccd0f1 100644
--- a/tests/certificate_set_x509_crl.c
+++ b/tests/certificate_set_x509_crl.c
@@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/certuniqueid.c b/tests/certuniqueid.c
index 7a6104fb4f..96a363e51b 100644
--- a/tests/certuniqueid.c
+++ b/tests/certuniqueid.c
@@ -23,7 +23,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include "config.h"
+#include "config.h"
#endif
#include "gnutls/gnutls.h"
@@ -35,63 +35,114 @@ doit (void)
{
int ret;
unsigned char der[] = {
-0x30, 0x82, 0x03, 0x00, 0x30, 0x82, 0x01, 0xec, 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x10, 0xbd,
-0x76, 0xdf, 0x42, 0x47, 0x0a, 0x00, 0x8d, 0x47, 0x3e, 0x74, 0x3f, 0xa1, 0xdc, 0x8b, 0xbd, 0x30,
-0x09, 0x06, 0x05, 0x2b, 0x0e, 0x03, 0x02, 0x1d, 0x05, 0x00, 0x30, 0x2d, 0x31, 0x2b, 0x30, 0x29,
-0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x22, 0x77, 0x00, 0x32, 0x00, 0x6b, 0x00, 0x38, 0x00, 0x72,
-0x00, 0x32, 0x00, 0x2e, 0x00, 0x6d, 0x00, 0x61, 0x00, 0x74, 0x00, 0x77, 0x00, 0x73, 0x00, 0x2e,
-0x00, 0x6e, 0x00, 0x65, 0x00, 0x74, 0x00, 0x00, 0x00, 0x30, 0x1e, 0x17, 0x0d, 0x31, 0x30, 0x30,
-0x34, 0x32, 0x38, 0x31, 0x31, 0x34, 0x31, 0x35, 0x34, 0x5a, 0x17, 0x0d, 0x31, 0x31, 0x30, 0x34,
-0x32, 0x38, 0x31, 0x31, 0x34, 0x31, 0x35, 0x34, 0x5a, 0x30, 0x2d, 0x31, 0x2b, 0x30, 0x29, 0x06,
-0x03, 0x55, 0x04, 0x03, 0x13, 0x22, 0x77, 0x00, 0x32, 0x00, 0x6b, 0x00, 0x38, 0x00, 0x72, 0x00,
-0x32, 0x00, 0x2e, 0x00, 0x6d, 0x00, 0x61, 0x00, 0x74, 0x00, 0x77, 0x00, 0x73, 0x00, 0x2e, 0x00,
-0x6e, 0x00, 0x65, 0x00, 0x74, 0x00, 0x00, 0x00, 0x30, 0x82, 0x01, 0x22, 0x30, 0x0d, 0x06, 0x09,
-0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01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
-0xf9, 0x45, 0xb3, 0xd5, 0xda, 0xe5, 0xb9, 0x56, 0x9e, 0x47, 0xd5, 0x06, 0xe6, 0xca, 0xd7, 0x6e,
-0x06, 0xdb, 0x6e, 0xa7, 0x7b, 0x4b, 0x13, 0x40, 0x3c, 0x12, 0x76, 0x99, 0x65, 0xb4, 0x54, 0xa1,
-0xd8, 0x21, 0x5c, 0x27
-};
+ 0x30, 0x82, 0x03, 0x00, 0x30, 0x82, 0x01, 0xec, 0xa0, 0x03, 0x02, 0x01,
+ 0x02, 0x02, 0x10, 0xbd,
+ 0x76, 0xdf, 0x42, 0x47, 0x0a, 0x00, 0x8d, 0x47, 0x3e, 0x74, 0x3f, 0xa1,
+ 0xdc, 0x8b, 0xbd, 0x30,
+ 0x09, 0x06, 0x05, 0x2b, 0x0e, 0x03, 0x02, 0x1d, 0x05, 0x00, 0x30, 0x2d,
+ 0x31, 0x2b, 0x30, 0x29,
+ 0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x22, 0x77, 0x00, 0x32, 0x00, 0x6b,
+ 0x00, 0x38, 0x00, 0x72,
+ 0x00, 0x32, 0x00, 0x2e, 0x00, 0x6d, 0x00, 0x61, 0x00, 0x74, 0x00, 0x77,
+ 0x00, 0x73, 0x00, 0x2e,
+ 0x00, 0x6e, 0x00, 0x65, 0x00, 0x74, 0x00, 0x00, 0x00, 0x30, 0x1e, 0x17,
+ 0x0d, 0x31, 0x30, 0x30,
+ 0x34, 0x32, 0x38, 0x31, 0x31, 0x34, 0x31, 0x35, 0x34, 0x5a, 0x17, 0x0d,
+ 0x31, 0x31, 0x30, 0x34,
+ 0x32, 0x38, 0x31, 0x31, 0x34, 0x31, 0x35, 0x34, 0x5a, 0x30, 0x2d, 0x31,
+ 0x2b, 0x30, 0x29, 0x06,
+ 0x03, 0x55, 0x04, 0x03, 0x13, 0x22, 0x77, 0x00, 0x32, 0x00, 0x6b, 0x00,
+ 0x38, 0x00, 0x72, 0x00,
+ 0x32, 0x00, 0x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 0xa9,
+ 0x98, 0x65, 0x94, 0xc7, 0xdd, 0x7c, 0xd4, 0xe2, 0xe8, 0x33, 0xe2, 0x9a,
+ 0xe9, 0x75, 0xf0, 0x0f,
+ 0x61, 0x86, 0xee, 0x0e, 0xf7, 0x39, 0x6b, 0x30, 0x63, 0xe5, 0x46, 0xd4,
+ 0x1c, 0x83, 0xa1, 0x28,
+ 0x79, 0x76, 0x81, 0x48, 0x38, 0x72, 0xbc, 0x3f, 0x25, 0x53, 0x31, 0xaa,
+ 0x02, 0xd1, 0x9b, 0x03,
+ 0xa2, 0x5c, 0x94, 0x21, 0xb3, 0x8e, 0xdf, 0x2a, 0xa5, 0x4c, 0x65, 0xa2,
+ 0xf9, 0xac, 0x38, 0x7a,
+ 0xf9, 0x45, 0xb3, 0xd5, 0xda, 0xe5, 0xb9, 0x56, 0x9e, 0x47, 0xd5, 0x06,
+ 0xe6, 0xca, 0xd7, 0x6e,
+ 0x06, 0xdb, 0x6e, 0xa7, 0x7b, 0x4b, 0x13, 0x40, 0x3c, 0x12, 0x76, 0x99,
+ 0x65, 0xb4, 0x54, 0xa1,
+ 0xd8, 0x21, 0x5c, 0x27
+ };
gnutls_datum_t derCert = { der, sizeof (der) };
gnutls_x509_crt_t cert;
int result;
- unsigned char expectedId[] = { 0xbd, 0x8b, 0xdc, 0xa1, 0x3f, 0x74, 0x3e, 0x47, 0x8d, 0x00, 0x0a, 0x47, 0x42, 0xdf, 0x76, 0xbd };
+ unsigned char expectedId[] =
+ { 0xbd, 0x8b, 0xdc, 0xa1, 0x3f, 0x74, 0x3e, 0x47, 0x8d, 0x00, 0x0a, 0x47,
+ 0x42, 0xdf, 0x76, 0xbd
+ };
char buf[17];
ssize_t buf_size;
@@ -114,12 +165,12 @@ doit (void)
fail ("get_issuer_unique_id short error %d\n", result);
if (buf_size != 16)
fail ("get_issuer_unique_id buf size %zd\n", buf_size);
-
+
buf_size = 16;
result = gnutls_x509_crt_get_issuer_unique_id (cert, buf, &buf_size);
if (result < 0)
fail ("get_issuer_unique_id %d\n", result);
- if (memcmp(buf, expectedId, buf_size) != 0)
+ if (memcmp (buf, expectedId, buf_size) != 0)
fail ("expected id mismatch for issuer\n");
buf_size = 15;
@@ -128,14 +179,14 @@ doit (void)
fail ("get_subject_unique_id short error %d\n", result);
if (buf_size != 16)
fail ("get_subject_unique_id buf size %zd\n", buf_size);
-
+
buf_size = 16;
result = gnutls_x509_crt_get_subject_unique_id (cert, buf, &buf_size);
if (result < 0)
- fail ("get_subject_unique_id %d\n", result);
- if (memcmp(buf, expectedId, buf_size) != 0)
+ fail ("get_subject_unique_id %d\n", result);
+ if (memcmp (buf, expectedId, buf_size) != 0)
fail ("expected id mismatch for subject\n");
-
+
gnutls_x509_crt_deinit (cert);
gnutls_global_deinit ();
diff --git a/tests/chainverify.c b/tests/chainverify.c
index 8aa7a0fcab..f5b8f89860 100644
--- a/tests/chainverify.c
+++ b/tests/chainverify.c
@@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/crq_apis.c b/tests/crq_apis.c
index 8fa593b868..f61e89cd2a 100644
--- a/tests/crq_apis.c
+++ b/tests/crq_apis.c
@@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdlib.h>
diff --git a/tests/crq_key_id.c b/tests/crq_key_id.c
index dd2be8abc1..6696ba7132 100644
--- a/tests/crq_key_id.c
+++ b/tests/crq_key_id.c
@@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdlib.h>
diff --git a/tests/crypto_rng.c b/tests/crypto_rng.c
index e4b20404f6..fbeb10c5af 100644
--- a/tests/crypto_rng.c
+++ b/tests/crypto_rng.c
@@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/cve-2008-4989.c b/tests/cve-2008-4989.c
index d3f0354eb0..40af8623d8 100644
--- a/tests/cve-2008-4989.c
+++ b/tests/cve-2008-4989.c
@@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/cve-2009-1415.c b/tests/cve-2009-1415.c
index 69b85754e6..2a20178c5c 100644
--- a/tests/cve-2009-1415.c
+++ b/tests/cve-2009-1415.c
@@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
/*
diff --git a/tests/cve-2009-1416.c b/tests/cve-2009-1416.c
index 1e91116d53..784521fcd7 100644
--- a/tests/cve-2009-1416.c
+++ b/tests/cve-2009-1416.c
@@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
/*
diff --git a/tests/dhepskself.c b/tests/dhepskself.c
index 3ddbb2111f..54c48134c1 100644
--- a/tests/dhepskself.c
+++ b/tests/dhepskself.c
@@ -24,7 +24,7 @@
/* Parts copied from GnuTLS example programs. */
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/dn.c b/tests/dn.c
index 4ff06d528f..d86af537c0 100644
--- a/tests/dn.c
+++ b/tests/dn.c
@@ -20,7 +20,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include "config.h"
+#include "config.h"
#endif
#include <stdio.h>
diff --git a/tests/dn2.c b/tests/dn2.c
index 42627d3e57..3caccd4291 100644
--- a/tests/dn2.c
+++ b/tests/dn2.c
@@ -20,7 +20,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include "config.h"
+#include "config.h"
#endif
#include <stdio.h>
diff --git a/tests/finished.c b/tests/finished.c
index ac7aca36d6..afbdbcf572 100644
--- a/tests/finished.c
+++ b/tests/finished.c
@@ -23,7 +23,7 @@
/* Based on mini.c. */
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/gc.c b/tests/gc.c
index bb1a485935..3f0b1b8353 100644
--- a/tests/gc.c
+++ b/tests/gc.c
@@ -19,7 +19,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/hostname-check.c b/tests/hostname-check.c
index dbf5c1b6ce..918257e18c 100644
--- a/tests/hostname-check.c
+++ b/tests/hostname-check.c
@@ -21,14 +21,14 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <string.h>
#include <gnutls/gnutls.h>
#include <gnutls/x509.h>
#ifdef ENABLE_OPENPGP
-# include <gnutls/openpgp.h>
+#include <gnutls/openpgp.h>
#endif
#include "utils.h"
diff --git a/tests/init_roundtrip.c b/tests/init_roundtrip.c
index 7a0d3b1803..f9922734e8 100644
--- a/tests/init_roundtrip.c
+++ b/tests/init_roundtrip.c
@@ -22,7 +22,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/mini-eagain.c b/tests/mini-eagain.c
index a83f7f9351..7dbbce6d26 100644
--- a/tests/mini-eagain.c
+++ b/tests/mini-eagain.c
@@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
@@ -229,7 +229,7 @@ doit (void)
fail ("server: didn't receive any data\n");
else if (ret < 0)
{
-// if (debug)
+// if (debug)
// fputs ("#", stdout);
if (ret != GNUTLS_E_AGAIN)
{
@@ -240,14 +240,16 @@ doit (void)
else
{
transferred += ret;
-// if (debug)
-// fputs ("*", stdout);
+// if (debug)
+// fputs ("*", stdout);
}
- msglen = strlen(MSG);
- do {
- ns = gnutls_record_send (server, MSG, msglen);
- } while(ns == GNUTLS_E_AGAIN);
+ msglen = strlen (MSG);
+ do
+ {
+ ns = gnutls_record_send (server, MSG, msglen);
+ }
+ while (ns == GNUTLS_E_AGAIN);
ret = gnutls_record_recv (client, buffer, MAX_BUF);
if (ret == 0)
@@ -257,7 +259,7 @@ doit (void)
else if (ret < 0)
{
if (debug)
- fputs ("!", stdout);
+ fputs ("!", stdout);
if (ret != GNUTLS_E_AGAIN)
{
fail ("client: Error: %s\n", gnutls_strerror (ret));
@@ -266,14 +268,17 @@ doit (void)
}
else
{
- if (msglen != ret || memcmp(buffer, MSG, msglen) != 0) {
+ if (msglen != ret || memcmp (buffer, MSG, msglen) != 0)
+ {
fail ("client: Transmitted data do not match\n");
- }
+ }
- /* echo back */
- do {
- ns = gnutls_record_send (client, buffer, msglen);
- } while(ns == GNUTLS_E_AGAIN);
+ /* echo back */
+ do
+ {
+ ns = gnutls_record_send (client, buffer, msglen);
+ }
+ while (ns == GNUTLS_E_AGAIN);
transferred += ret;
if (debug)
diff --git a/tests/mini-x509-rehandshake.c b/tests/mini-x509-rehandshake.c
index feafa7e3c0..f95c3796f6 100644
--- a/tests/mini-x509-rehandshake.c
+++ b/tests/mini-x509-rehandshake.c
@@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
@@ -274,10 +274,10 @@ main (int argc, char *argv[])
}
}
while (
- /* Not done: */
- !(cret == GNUTLS_E_SUCCESS && sret == GNUTLS_E_SUCCESS)
- /* No error: */
- && (cret == GNUTLS_E_AGAIN || sret == GNUTLS_E_AGAIN));
+ /* Not done: */
+ !(cret == GNUTLS_E_SUCCESS && sret == GNUTLS_E_SUCCESS)
+ /* No error: */
+ && (cret == GNUTLS_E_AGAIN || sret == GNUTLS_E_AGAIN));
if (cret != GNUTLS_E_SUCCESS && sret != GNUTLS_E_SUCCESS)
exit_code = 1;
diff --git a/tests/mini-x509.c b/tests/mini-x509.c
index 0f29ab13c8..551da19961 100644
--- a/tests/mini-x509.c
+++ b/tests/mini-x509.c
@@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/mini.c b/tests/mini.c
index 585b6343ec..54706c021f 100644
--- a/tests/mini.c
+++ b/tests/mini.c
@@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/moredn.c b/tests/moredn.c
index a0566557f4..115686dc84 100644
--- a/tests/moredn.c
+++ b/tests/moredn.c
@@ -23,7 +23,7 @@
/* Parts copied from GnuTLS example programs. */
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/mpi.c b/tests/mpi.c
index 92470fdfd9..f670490b45 100644
--- a/tests/mpi.c
+++ b/tests/mpi.c
@@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/netconf-psk.c b/tests/netconf-psk.c
index 36c0ae1c72..2d606d4bf5 100644
--- a/tests/netconf-psk.c
+++ b/tests/netconf-psk.c
@@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/nul-in-x509-names.c b/tests/nul-in-x509-names.c
index 9225f74a43..f8bf78283f 100644
--- a/tests/nul-in-x509-names.c
+++ b/tests/nul-in-x509-names.c
@@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdlib.h>
diff --git a/tests/openpgp-auth.c b/tests/openpgp-auth.c
index 09b5d88371..13e7693cdf 100644
--- a/tests/openpgp-auth.c
+++ b/tests/openpgp-auth.c
@@ -20,7 +20,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <gnutls/gnutls.h>
@@ -43,41 +43,40 @@ static const char message[] = "Hello, brave GNU world!";
/* The OpenPGP key pair for use and the key ID in those keys. */
static const char pub_key_file[] = "../guile/tests/openpgp-pub.asc";
static const char priv_key_file[] = "../guile/tests/openpgp-sec.asc";
-static const char *key_id =
- NULL
+static const char *key_id = NULL
/* FIXME: The values below don't work as expected. */
/* "auto" */
- /* "bd572cdcccc07c35" */;
+ /* "bd572cdcccc07c35" */ ;
static const char rsa_params_file[] = "../guile/tests/rsa-parameters.pem";
static const int protocols[] = { GNUTLS_TLS1_0, 0 };
static const int cert_types[] = { GNUTLS_CRT_OPENPGP, 0 };
-static const int ciphers[] =
- {
- GNUTLS_CIPHER_NULL, GNUTLS_CIPHER_ARCFOUR,
- GNUTLS_CIPHER_AES_128_CBC, GNUTLS_CIPHER_AES_256_CBC,
- 0
- };
-static const int kx[] =
- {
- GNUTLS_KX_RSA, GNUTLS_KX_RSA_EXPORT,
- GNUTLS_KX_DHE_RSA, GNUTLS_KX_DHE_DSS,
- 0
- };
-static const int macs[] =
- {
- GNUTLS_MAC_SHA1, GNUTLS_MAC_RMD160, GNUTLS_MAC_MD5,
- 0
- };
+
+static const int ciphers[] = {
+ GNUTLS_CIPHER_NULL, GNUTLS_CIPHER_ARCFOUR,
+ GNUTLS_CIPHER_AES_128_CBC, GNUTLS_CIPHER_AES_256_CBC,
+ 0
+};
+
+static const int kx[] = {
+ GNUTLS_KX_RSA, GNUTLS_KX_RSA_EXPORT,
+ GNUTLS_KX_DHE_RSA, GNUTLS_KX_DHE_DSS,
+ 0
+};
+
+static const int macs[] = {
+ GNUTLS_MAC_SHA1, GNUTLS_MAC_RMD160, GNUTLS_MAC_MD5,
+ 0
+};
static void
log_message (int level, const char *message)
{
fprintf (stderr, "[%5d|%2d] %s", getpid (), level, message);
}
-
+
void
doit ()
{
@@ -89,7 +88,7 @@ doit ()
gnutls_global_init ();
- srcdir = getenv ("srcdir") ?: ".";
+ srcdir = getenv ("srcdir") ? : ".";
if (debug)
{
@@ -131,7 +130,8 @@ doit ()
gnutls_set_default_priority (session);
gnutls_transport_set_ptr (session,
- (gnutls_transport_ptr_t)(intptr_t) sockets[0]);
+ (gnutls_transport_ptr_t) (intptr_t)
+ sockets[0]);
err = gnutls_certificate_allocate_credentials (&cred);
if (err != 0)
@@ -196,7 +196,8 @@ doit ()
gnutls_set_default_priority (session);
gnutls_transport_set_ptr (session,
- (gnutls_transport_ptr_t)(intptr_t) sockets[1]);
+ (gnutls_transport_ptr_t) (intptr_t)
+ sockets[1]);
err = gnutls_certificate_allocate_credentials (&cred);
if (err != 0)
@@ -212,16 +213,16 @@ doit ()
err = gnutls_dh_params_init (&dh_params);
if (err)
- fail ("server DH params init %d\n", err);
+ fail ("server DH params init %d\n", err);
err = gnutls_dh_params_generate2 (dh_params, 1024);
if (err)
- fail ("server DH params generate %d\n", err);
+ fail ("server DH params generate %d\n", err);
gnutls_certificate_set_dh_params (cred, dh_params);
rsa_data.data =
- (unsigned char *) read_binary_file (rsa_params_file, &rsa_size);
+ (unsigned char *) read_binary_file (rsa_params_file, &rsa_size);
rsa_data.size = rsa_size;
err = gnutls_rsa_params_init (&rsa_params);
diff --git a/tests/openpgp-keyring.c b/tests/openpgp-keyring.c
index b505db806d..6e3224d080 100644
--- a/tests/openpgp-keyring.c
+++ b/tests/openpgp-keyring.c
@@ -20,7 +20,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include "config.h"
+#include "config.h"
#endif
#include <stdio.h>
diff --git a/tests/openpgpself.c b/tests/openpgpself.c
index 2e9e543177..3732d3b39f 100644
--- a/tests/openpgpself.c
+++ b/tests/openpgpself.c
@@ -24,7 +24,7 @@
/* Parts copied from GnuTLS example programs. */
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/openssl.c b/tests/openssl.c
index 05e43d900f..188d82e9b2 100644
--- a/tests/openssl.c
+++ b/tests/openssl.c
@@ -22,7 +22,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/parse_ca.c b/tests/parse_ca.c
index 5791a958cf..9f81887e27 100644
--- a/tests/parse_ca.c
+++ b/tests/parse_ca.c
@@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/pgps2kgnu.c b/tests/pgps2kgnu.c
index bb458610ee..1076bdea4f 100644
--- a/tests/pgps2kgnu.c
+++ b/tests/pgps2kgnu.c
@@ -26,7 +26,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/pkcs12_encode.c b/tests/pkcs12_encode.c
index 42ff96d806..e69104f7e1 100644
--- a/tests/pkcs12_encode.c
+++ b/tests/pkcs12_encode.c
@@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <gnutls/gnutls.h>
@@ -151,7 +151,8 @@ doit (void)
i == 0 ? GNUTLS_PKCS8_USE_PKCS12_3DES
: GNUTLS_PKCS_USE_PKCS12_RC2_40);
if (ret < 0)
- error (EXIT_FAILURE, 0, "bag_encrypt: %d: %s", ret, i==0?"3DES":"RC2-40");
+ error (EXIT_FAILURE, 0, "bag_encrypt: %d: %s", ret,
+ i == 0 ? "3DES" : "RC2-40");
ret = gnutls_pkcs12_set_bag (pkcs12, bag);
if (ret < 0)
diff --git a/tests/pkcs12_s2k.c b/tests/pkcs12_s2k.c
index 671a44bddd..41c8d1299f 100644
--- a/tests/pkcs12_s2k.c
+++ b/tests/pkcs12_s2k.c
@@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
@@ -133,12 +133,14 @@ doit (void)
fail ("_gnutls_pkcs12_string_to_key failed[0]: %d\n", rc);
if (strcmp (_gnutls_bin2hex (key, sizeof (key),
- tmp, sizeof (tmp), NULL), values[x]) != 0)
+ tmp, sizeof (tmp), NULL),
+ values[x]) != 0)
fail ("_gnutls_pkcs12_string_to_key failed[1]\n");
if (debug)
printf ("ij: %d.%d: %s\n", i, j,
- _gnutls_bin2hex (key, sizeof (key), tmp, sizeof (tmp), NULL));
+ _gnutls_bin2hex (key, sizeof (key), tmp, sizeof (tmp),
+ NULL));
x++;
}
}
diff --git a/tests/pkcs12_s2k_pem.c b/tests/pkcs12_s2k_pem.c
index 165dbbd2fc..ccbd35455b 100644
--- a/tests/pkcs12_s2k_pem.c
+++ b/tests/pkcs12_s2k_pem.c
@@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
/*
diff --git a/tests/pskself.c b/tests/pskself.c
index 1de6e5c9e8..052e09027b 100644
--- a/tests/pskself.c
+++ b/tests/pskself.c
@@ -23,7 +23,7 @@
/* Parts copied from GnuTLS example programs. */
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/resume.c b/tests/resume.c
index 488dd8c20d..76078b4a59 100644
--- a/tests/resume.c
+++ b/tests/resume.c
@@ -24,7 +24,7 @@
/* Parts copied from GnuTLS example programs. */
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/safe-renegotiation/srn0.c b/tests/safe-renegotiation/srn0.c
index 351cf71328..7310225578 100644
--- a/tests/safe-renegotiation/srn0.c
+++ b/tests/safe-renegotiation/srn0.c
@@ -29,7 +29,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
@@ -289,10 +289,10 @@ main (int argc, char *argv[])
}
}
while (
- /* Not done: */
- !(cret == GNUTLS_E_SUCCESS && sret == GNUTLS_E_SUCCESS)
- /* No error: */
- && (cret == GNUTLS_E_AGAIN || sret == GNUTLS_E_AGAIN));
+ /* Not done: */
+ !(cret == GNUTLS_E_SUCCESS && sret == GNUTLS_E_SUCCESS)
+ /* No error: */
+ && (cret == GNUTLS_E_AGAIN || sret == GNUTLS_E_AGAIN));
if (cret != GNUTLS_E_SUCCESS && sret != GNUTLS_E_SUCCESS)
exit_code = 1;
@@ -300,7 +300,8 @@ main (int argc, char *argv[])
if (!gnutls_safe_renegotiation_status (client) ||
!gnutls_safe_renegotiation_status (server))
{
- tls_log_func (0, "Rehandshaked session not using safe renegotiation!\n");
+ tls_log_func (0,
+ "Rehandshaked session not using safe renegotiation!\n");
exit_code = EXIT_FAILURE;
}
diff --git a/tests/safe-renegotiation/srn1.c b/tests/safe-renegotiation/srn1.c
index 8cc0d5c213..ee40c3a796 100644
--- a/tests/safe-renegotiation/srn1.c
+++ b/tests/safe-renegotiation/srn1.c
@@ -28,7 +28,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
@@ -184,8 +184,7 @@ main (int argc, char *argv[])
GNUTLS_X509_FMT_PEM);
gnutls_init (&server, GNUTLS_SERVER);
gnutls_credentials_set (server, GNUTLS_CRD_CERTIFICATE, serverx509cred);
- gnutls_priority_set_direct (server, "NORMAL:%SAFE_RENEGOTIATION",
- NULL);
+ gnutls_priority_set_direct (server, "NORMAL:%SAFE_RENEGOTIATION", NULL);
gnutls_transport_set_push_function (server, server_push);
gnutls_transport_set_pull_function (server, server_pull);
diff --git a/tests/safe-renegotiation/srn2.c b/tests/safe-renegotiation/srn2.c
index 726ca1b51f..6bc92e9a24 100644
--- a/tests/safe-renegotiation/srn2.c
+++ b/tests/safe-renegotiation/srn2.c
@@ -26,7 +26,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
@@ -295,10 +295,10 @@ main (int argc, char *argv[])
}
}
while (
- /* Not done: */
- !(cret == GNUTLS_E_SUCCESS && sret == GNUTLS_E_SUCCESS)
- /* No error: */
- && (cret == GNUTLS_E_AGAIN || sret == GNUTLS_E_AGAIN));
+ /* Not done: */
+ !(cret == GNUTLS_E_SUCCESS && sret == GNUTLS_E_SUCCESS)
+ /* No error: */
+ && (cret == GNUTLS_E_AGAIN || sret == GNUTLS_E_AGAIN));
if (cret != GNUTLS_E_SUCCESS && sret != GNUTLS_E_SUCCESS)
exit_code = 1;
@@ -313,7 +313,7 @@ main (int argc, char *argv[])
/* Check that this API does not affect anything after first
handshake.
- gnutls_safe_negotiation_set_initial (server, 0); */
+ gnutls_safe_negotiation_set_initial (server, 0); */
sret = gnutls_rehandshake (server);
if (debug_level > 0)
@@ -363,10 +363,10 @@ main (int argc, char *argv[])
}
}
while (
- /* Not done: */
- !(cret == GNUTLS_E_SUCCESS && sret == GNUTLS_E_SUCCESS)
- /* No error: */
- && (cret == GNUTLS_E_AGAIN || sret == GNUTLS_E_AGAIN));
+ /* Not done: */
+ !(cret == GNUTLS_E_SUCCESS && sret == GNUTLS_E_SUCCESS)
+ /* No error: */
+ && (cret == GNUTLS_E_AGAIN || sret == GNUTLS_E_AGAIN));
if (cret != GNUTLS_E_SUCCESS && sret != GNUTLS_E_SUCCESS)
exit_code = 1;
@@ -422,10 +422,10 @@ main (int argc, char *argv[])
}
}
while (
- /* Not done: */
- !(cret == GNUTLS_E_SUCCESS && sret == GNUTLS_E_SUCCESS)
- /* No error: */
- && (cret == GNUTLS_E_AGAIN || sret == GNUTLS_E_AGAIN));
+ /* Not done: */
+ !(cret == GNUTLS_E_SUCCESS && sret == GNUTLS_E_SUCCESS)
+ /* No error: */
+ && (cret == GNUTLS_E_AGAIN || sret == GNUTLS_E_AGAIN));
if (cret != GNUTLS_E_SUCCESS && sret != GNUTLS_E_SUCCESS)
exit_code = 1;
diff --git a/tests/safe-renegotiation/srn3.c b/tests/safe-renegotiation/srn3.c
index de821e93c4..06457a2dc1 100644
--- a/tests/safe-renegotiation/srn3.c
+++ b/tests/safe-renegotiation/srn3.c
@@ -28,7 +28,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
@@ -193,8 +193,7 @@ main (int argc, char *argv[])
gnutls_certificate_allocate_credentials (&clientx509cred);
gnutls_init (&client, GNUTLS_CLIENT);
gnutls_credentials_set (client, GNUTLS_CRD_CERTIFICATE, clientx509cred);
- gnutls_priority_set_direct (client, "NORMAL:%SAFE_RENEGOTIATION",
- NULL);
+ gnutls_priority_set_direct (client, "NORMAL:%SAFE_RENEGOTIATION", NULL);
gnutls_transport_set_push_function (client, client_push);
gnutls_transport_set_pull_function (client, client_pull);
diff --git a/tests/safe-renegotiation/srn4.c b/tests/safe-renegotiation/srn4.c
index a0d8c62c19..488a0c3b69 100644
--- a/tests/safe-renegotiation/srn4.c
+++ b/tests/safe-renegotiation/srn4.c
@@ -28,7 +28,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
@@ -289,11 +289,11 @@ main (int argc, char *argv[])
}
}
while (
- /* Not done: */
- !(cret == GNUTLS_E_AGAIN
- && sret == GNUTLS_E_UNSAFE_RENEGOTIATION_DENIED)
- /* No error: */
- && (cret == GNUTLS_E_AGAIN || sret == GNUTLS_E_AGAIN));
+ /* Not done: */
+ !(cret == GNUTLS_E_AGAIN
+ && sret == GNUTLS_E_UNSAFE_RENEGOTIATION_DENIED)
+ /* No error: */
+ && (cret == GNUTLS_E_AGAIN || sret == GNUTLS_E_AGAIN));
if (cret != GNUTLS_E_AGAIN && sret != GNUTLS_E_UNSAFE_RENEGOTIATION_DENIED)
exit_code = 1;
@@ -301,7 +301,8 @@ main (int argc, char *argv[])
if (gnutls_safe_renegotiation_status (client) ||
gnutls_safe_renegotiation_status (server))
{
- tls_log_func (0, "Rehandshaked session not using safe renegotiation!\n");
+ tls_log_func (0,
+ "Rehandshaked session not using safe renegotiation!\n");
exit_code = EXIT_FAILURE;
}
diff --git a/tests/safe-renegotiation/srn5.c b/tests/safe-renegotiation/srn5.c
index 477ebb75a0..91d1b9474f 100644
--- a/tests/safe-renegotiation/srn5.c
+++ b/tests/safe-renegotiation/srn5.c
@@ -29,7 +29,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
@@ -295,11 +295,11 @@ main (int argc, char *argv[])
}
}
while (
- /* Not done: */
- !(sret == GNUTLS_E_AGAIN
- && cret == GNUTLS_E_UNSAFE_RENEGOTIATION_DENIED)
- /* No error: */
- && (cret == GNUTLS_E_AGAIN || sret == GNUTLS_E_AGAIN));
+ /* Not done: */
+ !(sret == GNUTLS_E_AGAIN
+ && cret == GNUTLS_E_UNSAFE_RENEGOTIATION_DENIED)
+ /* No error: */
+ && (cret == GNUTLS_E_AGAIN || sret == GNUTLS_E_AGAIN));
if (sret != GNUTLS_E_AGAIN && cret != GNUTLS_E_UNSAFE_RENEGOTIATION_DENIED)
exit_code = 1;
@@ -307,7 +307,8 @@ main (int argc, char *argv[])
if (gnutls_safe_renegotiation_status (client) ||
gnutls_safe_renegotiation_status (server))
{
- tls_log_func (0, "Rehandshaked session not using safe renegotiation!\n");
+ tls_log_func (0,
+ "Rehandshaked session not using safe renegotiation!\n");
exit_code = EXIT_FAILURE;
}
diff --git a/tests/set_pkcs12_cred.c b/tests/set_pkcs12_cred.c
index 6a4109fe2f..579e7aaa6b 100644
--- a/tests/set_pkcs12_cred.c
+++ b/tests/set_pkcs12_cred.c
@@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdlib.h>
diff --git a/tests/setcredcrash.c b/tests/setcredcrash.c
index 7a6803a5d6..61225a3520 100644
--- a/tests/setcredcrash.c
+++ b/tests/setcredcrash.c
@@ -21,7 +21,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/simple.c b/tests/simple.c
index 17d0cb55fa..4124876b14 100644
--- a/tests/simple.c
+++ b/tests/simple.c
@@ -22,7 +22,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/tlsia.c b/tests/tlsia.c
index c97ce9517f..d4ebce4a66 100644
--- a/tests/tlsia.c
+++ b/tests/tlsia.c
@@ -24,7 +24,7 @@
/* Parts copied from GnuTLS example programs. */
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/utils.c b/tests/utils.c
index eb55d1f133..946c62d39d 100644
--- a/tests/utils.c
+++ b/tests/utils.c
@@ -22,7 +22,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include "config.h"
+#include "config.h"
#endif
#include <stdio.h>
diff --git a/tests/utils.h b/tests/utils.h
index e5fd600d0b..47db94f61e 100644
--- a/tests/utils.h
+++ b/tests/utils.h
@@ -22,16 +22,16 @@
*/
#ifndef UTILS_H
-# define UTILS_H
+#define UTILS_H
-# include <string.h>
-# include <stdarg.h>
-# include <gnutls/gnutls.h>
+#include <string.h>
+#include <stdarg.h>
+#include <gnutls/gnutls.h>
#ifndef __attribute__
-# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
-# define __attribute__(Spec) /* empty */
-# endif
+#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
+#define __attribute__(Spec) /* empty */
+#endif
#endif
extern int debug;
diff --git a/tests/x509_altname.c b/tests/x509_altname.c
index 707b568623..432b44fb98 100644
--- a/tests/x509_altname.c
+++ b/tests/x509_altname.c
@@ -20,7 +20,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include "config.h"
+#include "config.h"
#endif
#include <stdio.h>
diff --git a/tests/x509dn.c b/tests/x509dn.c
index a68af097a5..6095b3a8d2 100644
--- a/tests/x509dn.c
+++ b/tests/x509dn.c
@@ -24,7 +24,7 @@
/* Parts copied from GnuTLS example programs. */
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/x509self.c b/tests/x509self.c
index f10a51f331..0039a49398 100644
--- a/tests/x509self.c
+++ b/tests/x509self.c
@@ -24,7 +24,7 @@
/* Parts copied from GnuTLS example programs. */
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
diff --git a/tests/x509sign-verify.c b/tests/x509sign-verify.c
index 1eb749066f..1eb86f516b 100644
--- a/tests/x509sign-verify.c
+++ b/tests/x509sign-verify.c
@@ -24,7 +24,7 @@
/* Parts copied from GnuTLS example programs. */
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>