1gnutls_x509_crt_set_issuer_dn_by_oid(g3n)utglnsutls_x509_crt_set_issuer_dn_by_oid(3)
2
3
4
6 gnutls_x509_crt_set_issuer_dn_by_oid - Set the Certificate request
7 issuer's distinguished name
8
10 #include <gnutls/x509.h>
11
12 int gnutls_x509_crt_set_issuer_dn_by_oid(gnutls_x509_crt_t crt, const
13 char * oid, unsigned int raw_flag, const void * name, unsigned int
14 sizeof_name);
15
17 gnutls_x509_crt_t crt
18 a certificate of type gnutls_x509_crt_t
19
20 const char * oid
21 holds an Object Identifier in a null terminated string
22
23 unsigned int raw_flag
24 must be 0, or 1 if the data are DER encoded
25
26 const void * name
27 a pointer to the name
28
29 unsigned int sizeof_name
30 holds the size of name
31
33 This function will set the part of the name of the Certificate issuer,
34 specified by the given OID. The input string should be ASCII or UTF-8
35 encoded.
36
37 Some helper macros with popular OIDs can be found in gnutls/x509.h With
38 this function you can only set the known OIDs. You can test for known
39 OIDs using gnutls_x509_dn_oid_known(). For OIDs that are not known (by
40 gnutls) you should properly DER encode your data, and call this func‐
41 tion with raw_flag set.
42
43 Normally you do not need to call this function, since the signing oper‐
44 ation will copy the signer's name as the issuer of the certificate.
45
47 On success, GNUTLS_E_SUCCESS is returned, otherwise a negative error
48 value.
49
51 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
52 http://www.gnu.org/software/gnutls/ General help using GNU software:
53 http://www.gnu.org/gethelp/
54
56 Copyright © 2008 Free Software Foundation.
57 Copying and distribution of this file, with or without modification,
58 are permitted in any medium without royalty provided the copyright
59 notice and this notice are preserved.
60
62 The full documentation for gnutls is maintained as a Texinfo manual.
63 If the info and gnutls programs are properly installed at your site,
64 the command
65
66 info gnutls
67
68 should give you access to the complete manual.
69
70
71
72gnutls 2.8g.n6utls_x509_crt_set_issuer_dn_by_oid(3)