1gnutls_privkey_init(3)              gnutls              gnutls_privkey_init(3)
2
3
4

NAME

6       gnutls_privkey_init - API function
7

SYNOPSIS

9       #include <gnutls/abstract.h>
10
11       int gnutls_privkey_init(gnutls_privkey_t * key);
12

ARGUMENTS

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

DESCRIPTION

18       This  function  will initialize a private key object. The object can be
19       used to generate, import, and perform cryptographic operations  on  the
20       associated private key.
21
22       Note  that  when the underlying private key is a PKCS11 key (i.e., when
23       imported    with    a    PKCS11    URI),     the     limitations     of
24       gnutls_pkcs11_privkey_init()  apply to this object as well. In versions
25       of GnuTLS later than 3.5.11 the object is protected using locks  and  a
26       single  gnutls_privkey_t  can  be re-used by many threads. However, for
27       performance it is recommended to utilize one object per key per thread.
28

RETURNS

30       On success, GNUTLS_E_SUCCESS (0)  is  returned,  otherwise  a  negative
31       error value.
32

SINCE

34       2.12.0
35

REPORTING BUGS

37       Report bugs to <bugs@gnutls.org>.
38       Home page: https://www.gnutls.org
39
40
42       Copyright © 2001-2019 Free Software Foundation, Inc., and others.
43       Copying  and  distribution  of this file, with or without modification,
44       are permitted in any medium  without  royalty  provided  the  copyright
45       notice and this notice are preserved.
46

SEE ALSO

48       The  full  documentation  for gnutls is maintained as a Texinfo manual.
49       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
50       visit
51
52       https://www.gnutls.org/manual/
53
54gnutls                               3.6.8              gnutls_privkey_init(3)
Impressum