summaryrefslogtreecommitdiff
path: root/src/p11tool.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2014-08-06 22:09:39 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-08-06 22:19:33 +0200
commit80c251d063137162a36eec22224c58371fdf283d (patch)
tree3ea775273de5c8c90a2d23ee8e5b286d2c4ed506 /src/p11tool.h
parentd7de38ff7b3b03c167bf0a4647a3f2332a36a318 (diff)
downloadgnutls-80c251d063137162a36eec22224c58371fdf283d.tar.gz
p11tool: simplify the passing of flags and pass the key wrapping flag
Diffstat (limited to 'src/p11tool.h')
-rw-r--r--src/p11tool.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/p11tool.h b/src/p11tool.h
index 24dd0606d1..05c325ea12 100644
--- a/src/p11tool.h
+++ b/src/p11tool.h
@@ -26,34 +26,33 @@
#include "certtool-common.h"
void pkcs11_list(FILE * outfile, const char *url, int type,
- unsigned int login, unsigned int detailed,
+ unsigned int flags, unsigned int detailed,
common_info_st *);
void pkcs11_mechanism_list(FILE * outfile, const char *url,
- unsigned int login, common_info_st *);
+ unsigned int flags, common_info_st *);
void pkcs11_get_random(FILE * outfile, const char *url,
unsigned bytes, common_info_st *);
void pkcs11_export(FILE * outfile, const char *pkcs11_url,
- unsigned int login, common_info_st *);
+ unsigned int flags, common_info_st *);
void
-pkcs11_export_chain(FILE * outfile, const char *url, unsigned int login,
+pkcs11_export_chain(FILE * outfile, const char *url, unsigned int flags,
common_info_st * info);
void pkcs11_token_list(FILE * outfile, unsigned int detailed,
common_info_st *, unsigned brief);
void pkcs11_write(FILE * outfile, const char *pkcs11_url,
- const char *label, int trusted,
- int ca, int private,
- unsigned int login, common_info_st *);
+ const char *label,
+ unsigned int flags, common_info_st *);
void pkcs11_delete(FILE * outfile, const char *pkcs11_url,
- unsigned int login, common_info_st *);
+ unsigned int flags, common_info_st *);
void pkcs11_init(FILE * outfile, const char *pkcs11_url, const char *label,
common_info_st *);
void pkcs11_generate(FILE * outfile, const char *url,
gnutls_pk_algorithm_t type, unsigned int bits,
- const char *label, int private, int detailed,
- unsigned int login, common_info_st * info);
+ const char *label, int detailed,
+ unsigned int flags, common_info_st * info);
void pkcs11_export_pubkey(FILE * outfile, const char *url, int detailed,
- unsigned int login, common_info_st * info);
+ unsigned int flags, common_info_st * info);
#define PKCS11_TYPE_CRT_ALL 1
#define PKCS11_TYPE_TRUSTED 2