summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2007-02-09 13:28:12 +0000
committerSimon Josefsson <simon@josefsson.org>2007-02-09 13:28:12 +0000
commit3b9f25c4252b79f85b9dc7a678af5dd5a09c5c3e (patch)
tree87dd46c679250bc5efdbd61e997b1d4059326529
parent9d015350e38c1361cee2e7d383e8b8eabd715568 (diff)
downloadgnutls-3b9f25c4252b79f85b9dc7a678af5dd5a09c5c3e.tar.gz
Fix.
-rw-r--r--src/certtool.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/certtool.c b/src/certtool.c
index c19518a7e2..19d278ab3a 100644
--- a/src/certtool.c
+++ b/src/certtool.c
@@ -1220,17 +1220,17 @@ print_hex_datum (gnutls_datum * dat)
static void
print_certificate_info (gnutls_x509_crt crt, FILE *out, unsigned int all)
{
- gnutls_datum_t out;
+ gnutls_datum_t info;
int ret;
if (all)
- ret = gnutls_x509_crt_print (crt, GNUTLS_X509_CRT_FULL, &out);
+ ret = gnutls_x509_crt_print (crt, GNUTLS_X509_CRT_FULL, &info);
else
- ret = gnutls_x509_crt_print (crt, GNUTLS_X509_CRT_UNSIGNED_FULL, &out);
+ ret = gnutls_x509_crt_print (crt, GNUTLS_X509_CRT_UNSIGNED_FULL, &info);
if (ret == 0)
{
- fprintf (out, "%s\n", out.data);
- gnutls_free (out.data);
+ fprintf (out, "%s\n", info.data);
+ gnutls_free (info.data);
}
if (out == stderr && batch == 0) /* interactive */