1gnutls_pkcs12_bag_set_privkey(3)    gnutls    gnutls_pkcs12_bag_set_privkey(3)
2
3
4

NAME

6       gnutls_pkcs12_bag_set_privkey - API function
7

SYNOPSIS

9       #include <gnutls/pkcs12.h>
10
11       int        gnutls_pkcs12_bag_set_privkey(gnutls_pkcs12_bag_t       bag,
12       gnutls_x509_privkey_t privkey, const char * password, unsigned flags);
13

ARGUMENTS

15       gnutls_pkcs12_bag_t bag
16                   The bag
17
18       gnutls_x509_privkey_t privkey
19                   the private key to be copied.
20
21       const char * password
22                   the password to protect the key with (may be NULL)
23
24       unsigned flags
25                   should be one of gnutls_pkcs_encrypt_flags_t elements  bit‐
26                   wise or'd
27

DESCRIPTION

29       This  function  will insert the given private key into the bag. This is
30       just a wrapper over gnutls_pkcs12_bag_set_data().
31

RETURNS

33       the index of the added bag on success, or a negative value on failure.
34

REPORTING BUGS

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

SEE ALSO

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