1gnutls_x509_crq_set_dn_by_oid(3)    gnutls    gnutls_x509_crq_set_dn_by_oid(3)
2
3
4

NAME

6       gnutls_x509_crq_set_dn_by_oid  - This function will set the Certificate
7       request subject's distinguished name
8

SYNOPSIS

10       #include <gnutls/x509.h>
11
12       int gnutls_x509_crq_set_dn_by_oid(gnutls_x509_crq_t crq, const  char  *
13       oid,   unsigned   int   raw_flag,  const  void  *  data,  unsigned  int
14       sizeof_data);
15

ARGUMENTS

17       gnutls_x509_crq_t crq
18                   should contain a gnutls_x509_crq_t structure
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 * data
27                   a pointer to the input data
28
29       unsigned int sizeof_data
30                   holds the size of data
31

DESCRIPTION

33       This function will set the part of the name of the Certificate  request
34       subject,  specified  by the given OID. The input string should be ASCII
35       or UTF-8 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       Returns 0 on success.
44

REPORTING BUGS

46       Report bugs to <bug-gnutls@gnu.org>.
47
49       Copyright © 2006 Free Software Foundation.
50       Permission is granted to make and distribute verbatim  copies  of  this
51       manual  provided  the  copyright  notice and this permission notice are
52       preserved on all copies.
53

SEE ALSO

55       The full documentation for gnutls is maintained as  a  Texinfo  manual.
56       If  the  info  and gnutls programs are properly installed at your site,
57       the command
58
59              info gnutls
60
61       should give you access to the complete manual.
62
63
64
65gnutls                               1.6.3    gnutls_x509_crq_set_dn_by_oid(3)
Impressum