1gnutls_x509_privkey_import_openssl(3)gnutlsgnutls_x509_privkey_import_openssl(3)
2
3
4

NAME

6       gnutls_x509_privkey_import_openssl - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int gnutls_x509_privkey_import_openssl(gnutls_x509_privkey_t key, const
12       gnutls_datum_t * data, const char * password);
13

ARGUMENTS

15       gnutls_x509_privkey_t key
16                   The data to store the parsed key
17
18       const gnutls_datum_t * data
19                   The DER or PEM encoded key.
20
21       const char * password
22                   the password to decrypt the key (if it is encrypted).
23

DESCRIPTION

25       This function will convert  the  given  PEM  encrypted  to  the  native
26       gnutls_x509_privkey_t format. The output will be stored in  key .
27
28       The   password  should  be in ASCII. If the password is not provided or
29       wrong then GNUTLS_E_DECRYPTION_FAILED will be returned.
30
31       If the Certificate is PEM encoded it should have a header  of  "PRIVATE
32       KEY" and the "DEK-Info" header.
33

RETURNS

35       On  success,  GNUTLS_E_SUCCESS  (0)  is  returned, otherwise a negative
36       error value.
37

REPORTING BUGS

39       Report bugs to <bugs@gnutls.org>.
40       Home page: https://www.gnutls.org
41
42
44       Copyright © 2001- Free Software Foundation, Inc., and others.
45       Copying and distribution of this file, with  or  without  modification,
46       are  permitted  in  any  medium  without royalty provided the copyright
47       notice and this notice are preserved.
48

SEE ALSO

50       The full documentation for gnutls is maintained as  a  Texinfo  manual.
51       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
52       visit
53
54       https://www.gnutls.org/manual/
55
56gnutls                              3.6.15gnutls_x509_privkey_import_openssl(3)
Impressum