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                   (0) 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 <bugs@gnutls.org>.
49       Home page: http://www.gnutls.org
50
51
53       Copyright © 2001-2014 Free Software Foundation, Inc..
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 /usr/share/doc/gnutls/ directory does not contain the HTML  form
61       visit
62
63       http://www.gnutls.org/manual/
64
65gnutls                              3.3.29    gnutls_openpgp_privkey_export(3)
Impressum