summaryrefslogtreecommitdiff
path: root/include/xmlsec/gnutls/crypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/xmlsec/gnutls/crypto.h')
-rw-r--r--include/xmlsec/gnutls/crypto.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/include/xmlsec/gnutls/crypto.h b/include/xmlsec/gnutls/crypto.h
index f0e07c6f..fa9dbbcf 100644
--- a/include/xmlsec/gnutls/crypto.h
+++ b/include/xmlsec/gnutls/crypto.h
@@ -1,5 +1,5 @@
-/**
- * XMLSec library
+/*
+ * XML Security Library (http://www.aleksey.com/xmlsec).
*
* This is free software; see Copyright file in the source
* distribution for preciese wording.
@@ -9,14 +9,21 @@
#ifndef __XMLSEC_GNUTLS_CRYPTO_H__
#define __XMLSEC_GNUTLS_CRYPTO_H__
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
#include <xmlsec/xmlsec.h>
#include <xmlsec/keys.h>
#include <xmlsec/transforms.h>
#include <xmlsec/dl.h>
+#include <gnutls/gnutls.h>
+#ifndef XMLSEC_NO_DSA
+#include <gnutls/x509.h>
+#endif /* XMLSEC_NO_DSA */
+#ifndef XMLSEC_NO_RSA
+#include <gnutls/x509.h>
+#endif /* XMLSEC_NO_RSA */
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
XMLSEC_CRYPTO_EXPORT xmlSecCryptoDLFunctionsPtr xmlSecCryptoGetFunctions_gnutls(void);
@@ -152,9 +159,6 @@ XMLSEC_CRYPTO_EXPORT xmlSecTransformId xmlSecGnuTLSTransformKWDes3GetKlass(void)
*******************************************************************/
#ifndef XMLSEC_NO_DSA
-#include <gnutls/gnutls.h>
-#include <gnutls/x509.h>
-
/**
* xmlSecGnuTLSKeyDataDsaId:
*
@@ -284,9 +288,6 @@ XMLSEC_CRYPTO_EXPORT xmlSecTransformId xmlSecGnuTLSTransformHmacSha512GetKlass(v
*******************************************************************/
#ifndef XMLSEC_NO_RSA
-#include <gnutls/gnutls.h>
-#include <gnutls/x509.h>
-
/**
* xmlSecGnuTLSKeyDataRsaId:
*