1gnutls_privkey_import_openpgp(3)    gnutls    gnutls_privkey_import_openpgp(3)
2
3
4

NAME

6       gnutls_privkey_import_openpgp - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int         gnutls_privkey_import_openpgp(gnutls_privkey_t        pkey,
12       gnutls_openpgp_privkey_t key, unsigned int flags);
13

ARGUMENTS

15       gnutls_privkey_t pkey
16                   The private key
17
18       gnutls_openpgp_privkey_t key
19                   The private key to be imported
20
21       unsigned int flags
22                   should be zero
23

DESCRIPTION

25       This function will  import  the  given  private  key  to  the  abstract
26       gnutls_privkey_t structure.
27
28       The  gnutls_openpgp_privkey_t object must not be deallocated during the
29       lifetime of this structure. The subkey set as preferred will  be  used,
30       or the master key otherwise.
31

RETURNS

33       On  success,  GNUTLS_E_SUCCESS  is returned, otherwise a negative error
34       value.
35

REPORTING BUGS

37       Report   bugs   to    <bug-gnutls@gnu.org>.     GnuTLS    home    page:
38       http://www.gnu.org/software/gnutls/  General  help  using GNU software:
39       http://www.gnu.org/gethelp/
40
42       Copyright © 2008 Free Software Foundation.
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  info  and gnutls programs are properly installed at your site,
50       the command
51
52              info gnutls
53
54       should give you access to the complete manual.
55
56
57
58gnutls                             2.12.6.1   gnutls_privkey_import_openpgp(3)
Impressum