summaryrefslogtreecommitdiff
path: root/lib/pkcs11_int.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-05-22 20:15:22 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-06-03 19:52:29 +0200
commitb6f4958c4f75791326ccef12915c78436d42b409 (patch)
tree74acc99415baae71e8fbe46aae2548b8fb787224 /lib/pkcs11_int.h
parent77fdd543b21e896a5637e956097672b9f79ab899 (diff)
downloadgnutls-b6f4958c4f75791326ccef12915c78436d42b409.tar.gz
Added gnutls_pubkey_import_pkcs11(), gnutls_pubkey_import_rsa_raw(),
gnutls_pubkey_import_dsa_raw(), gnutls_pkcs11_obj_export().
Diffstat (limited to 'lib/pkcs11_int.h')
-rw-r--r--lib/pkcs11_int.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/pkcs11_int.h b/lib/pkcs11_int.h
index 86cbba1ce4..7b8c120e9d 100644
--- a/lib/pkcs11_int.h
+++ b/lib/pkcs11_int.h
@@ -33,6 +33,11 @@ struct gnutls_pkcs11_obj_st {
gnutls_datum_t raw;
gnutls_pkcs11_obj_type_t type;
struct pkcs11_url_info info;
+
+ /* only when pubkey */
+ gnutls_datum_t pubkey[MAX_PUBLIC_PARAMS_SIZE];
+ gnutls_pk_algorithm pk_algorithm;
+ unsigned int key_usage;
};
/* thus function is called for every token in the traverse_tokens