1gnutls_x509_privkey_import(3)       gnutls       gnutls_x509_privkey_import(3)
2
3
4

NAME

6       gnutls_x509_privkey_import  -  This  function  will import a DER or PEM
7       encoded key
8

SYNOPSIS

10       #include <gnutls/x509.h>
11
12       int   gnutls_x509_privkey_import(gnutls_x509_privkey_t    key,    const
13       gnutls_datum_t * data, gnutls_x509_crt_fmt_t format);
14

ARGUMENTS

16       gnutls_x509_privkey_t key
17                   The structure to store the parsed key
18
19       const gnutls_datum_t * data
20                   The DER or PEM encoded certificate.
21
22       gnutls_x509_crt_fmt_t format
23                   One of DER or PEM
24

DESCRIPTION

26       This  function  will  convert  the  given DER or PEM encoded key to the
27       native gnutls_x509_privkey_t format. The output will be stored in key .
28
29       If the key is PEM encoded it should have a header of "RSA PRIVATE KEY",
30       or "DSA PRIVATE KEY".
31
32       Returns 0 on success.
33

REPORTING BUGS

35       Report bugs to <bug-gnutls@gnu.org>.
36
38       Copyright © 2006 Free Software Foundation.
39       Permission  is  granted  to make and distribute verbatim copies of this
40       manual provided the copyright notice and  this  permission  notice  are
41       preserved on all copies.
42

SEE ALSO

44       The  full  documentation  for gnutls is maintained as a Texinfo manual.
45       If the info and gnutls programs are properly installed  at  your  site,
46       the command
47
48              info gnutls
49
50       should give you access to the complete manual.
51
52
53
54gnutls                               1.6.3       gnutls_x509_privkey_import(3)
Impressum