summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-02-03 18:36:21 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-02-03 18:36:21 +0000
commit0609a49799b1c29768b1bb94662d422495db31c4 (patch)
tree7ed16cdf814dde1df3b1fe4e0212f0d6db0de595 /src/common.h
parentc25f1234eb954f36570c6d58fa369dc13819a7c0 (diff)
downloadgnutls-0609a49799b1c29768b1bb94662d422495db31c4.tar.gz
*** empty log message ***
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/common.h b/src/common.h
index 8826ddc194..ac376057da 100644
--- a/src/common.h
+++ b/src/common.h
@@ -105,6 +105,7 @@ GNUTLS_KXAlgorithm kx;
printf("- Peer requested OpenPGP certificate authentication.\n");
+ if (cert_list_size > 0)
if ( gnutls_openpgp_fingerprint( &cert_list[0], digest, &digest_size) >= 0) {
print = printable;
for (i=0;i<digest_size;i++) {
@@ -112,10 +113,11 @@ GNUTLS_KXAlgorithm kx;
print += 3;
}
printf(" - Certificate fingerprint: %s\n", printable);
+
+ gnutls_openpgp_extract_certificate_dn( &cert_list[0], &dn);
+ PRINT_DN( dn);
+
}
-
- gnutls_openpgp_extract_certificate_dn( &cert_list[0], &dn);
- PRINT_DN( dn);
break;
}