From 23f9905d9a38b5089b99321dc56b6567605505db Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 24 Aug 2009 18:59:13 +0200 Subject: [PATCH 01/17] In print_crl(), initialize aki_idx and crl_nr once before entering the for loop instead of each run. Otherwise the "error: more than one AKI extension\n" and "error: more than one CRL number\n" checks want work. --- lib/x509/output.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/x509/output.c b/lib/x509/output.c index c04beb1..fa2844f 100644 --- a/lib/x509/output.c +++ b/lib/x509/output.c @@ -1555,14 +1555,14 @@ print_crl (gnutls_string * str, gnutls_x509_crl_t crl, int notsigned) { size_t i; int err = 0; + int aki_idx = 0; + int crl_nr = 0; for (i = 0;; i++) { char oid[MAX_OID_SIZE] = ""; size_t sizeof_oid = sizeof (oid); int critical; - int crl_nr = 0; - int aki_idx = 0; err = gnutls_x509_crl_get_extension_info (crl, i, oid, &sizeof_oid, -- 1.6.4.1