about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2012-01-23 16:12:06 -0600
committerMarco Peereboom <marco@conformal.com>2012-01-23 16:12:20 -0600
commit354ae4783e2b6129f0a4eff67157fa0466a3fe10 (patch)
treec1739b7377fd5d5e6b5cc1c7ce2c9886dcd73fb6
parente06cc87d7b4d9c7a02a730bfd9f701bbdc7939ef (diff)
downloadxombrero-354ae4783e2b6129f0a4eff67157fa0466a3fe10.tar.gz
compile with gnutls 2.4
-rw-r--r--xxxterm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xxxterm.c b/xxxterm.c
index 2a7270f..b24daa8 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -1810,10 +1810,12 @@ done:
 			strlcat(serr, "not signed by CA, ", sizeof serr);
 		if (error & GNUTLS_CERT_INSECURE_ALGORITHM)
 			strlcat(serr, "insecure algorithm, ", sizeof serr);
+#if LIBGNUTLS_VERSION_MAJOR >= 2 && LIBGNUTLS_VERSION_MINOR >= 6
 		if (error & GNUTLS_CERT_NOT_ACTIVATED)
 			strlcat(serr, "not activated, ", sizeof serr);
 		if (error & GNUTLS_CERT_EXPIRED)
 			strlcat(serr, "expired, ", sizeof serr);
+#endif
 		for (i = strlen(serr) - 1; i > 0; i--)
 			if (serr[i] == ',') {
 				serr[i] = '\0';