1gnutls_privkey_init(3) gnutls gnutls_privkey_init(3)
2
3
4
6 gnutls_privkey_init - API function
7
9 #include <gnutls/abstract.h>
10
11 int gnutls_privkey_init(gnutls_privkey_t * key);
12
14 gnutls_privkey_t * key
15 A pointer to the type to be initialized
16
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
30 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative
31 error value.
32
34 2.12.0
35
37 Report bugs to <bugs@gnutls.org>.
38 Home page: https://www.gnutls.org
39
40
42 Copyright © 2001-2020 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
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.13 gnutls_privkey_init(3)