1gnutls_openpgp_privkey_export(3)    gnutls    gnutls_openpgp_privkey_export(3)
2
3
4

NAME

6       gnutls_openpgp_privkey_export - API function
7

SYNOPSIS

9       #include <gnutls/openpgp.h>
10
11       int     gnutls_openpgp_privkey_export(gnutls_openpgp_privkey_t     key,
12       gnutls_openpgp_crt_fmt_t format, const char *  password,  unsigned  int
13       flags, void * output_data, size_t * output_data_size);
14

ARGUMENTS

16       gnutls_openpgp_privkey_t key
17                   Holds the key.
18
19       gnutls_openpgp_crt_fmt_t format
20                   One of gnutls_openpgp_crt_fmt_t elements.
21
22       const char * password
23                   the  password that will be used to encrypt the key. (unused
24                   for now)
25
26       unsigned int flags
27                   zero for future compatibility
28
29       void * output_data
30                   will contain the key base64 encoded or raw
31
32       size_t * output_data_size
33                   holds the size of output_data (and will be replaced by  the
34                   actual size of parameters)
35

DESCRIPTION

37       This  function  will convert the given key to RAW or Base64 format.  If
38       the buffer provided is  not  long  enough  to  hold  the  output,  then
39       GNUTLS_E_SHORT_MEMORY_BUFFER will be returned.
40

RETURNS

42       GNUTLS_E_SUCCESS on success, or an error code.
43

SINCE

45       2.4.0
46

REPORTING BUGS

48       Report    bugs    to    <bug-gnutls@gnu.org>.     GnuTLS   home   page:
49       http://www.gnu.org/software/gnutls/ General help  using  GNU  software:
50       http://www.gnu.org/gethelp/
51
53       Copyright © 2008 Free Software Foundation.
54       Copying  and  distribution  of this file, with or without modification,
55       are permitted in any medium  without  royalty  provided  the  copyright
56       notice and this notice are preserved.
57

SEE ALSO

59       The  full  documentation  for gnutls is maintained as a Texinfo manual.
60       If the info and gnutls programs are properly installed  at  your  site,
61       the command
62
63              info gnutls
64
65       should give you access to the complete manual.
66
67
68
69gnutls                             2.12.6.1   gnutls_openpgp_privkey_export(3)
Impressum