Tizen 2.0 Release
[external/libgnutls26.git] / doc / manpages / gnutls_x509_crt_set_issuer_dn_by_oid.3
1 .\" DO NOT MODIFY THIS FILE!  It was generated by gdoc.
2 .TH "gnutls_x509_crt_set_issuer_dn_by_oid" 3 "2.12.6.1" "gnutls" "gnutls"
3 .SH NAME
4 gnutls_x509_crt_set_issuer_dn_by_oid \- API function
5 .SH SYNOPSIS
6 .B #include <gnutls/x509.h>
7 .sp
8 .BI "int gnutls_x509_crt_set_issuer_dn_by_oid(gnutls_x509_crt_t " crt ", const char * " oid ", unsigned int " raw_flag ", const void * " name ", unsigned int " sizeof_name ");"
9 .SH ARGUMENTS
10 .IP "gnutls_x509_crt_t crt" 12
11 a certificate of type \fBgnutls_x509_crt_t\fP
12 .IP "const char * oid" 12
13 holds an Object Identifier in a null terminated string
14 .IP "unsigned int raw_flag" 12
15 must be 0, or 1 if the data are DER encoded
16 .IP "const void * name" 12
17 a pointer to the name
18 .IP "unsigned int sizeof_name" 12
19 holds the size of \fIname\fP
20 .SH "DESCRIPTION"
21 This function will set the part of the name of the Certificate
22 issuer, specified by the given OID.  The input string should be
23 ASCII or UTF\-8 encoded.
24
25 Some helper macros with popular OIDs can be found in gnutls/x509.h
26 With this function you can only set the known OIDs. You can test
27 for known OIDs using \fBgnutls_x509_dn_oid_known()\fP. For OIDs that are
28 not known (by gnutls) you should properly DER encode your data,
29 and call this function with \fIraw_flag\fP set.
30
31 Normally you do not need to call this function, since the signing
32 operation will copy the signer's name as the issuer of the
33 certificate.
34 .SH "RETURNS"
35 On success, \fBGNUTLS_E_SUCCESS\fP is returned, otherwise a
36 negative error value.
37 .SH "REPORTING BUGS"
38 Report bugs to <bug-gnutls@gnu.org>.
39 GnuTLS home page: http://www.gnu.org/software/gnutls/
40 General help using GNU software: http://www.gnu.org/gethelp/
41 .SH COPYRIGHT
42 Copyright \(co 2008 Free Software Foundation.
43 .br
44 Copying and distribution of this file, with or without modification,
45 are permitted in any medium without royalty provided the copyright
46 notice and this notice are preserved.
47 .SH "SEE ALSO"
48 The full documentation for
49 .B gnutls
50 is maintained as a Texinfo manual.  If the
51 .B info
52 and
53 .B gnutls
54 programs are properly installed at your site, the command
55 .IP
56 .B info gnutls
57 .PP
58 should give you access to the complete manual.