summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-06-05 22:27:34 +0200
committerSimon Josefsson <simon@josefsson.org>2008-06-05 22:27:34 +0200
commitfab0df76652f98aba1c6c516033b58b954d2adc9 (patch)
tree5269bf0ef675f67cf53e1dfafe4c87b21c28daa5
parentb10a4efd185778eae169abef8df77fd3ba49ec54 (diff)
downloadgnutls-fab0df76652f98aba1c6c516033b58b954d2adc9.tar.gz
Fix printing of serial number.
-rw-r--r--doc/examples/ex-x509-info.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/examples/ex-x509-info.c b/doc/examples/ex-x509-info.c
index 911d315d44..5ffee181e2 100644
--- a/doc/examples/ex-x509-info.c
+++ b/doc/examples/ex-x509-info.c
@@ -1,4 +1,4 @@
-/* Copyright 2007 Free Software Foundation
+/* Copyright 2007, 2008 Free Software Foundation
*
* Copying and distribution of this file, with or without modification,
* are permitted in any medium without royalty provided the copyright
@@ -81,7 +81,6 @@ print_x509_certificate_info (gnutls_session_t session)
size = sizeof (serial);
gnutls_x509_crt_get_serial (cert, serial, &size);
- size = sizeof (serial);
printf ("\tCertificate serial number: %s\n", bin2hex (serial, size));
/* Extract some of the public key algorithm's parameters