diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-09-05 00:46:41 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-09-06 12:44:19 +0200 |
commit | 08de2069506b3c1e69e1fbdfe772ae5329c64c53 (patch) | |
tree | 2c20339f24eebcfed3809945c625ed2a9d4b30a2 /src/p11tool.h | |
parent | ab782d356200f44736edb687304d5e90438e2185 (diff) | |
download | gnutls-08de2069506b3c1e69e1fbdfe772ae5329c64c53.tar.gz |
Added gnutls_pkcs11_privkey_generate().
p11tool can be used to generate keys in tokens.
Diffstat (limited to 'src/p11tool.h')
-rw-r--r-- | src/p11tool.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/p11tool.h b/src/p11tool.h index 3682fb15ad..7506751adc 100644 --- a/src/p11tool.h +++ b/src/p11tool.h @@ -18,6 +18,11 @@ void pkcs11_delete (FILE * outfile, const char *pkcs11_url, int batch, unsigned int login, 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); #define PKCS11_TYPE_CRT_ALL 1 #define PKCS11_TYPE_TRUSTED 2 @@ -35,6 +40,7 @@ enum ACTION_PKCS11_DELETE_URL, ACTION_PKCS11_TOKEN_INIT, ACTION_PKCS11_MECHANISMS, + ACTION_PKCS11_GENERATE, }; #endif |