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

RETURNS

44       On success, GNUTLS_E_SUCCESS is returned, otherwise  a  negative  error
45       value.
46

REPORTING BUGS

48       Report    bugs    to    <bug-gnutls@gnu.org>.     GnuTLS   home   page:
49       http://www.gnu.org/software/gnutls/ General help  using  GNU  software:
50       http://www.gnu.org/gethelp/
51
53       Copyright © 2008 Free Software Foundation.
54       Copying  and  distribution  of this file, with or without modification,
55       are permitted in any medium  without  royalty  provided  the  copyright
56       notice and this notice are preserved.
57

SEE ALSO

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