1gnutls_openpgp_privkey_import(3) gnutls gnutls_openpgp_privkey_import(3)
2
3
4
6 gnutls_openpgp_privkey_import - API function
7
9 #include <gnutls/openpgp.h>
10
11 int gnutls_openpgp_privkey_import(gnutls_openpgp_privkey_t key, const
12 gnutls_datum_t * data, gnutls_openpgp_crt_fmt_t format, const char *
13 password, unsigned int flags);
14
16 gnutls_openpgp_privkey_t key
17 The structure to store the parsed key.
18
19 const gnutls_datum_t * data
20 The RAW or BASE64 encoded key.
21
22 gnutls_openpgp_crt_fmt_t format
23 One of gnutls_openpgp_crt_fmt_t elements.
24
25 const char * password
26 not used for now
27
28 unsigned int flags
29 should be (0)
30
32 This function will convert the given RAW or Base64 encoded key to the
33 native gnutls_openpgp_privkey_t format. The output will be stored in
34 'key'.
35
37 GNUTLS_E_SUCCESS on success, or an error code.
38
40 Report bugs to <bugs@gnutls.org>.
41 Home page: http://www.gnutls.org
42
43
45 Copyright © 2001-2014 Free Software Foundation, Inc..
46 Copying and distribution of this file, with or without modification,
47 are permitted in any medium without royalty provided the copyright
48 notice and this notice are preserved.
49
51 The full documentation for gnutls is maintained as a Texinfo manual.
52 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
53 visit
54
55 http://www.gnutls.org/manual/
56
57gnutls 3.3.29 gnutls_openpgp_privkey_import(3)