Blame doc/manpages/gnutls_x509_crq_privkey_sign.3

Packit 549fdc
.\" DO NOT MODIFY THIS FILE!  It was generated by gdoc.
Packit 549fdc
.TH "gnutls_x509_crq_privkey_sign" 3 "3.6.2" "gnutls" "gnutls"
Packit 549fdc
.SH NAME
Packit 549fdc
gnutls_x509_crq_privkey_sign \- API function
Packit 549fdc
.SH SYNOPSIS
Packit 549fdc
.B #include <gnutls/abstract.h>
Packit 549fdc
.sp
Packit 549fdc
.BI "int gnutls_x509_crq_privkey_sign(gnutls_x509_crq_t " crq ", gnutls_privkey_t " key ", gnutls_digest_algorithm_t " dig ", unsigned int " flags ");"
Packit 549fdc
.SH ARGUMENTS
Packit 549fdc
.IP "gnutls_x509_crq_t crq" 12
Packit 549fdc
should contain a \fBgnutls_x509_crq_t\fP type
Packit 549fdc
.IP "gnutls_privkey_t key" 12
Packit 549fdc
holds a private key
Packit 549fdc
.IP "gnutls_digest_algorithm_t dig" 12
Packit 549fdc
The message digest to use, i.e., \fBGNUTLS_DIG_SHA1\fP
Packit 549fdc
.IP "unsigned int flags" 12
Packit 549fdc
must be 0
Packit 549fdc
.SH "DESCRIPTION"
Packit 549fdc
This function will sign the certificate request with a private key.
Packit 549fdc
This must be the same key as the one used in
Packit 549fdc
\fBgnutls_x509_crt_set_key()\fP since a certificate request is self
Packit 549fdc
signed.
Packit 549fdc
Packit 549fdc
This must be the last step in a certificate request generation
Packit 549fdc
since all the previously set parameters are now signed.
Packit 549fdc
Packit 549fdc
A known limitation of this function is, that a newly\-signed request will not
Packit 549fdc
be fully functional (e.g., for signature verification), until it
Packit 549fdc
is exported an re\-imported.
Packit 549fdc
Packit 549fdc
After GnuTLS 3.6.1 the value of  \fIdig\fP may be \fBGNUTLS_DIG_UNKNOWN\fP,
Packit 549fdc
and in that case, a suitable but reasonable for the key algorithm will be selected.
Packit 549fdc
.SH "RETURNS"
Packit 549fdc
\fBGNUTLS_E_SUCCESS\fP on success, otherwise a negative error code.
Packit 549fdc
\fBGNUTLS_E_ASN1_VALUE_NOT_FOUND\fP is returned if you didn't set all
Packit 549fdc
information in the certificate request (e.g., the version using
Packit 549fdc
\fBgnutls_x509_crq_set_version()\fP).
Packit 549fdc
.SH "SINCE"
Packit 549fdc
2.12.0
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