[gcr] Add a basic PKCS#11 VAPI file



commit 17d0aaf0cfb6ddbb44c661db9e35d2a4ccfb8654
Author: Stef Walter <stefw gnome org>
Date:   Sat Nov 2 13:30:50 2013 +0100

    Add a basic PKCS#11 VAPI file

 gck/Makefile.am |    4 +++-
 gck/pkcs11.vapi |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+), 1 deletions(-)
---
diff --git a/gck/Makefile.am b/gck/Makefile.am
index 2c28653..6c44a0e 100644
--- a/gck/Makefile.am
+++ b/gck/Makefile.am
@@ -160,11 +160,13 @@ gck-$(GCK_MAJOR).deps: Makefile.am
 
 vapidir = $(datadir)/vala/vapi
 vapi_DATA = \
+       pkcs11.vapi \
        $(VAPIGEN_VAPIS) \
        $(VAPI_DEPS)
 
 EXTRA_DIST += \
-       Gck- GCK_MAJOR@.metadata
+       Gck- GCK_MAJOR@.metadata \
+       pkcs11.vapi
 
 CLEANFILES += \
        $(VAPIGEN_VAPIS) \
diff --git a/gck/pkcs11.vapi b/gck/pkcs11.vapi
new file mode 100644
index 0000000..e241bf9
--- /dev/null
+++ b/gck/pkcs11.vapi
@@ -0,0 +1,48 @@
+[CCode (prefix = "", lower_case_cprefix = "", cheader_filename = "p11-kit/pkcs11.h")]
+namespace CKA
+{
+       public const ulong LABEL;
+       public const ulong VALUE;
+       public const ulong ID;
+       public const ulong CLASS;
+       public const ulong CERTIFICATE_CATEGORY;
+       public const ulong MODIFIABLE;
+       public const ulong MODULUS_BITS;
+       public const ulong KEY_TYPE;
+       public const ulong TOKEN;
+}
+
+[CCode (prefix = "", lower_case_cprefix = "", cheader_filename = "p11-kit/pkcs11.h")]
+namespace CKS
+{
+       public const ulong RW_USER_FUNCTIONS;
+       public const ulong RO_USER_FUNCTIONS;
+       public const ulong RW_SO_FUNCTIONS;
+}
+
+[CCode (prefix = "", lower_case_cprefix = "", cheader_filename = "p11-kit/pkcs11.h")]
+namespace CKF
+{
+       public const ulong WRITE_PROTECTED;
+       public const ulong LOGIN_REQUIRED;
+       public const ulong USER_PIN_INITIALIZED;
+}
+
+[CCode (prefix = "", lower_case_cprefix = "", cheader_filename = "p11-kit/pkcs11.h")]
+namespace CKO
+{
+       public const ulong CERTIFICATE;
+       public const ulong PRIVATE_KEY;
+}
+
+[CCode (prefix = "", lower_case_cprefix = "", cheader_filename = "p11-kit/pkcs11.h")]
+namespace CKU
+{
+       public const ulong USER;
+}
+
+[CCode (prefix = "", lower_case_cprefix = "", cheader_filename = "p11-kit/pkcs11.h")]
+namespace CKR
+{
+       public const ulong OBJECT_HANDLE_INVALID;
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]