1gnutls_pkcs11_copy_x509_privkey(3) gnutls gnutls_pkcs11_copy_x509_privkey(3)
2
3
4
6 gnutls_pkcs11_copy_x509_privkey - API function
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_pkcs11_copy_x509_privkey(const char * token_url,
12 gnutls_x509_privkey_t key, const char * label, unsigned int key_usage,
13 unsigned int flags);
14
16 const char * token_url
17 A PKCS 11 URL specifying a token
18
19 gnutls_x509_privkey_t key
20 A private key
21
22 const char * label
23 A name to be used for the stored data
24
25 unsigned int key_usage
26 One of GNUTLS_KEY_*
27
28 unsigned int flags
29 One of GNUTLS_PKCS11_OBJ_* flags
30
32 This function will copy a private key into a PKCS 11 token specified by
33 a URL. It is highly recommended flags to contain
34 GNUTLS_PKCS11_OBJ_FLAG_MARK_SENSITIVE unless there is a strong reason
35 not to.
36
38 On success, GNUTLS_E_SUCCESS is returned, otherwise a negative error
39 value.
40
42 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
43 http://www.gnu.org/software/gnutls/ General help using GNU software:
44 http://www.gnu.org/gethelp/
45
47 Copyright © 2008 Free Software Foundation.
48 Copying and distribution of this file, with or without modification,
49 are permitted in any medium without royalty provided the copyright
50 notice and this notice are preserved.
51
53 The full documentation for gnutls is maintained as a Texinfo manual.
54 If the info and gnutls programs are properly installed at your site,
55 the command
56
57 info gnutls
58
59 should give you access to the complete manual.
60
61
62
63gnutls 2.12.6.1 gnutls_pkcs11_copy_x509_privkey(3)