blob: 56d6143acd4f46d09ddc29109bc84700661bb532 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
@deftypefun {int} {gnutls_pkcs11_privkey_generate} (const char * @var{url}, gnutls_pk_algorithm_t @var{pk}, unsigned int @var{bits}, const char * @var{label}, unsigned int @var{flags})
@var{url}: a token URL
@var{pk}: the public key algorithm
@var{bits}: the security bits
@var{label}: a label
@var{flags}: should be zero
This function will generate a private key in the specified
by the @code{url} token. The private key will be generate within
the token and will not be exportable.
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
negative error value.
@strong{Since:} 3.0
@end deftypefun
|