1
From 9eed44b4ef9538117cc134956b32bc8fd39534fd Mon Sep 17 00:00:00 2001
2
From: Simon Josefsson <simon@josefsson.org>
3
Date: Thu, 20 Aug 2009 10:21:09 +0000
4
Subject: Fix OpenPGP hostname comparison.
7
diff --git a/lib/openpgp/pgp.c b/lib/openpgp/pgp.c
8
index 8018ced..aa2a235 100644
9
--- a/lib/openpgp/pgp.c
10
+++ b/lib/openpgp/pgp.c
11
@@ -589,6 +589,10 @@ gnutls_openpgp_crt_check_hostname (gnutls_openpgp_crt_t key,
15
+ /* Length returned by gnutls_openpgp_crt_get_name includes
16
+ the terminating zero. */
19
if (_gnutls_hostname_compare (dnsname, dnsnamesize, hostname))