summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2012-02-21 09:24:25 +0000
committerCedric BAIL <cedric.bail@free.fr>2012-02-21 09:24:25 +0000
commit8a86e531123a49a3d215cb06dbb5c96d2cbaef53 (patch)
tree5ec33db0f6adfa35714c7ec3fea576f672a332ed
parentc46bffc9d4548b3d74ea3f1d659fdec351861f20 (diff)
downloadeet-8a86e531123a49a3d215cb06dbb5c96d2cbaef53.tar.gz
eet: fix build without latest GNUTLS.
Patch by Lionel Orry <lionel.orry@gmail.com> SVN revision: 68210
-rw-r--r--AUTHORS1
-rw-r--r--src/lib/eet_cipher.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
index ebdd15f..260b216 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -11,3 +11,4 @@ Mathieu Taillefumier <mathieu.taillefumier@free.fr>
Albin "Lutin" Tonnerre <albin.tonnerre@gmail.com>
Adam Simpkins <adam@adamsimpkins.net>
Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
+Lionel Orry <lionel.orry@gmail.com>
diff --git a/src/lib/eet_cipher.c b/src/lib/eet_cipher.c
index 0d4203b..2425e22 100644
--- a/src/lib/eet_cipher.c
+++ b/src/lib/eet_cipher.c
@@ -857,9 +857,11 @@ eet_identity_check(const void *data_base,
return cert_der;
# ifdef HAVE_GNUTLS
+# if EET_USE_NEW_GNUTLS_API
on_error:
gcry_md_close(md);
return NULL;
+# endif
# endif
#else /* ifdef HAVE_SIGNATURE */
data_base = NULL;