1gnutls_pkcs11_privkey_init(3)       gnutls       gnutls_pkcs11_privkey_init(3)
2
3
4

NAME

6       gnutls_pkcs11_privkey_init - API function
7

SYNOPSIS

9       #include <gnutls/pkcs11.h>
10
11       int gnutls_pkcs11_privkey_init(gnutls_pkcs11_privkey_t * key);
12

ARGUMENTS

14       gnutls_pkcs11_privkey_t * key
15                   A pointer to the type to be initialized
16

DESCRIPTION

18       This  function will initialize an private key structure. This structure
19       can be used for accessing an underlying PKCS11 object.
20
21       In versions of GnuTLS later than 3.5.11 the object is  protected  using
22       locks  and  a  single  gnutls_pkcs11_privkey_t  can  be re-used by many
23       threads. However, for performance it is recommended to utilize one  ob‐
24       ject per key per thread.
25

RETURNS

27       On  success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative er‐
28       ror value.
29

REPORTING BUGS

31       Report bugs to <bugs@gnutls.org>.
32       Home page: https://www.gnutls.org
33
34
36       Copyright © 2001- Free Software Foundation, Inc., and others.
37       Copying and distribution of this file, with  or  without  modification,
38       are  permitted in any medium without royalty provided the copyright no‐
39       tice and this notice are preserved.
40

SEE ALSO

42       The full documentation for gnutls is maintained as  a  Texinfo  manual.
43       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
44       visit
45
46       https://www.gnutls.org/manual/
47
48gnutls                               3.7.8       gnutls_pkcs11_privkey_init(3)
Impressum