]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
define ck_bool_t to be compatible with PKCS #11 bool type.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 15 Jun 2011 18:52:11 +0000 (20:52 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 15 Jun 2011 19:40:37 +0000 (21:40 +0200)
lib/gnutls_privkey.c
lib/gnutls_pubkey.c
lib/pkcs11.c
lib/pkcs11_int.h
lib/pkcs11_privkey.c
lib/pkcs11_secret.c
lib/pkcs11_write.c

index f701ec426ba9bc54c10e12443d2ab767a192a300..45731d32cfead13aeb1ddc6f6e686eae505f78a4 100644 (file)
@@ -23,7 +23,6 @@
 #include <gnutls_int.h>
 #include <gnutls/pkcs11.h>
 #include <stdio.h>
-#include <stdbool.h>
 #include <string.h>
 #include <gnutls_errors.h>
 #include <gnutls_datum.h>
index 3199492ac28af6e5b065cf3d260aab33170c383c..2a09808d72d336a743770d49b133af89fc188d49 100644 (file)
@@ -23,7 +23,6 @@
 #include <gnutls_int.h>
 #include <gnutls/pkcs11.h>
 #include <stdio.h>
-#include <stdbool.h>
 #include <string.h>
 #include <gnutls_errors.h>
 #include <gnutls_datum.h>
index 7b3e1063ae3ae81634d3b488e215b5f3ab3837bb..b07cac94778c16364cd4ea8320c802ac99c23c60 100644 (file)
@@ -1054,7 +1054,7 @@ pkcs11_obj_import_pubkey (struct ck_function_list *module,
   opaque tmp1[2048];
   opaque tmp2[2048];
   int ret;
-  unsigned int tval;
+  ck_bool_t tval;
 
   a[0].type = CKA_KEY_TYPE;
   a[0].value = &key_type;
index 70df3bac03615ab91ec3ea9adc9ff0d981c7ddb2..7ff7869c1e50089dd50949dffb16e7fcb3afad8a 100644 (file)
@@ -11,8 +11,8 @@
 #define PKCS11_ID_SIZE 128
 #define PKCS11_LABEL_SIZE 128
 
-#define P11_KIT_API_SUBJECT_TO_CHANGE 1
 #include <p11-kit/uri.h>
+typedef unsigned char ck_bool_t;
 
 struct token_info
 {
index 0485c9a24336663d0d348e248beaaa25cfc1b69e..a6ed247142753a184bf529e8587776771fc168a2 100644 (file)
@@ -23,7 +23,6 @@
 #include <gnutls_int.h>
 #include <gnutls/pkcs11.h>
 #include <stdio.h>
-#include <stdbool.h>
 #include <string.h>
 #include <gnutls_errors.h>
 #include <gnutls_datum.h>
index 6ae355fca9610eb7307d201aeed3aff1c90987cc..aab723ffce6e40945ea0ab729705e2f74c23b56d 100644 (file)
@@ -58,7 +58,7 @@ gnutls_pkcs11_copy_secret_key (const char *token_url, gnutls_datum_t * key,
   ck_object_class_t class = CKO_SECRET_KEY;
   ck_object_handle_t obj;
   ck_key_type_t keytype = CKK_GENERIC_SECRET;
-  unsigned int tval = 1;
+  ck_bool_t tval = 1;
   int a_val;
   opaque id[16];
 
index bc20b725cd949a5dd8771f5d952683a4e4672d87..aeca5a5904a56d9b8adafeb6c5d5f3c93d4379e4 100644 (file)
@@ -58,7 +58,7 @@ gnutls_pkcs11_copy_x509_crt (const char *token_url,
   ck_object_class_t class = CKO_CERTIFICATE;
   ck_certificate_type_t type = CKC_X_509;
   ck_object_handle_t obj;
-  unsigned int tval = 1;
+  ck_bool_t tval = 1;
   int a_val;
 
   ret = pkcs11_url_to_info (token_url, &info);
@@ -199,7 +199,7 @@ gnutls_pkcs11_copy_x509_privkey (const char *token_url,
   ck_object_class_t class = CKO_PRIVATE_KEY;
   ck_object_handle_t obj;
   ck_key_type_t type;
-  unsigned int tval = 1;
+  ck_bool_t tval = 1;
   int a_val;
   gnutls_pk_algorithm_t pk;
   gnutls_datum_t p, q, g, y, x;