1gnutls_openpgp_privkey_export2(3)   gnutls   gnutls_openpgp_privkey_export2(3)
2
3
4

NAME

6       gnutls_openpgp_privkey_export2 - API function
7

SYNOPSIS

9       #include <gnutls/openpgp.h>
10
11       int     gnutls_openpgp_privkey_export2(gnutls_openpgp_privkey_t    key,
12       gnutls_openpgp_crt_fmt_t format, const char *  password,  unsigned  int
13       flags, gnutls_datum_t * out);
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       gnutls_datum_t * out
30                   will contain the raw or based64 encoded key
31

DESCRIPTION

33       This function will convert the given key to RAW or Base64 format.   The
34       output buffer is allocated using gnutls_malloc().
35

RETURNS

37       GNUTLS_E_SUCCESS on success, or an error code.
38

SINCE

40       3.1.3
41

REPORTING BUGS

43       Report bugs to <bugs@gnutls.org>.
44       Home page: http://www.gnutls.org
45
46
48       Copyright © 2001-2014 Free Software Foundation, Inc..
49       Copying  and  distribution  of this file, with or without modification,
50       are permitted in any medium  without  royalty  provided  the  copyright
51       notice and this notice are preserved.
52

SEE ALSO

54       The  full  documentation  for gnutls is maintained as a Texinfo manual.
55       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
56       visit
57
58       http://www.gnutls.org/manual/
59
60gnutls                              3.3.29   gnutls_openpgp_privkey_export2(3)
Impressum