summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2003-10-17 06:57:05 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2003-10-17 06:57:05 +0000
commit862979c6f2d6ecaadeb4a1fe0e4c5365df65909b (patch)
treedc0d0ee0eef4db9aaf27f99cd8f3abc6d74d52e7
parentc0a201d9022aeeb289afb35ce79e85595d39d715 (diff)
downloadgnutls-862979c6f2d6ecaadeb4a1fe0e4c5365df65909b.tar.gz
Corrected issue in openpgp code, which did not allow compilation when opencdk was not present.
-rw-r--r--libextra/openpgp/gnutls_openpgp.h6
-rw-r--r--libextra/openpgp/openpgp.h6
2 files changed, 12 insertions, 0 deletions
diff --git a/libextra/openpgp/gnutls_openpgp.h b/libextra/openpgp/gnutls_openpgp.h
index 7a60dfa1c4..944523375e 100644
--- a/libextra/openpgp/gnutls_openpgp.h
+++ b/libextra/openpgp/gnutls_openpgp.h
@@ -1,3 +1,7 @@
+#include <config.h>
+
+#ifdef HAVE_LIBOPENCDK
+
#ifndef GNUTLS_OPENPGP_H
#define GNUTLS_OPENPGP_H
@@ -91,3 +95,5 @@ time_t gnutls_openpgp_extract_key_expiration_time(const gnutls_datum * cert);
#endif /*GNUTLS_OPENPGP_H*/
+
+#endif /*HAVE_LIBOPENCDK*/
diff --git a/libextra/openpgp/openpgp.h b/libextra/openpgp/openpgp.h
index e98ad18de8..2899919eb5 100644
--- a/libextra/openpgp/openpgp.h
+++ b/libextra/openpgp/openpgp.h
@@ -1,3 +1,7 @@
+#include <config.h>
+
+#ifdef HAVE_LIBOPENCDK
+
#ifndef OPENPGP_H
# define OPENPGP_H
@@ -63,3 +67,5 @@ int gnutls_openpgp_key_verify_trustdb( gnutls_openpgp_key key,
unsigned int flags, unsigned int *verify);
#endif
+
+#endif /* HAVE_LIBOPENCDK */