summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2014-09-13 13:11:52 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-09-13 13:11:52 +0200
commita3e790483032fd53d2819624e3e6e3fc3cbdf8c0 (patch)
tree26a914c125cfc0adc17daaedba12f0f83510f230
parente90ccb4f41fc9fd7bdb6abfead1faa735f978c50 (diff)
downloadgnutls-a3e790483032fd53d2819624e3e6e3fc3cbdf8c0.tar.gz
added pkcs11x.h
-rw-r--r--lib/Makefile.am2
-rw-r--r--lib/pkcs11.c1
-rw-r--r--lib/pkcs11x.h26
3 files changed, 28 insertions, 1 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 52b0588dcc..21ac4a62b1 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -113,7 +113,7 @@ HFILES = abstract_int.h debug.h gnutls_compress.h gnutls_cipher.h \
priority_options.h
if ENABLE_PKCS11
-HFILES += pkcs11_int.h
+HFILES += pkcs11_int.h pkcs11x.h
endif
# Separate so we can create the documentation
diff --git a/lib/pkcs11.c b/lib/pkcs11.c
index e3141130e3..24972ac5c1 100644
--- a/lib/pkcs11.c
+++ b/lib/pkcs11.c
@@ -36,6 +36,7 @@
#include <pin.h>
#include <pkcs11_int.h>
#include <p11-kit/p11-kit.h>
+#include "pkcs11x.h"
#include <p11-kit/pin.h>
#ifdef HAVE_GETPID
# include <unistd.h>
diff --git a/lib/pkcs11x.h b/lib/pkcs11x.h
new file mode 100644
index 0000000000..0aac3f6f10
--- /dev/null
+++ b/lib/pkcs11x.h
@@ -0,0 +1,26 @@
+/*
+ * GnuTLS PKCS#11 support
+ * Copyright (C) 2014 Red Hat
+ *
+ * Authors: Nikos Mavrogiannopoulos
+ *
+ * The GnuTLS is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>
+ */
+
+#ifndef PKCS11X_H
+#define PKCS11X_H
+
+#include <p11-kit/pkcs11x.h>
+
+#endif