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 - API function
7

SYNOPSIS

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

ARGUMENTS

16       gnutls_x509_crq_t crq
17                   should contain a gnutls_x509_crq_t structure
18
19       const char * oid
20                   holds an Object Identifier in a (0)-terminated string
21
22       unsigned int raw_flag
23                   must be 0, or 1 if the data are DER encoded
24
25       const void * data
26                   a pointer to the input data
27
28       unsigned int sizeof_data
29                   holds the size of  data
30

DESCRIPTION

32       This  function will set the part of the name of the Certificate request
33       subject, specified by the given OID.  The input string should be  ASCII
34       or UTF-8 encoded.
35
36       Some helper macros with popular OIDs can be found in gnutls/x509.h With
37       this function you can only set the known OIDs.  You can test for  known
38       OIDs using gnutls_x509_dn_oid_known().  For OIDs that are not known (by
39       gnutls) you should properly DER encode your data, and call  this  func‐
40       tion with raw_flag set.
41

RETURNS

43       On  success,  GNUTLS_E_SUCCESS  (0)  is  returned, otherwise a negative
44       error value.
45

REPORTING BUGS

47       Report bugs to <bugs@gnutls.org>.
48       Home page: http://www.gnutls.org
49
50
52       Copyright © 2001-2014 Free Software Foundation, Inc..
53       Copying and distribution of this file, with  or  without  modification,
54       are  permitted  in  any  medium  without royalty provided the copyright
55       notice and this notice are preserved.
56

SEE ALSO

58       The full documentation for gnutls is maintained as  a  Texinfo  manual.
59       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
60       visit
61
62       http://www.gnutls.org/manual/
63
64gnutls                              3.3.29    gnutls_x509_crq_set_dn_by_oid(3)
Impressum