Blame doc/manpages/gnutls_x509_privkey_import2.3

Packit 549fdc
.\" DO NOT MODIFY THIS FILE!  It was generated by gdoc.
Packit 549fdc
.TH "gnutls_x509_privkey_import2" 3 "3.6.2" "gnutls" "gnutls"
Packit 549fdc
.SH NAME
Packit 549fdc
gnutls_x509_privkey_import2 \- API function
Packit 549fdc
.SH SYNOPSIS
Packit 549fdc
.B #include <gnutls/x509.h>
Packit 549fdc
.sp
Packit 549fdc
.BI "int gnutls_x509_privkey_import2(gnutls_x509_privkey_t " key ", const gnutls_datum_t * " data ", gnutls_x509_crt_fmt_t " format ", const char * " password ", unsigned int " flags ");"
Packit 549fdc
.SH ARGUMENTS
Packit 549fdc
.IP "gnutls_x509_privkey_t key" 12
Packit 549fdc
The data to store the parsed key
Packit 549fdc
.IP "const gnutls_datum_t * data" 12
Packit 549fdc
The DER or PEM encoded key.
Packit 549fdc
.IP "gnutls_x509_crt_fmt_t format" 12
Packit 549fdc
One of DER or PEM
Packit 549fdc
.IP "const char * password" 12
Packit 549fdc
A password (optional)
Packit 549fdc
.IP "unsigned int flags" 12
Packit 549fdc
an ORed sequence of gnutls_pkcs_encrypt_flags_t
Packit 549fdc
.SH "DESCRIPTION"
Packit 549fdc
This function will import the given DER or PEM encoded key, to 
Packit 549fdc
the native \fBgnutls_x509_privkey_t\fP format, irrespective of the
Packit 549fdc
input format. The input format is auto\-detected.
Packit 549fdc
Packit 549fdc
The supported formats are basic unencrypted key, PKCS8, PKCS12,
Packit 549fdc
and the openssl format.
Packit 549fdc
Packit 549fdc
If the provided key is encrypted but no password was given, then
Packit 549fdc
\fBGNUTLS_E_DECRYPTION_FAILED\fP is returned. Since GnuTLS 3.4.0 this
Packit 549fdc
function will utilize the PIN callbacks if any.
Packit 549fdc
.SH "RETURNS"
Packit 549fdc
On success, \fBGNUTLS_E_SUCCESS\fP (0) is returned, otherwise a
Packit 549fdc
negative error value.
Packit 549fdc
.SH "REPORTING BUGS"
Packit 549fdc
Report bugs to <bugs@gnutls.org>.
Packit 549fdc
.br
Packit 549fdc
Home page: http://www.gnutls.org
Packit 549fdc
Packit 549fdc
.SH COPYRIGHT
Packit 549fdc
Copyright \(co 2001-2018 Free Software Foundation, Inc., and others.
Packit 549fdc
.br
Packit 549fdc
Copying and distribution of this file, with or without modification,
Packit 549fdc
are permitted in any medium without royalty provided the copyright
Packit 549fdc
notice and this notice are preserved.
Packit 549fdc
.SH "SEE ALSO"
Packit 549fdc
The full documentation for
Packit 549fdc
.B gnutls
Packit 549fdc
is maintained as a Texinfo manual.
Packit 549fdc
If the /usr/share/doc/gnutls/
Packit 549fdc
directory does not contain the HTML form visit
Packit 549fdc
.B
Packit 549fdc
.IP http://www.gnutls.org/manual/
Packit 549fdc
.PP