diff options
Diffstat (limited to 'tests/cve-2008-4989.c')
-rw-r--r-- | tests/cve-2008-4989.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/tests/cve-2008-4989.c b/tests/cve-2008-4989.c index 40af8623d8..2e6de335f5 100644 --- a/tests/cve-2008-4989.c +++ b/tests/cve-2008-4989.c @@ -165,22 +165,22 @@ main (int argc, char *argv[]) { ret = gnutls_x509_crt_init (&certs[i]); if (ret < 0) - error (EXIT_FAILURE, 0, "gnutls_x509_crt_init[%d]: %s", (int) i, - gnutls_strerror (ret)); + error (EXIT_FAILURE, 0, "gnutls_x509_crt_init[%d]: %s", (int) i, + gnutls_strerror (ret)); tmp.data = (char *) pem_certs[i]; tmp.size = strlen (pem_certs[i]); ret = gnutls_x509_crt_import (certs[i], &tmp, GNUTLS_X509_FMT_PEM); if (ret < 0) - error (EXIT_FAILURE, 0, "gnutls_x509_crt_import[%d]: %s", (int) i, - gnutls_strerror (ret)); + error (EXIT_FAILURE, 0, "gnutls_x509_crt_import[%d]: %s", (int) i, + gnutls_strerror (ret)); } ret = gnutls_x509_crt_init (&ca); if (ret < 0) error (EXIT_FAILURE, 0, "gnutls_x509_crt_init: %s", - gnutls_strerror (ret)); + gnutls_strerror (ret)); tmp.data = (char *) pem_ca; tmp.size = strlen (pem_ca); @@ -188,16 +188,16 @@ main (int argc, char *argv[]) ret = gnutls_x509_crt_import (ca, &tmp, GNUTLS_X509_FMT_PEM); if (ret < 0) error (EXIT_FAILURE, 0, "gnutls_x509_crt_import: %s", - gnutls_strerror (ret)); + gnutls_strerror (ret)); ret = gnutls_x509_crt_list_verify (certs, CHAIN_LENGTH, - &ca, 1, - NULL, 0, - GNUTLS_VERIFY_DISABLE_TIME_CHECKS, - &verify_status); + &ca, 1, + NULL, 0, + GNUTLS_VERIFY_DISABLE_TIME_CHECKS, + &verify_status); if (ret < 0) error (EXIT_FAILURE, 0, "gnutls_x509_crt_list_verify[%d]: %s", (int) i, - gnutls_strerror (ret)); + gnutls_strerror (ret)); if (verify_status != (GNUTLS_CERT_SIGNER_NOT_FOUND | GNUTLS_CERT_INVALID)) error (EXIT_FAILURE, 0, "verify_status: %d", verify_status); @@ -212,7 +212,7 @@ main (int argc, char *argv[]) ret = gnutls_x509_crt_init (&self_cert); if (ret < 0) error (EXIT_FAILURE, 0, "gnutls_x509_crt_init: %s", - gnutls_strerror (ret)); + gnutls_strerror (ret)); tmp.data = (char *) pem_self_cert; tmp.size = strlen (pem_self_cert); @@ -220,16 +220,16 @@ main (int argc, char *argv[]) ret = gnutls_x509_crt_import (self_cert, &tmp, GNUTLS_X509_FMT_PEM); if (ret < 0) error (EXIT_FAILURE, 0, "gnutls_x509_crt_import: %s", - gnutls_strerror (ret)); + gnutls_strerror (ret)); ret = gnutls_x509_crt_list_verify (&self_cert, 1, - &self_cert, 1, - NULL, 0, - GNUTLS_VERIFY_DISABLE_TIME_CHECKS, - &verify_status); + &self_cert, 1, + NULL, 0, + GNUTLS_VERIFY_DISABLE_TIME_CHECKS, + &verify_status); if (ret < 0) error (EXIT_FAILURE, 0, "gnutls_x509_crt_list_verify[%d]: %s", (int) i, - gnutls_strerror (ret)); + gnutls_strerror (ret)); if (verify_status != 0) error (EXIT_FAILURE, 0, "verify_status: %d", verify_status); |