Blame doc/manpages/gnutls_x509_crq_set_dn_by_oid.3

Packit 549fdc
.\" DO NOT MODIFY THIS FILE!  It was generated by gdoc.
Packit 549fdc
.TH "gnutls_x509_crq_set_dn_by_oid" 3 "3.6.2" "gnutls" "gnutls"
Packit 549fdc
.SH NAME
Packit 549fdc
gnutls_x509_crq_set_dn_by_oid \- API function
Packit 549fdc
.SH SYNOPSIS
Packit 549fdc
.B #include <gnutls/x509.h>
Packit 549fdc
.sp
Packit 549fdc
.BI "int gnutls_x509_crq_set_dn_by_oid(gnutls_x509_crq_t " crq ", const char * " oid ", unsigned int " raw_flag ", const void * " data ", unsigned int " sizeof_data ");"
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 "const char * oid" 12
Packit 549fdc
holds an Object Identifier in a (0)\-terminated string
Packit 549fdc
.IP "unsigned int raw_flag" 12
Packit 549fdc
must be 0, or 1 if the data are DER encoded
Packit 549fdc
.IP "const void * data" 12
Packit 549fdc
a pointer to the input data
Packit 549fdc
.IP "unsigned int sizeof_data" 12
Packit 549fdc
holds the size of  \fIdata\fP 
Packit 549fdc
.SH "DESCRIPTION"
Packit 549fdc
This function will set the part of the name of the Certificate
Packit 549fdc
request subject, specified by the given OID.  The input string
Packit 549fdc
should be ASCII or UTF\-8 encoded.
Packit 549fdc
Packit 549fdc
Some helper macros with popular OIDs can be found in gnutls/x509.h
Packit 549fdc
With this function you can only set the known OIDs.  You can test
Packit 549fdc
for known OIDs using \fBgnutls_x509_dn_oid_known()\fP.  For OIDs that are
Packit 549fdc
not known (by gnutls) you should properly DER encode your data, and
Packit 549fdc
call this function with raw_flag set.
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