1gnutls_x509_crt_set_extension_by_oid(g3n)utglnsutls_x509_crt_set_extension_by_oid(3)
2
3
4

NAME

6       gnutls_x509_crt_set_extension_by_oid  - This function will set an arbi‐
7       trary extension
8

SYNOPSIS

10       #include <gnutls/x509.h>
11
12       int gnutls_x509_crt_set_extension_by_oid(gnutls_x509_crt_t  crt,  const
13       char  *  oid,  const void * buf, size_t sizeof_buf, unsigned int criti‐
14       cal);
15

ARGUMENTS

17       gnutls_x509_crt_t crt
18                   should contain a gnutls_x509_crt_t structure
19
20       const char * oid
21                   holds an Object Identified in null terminated string
22
23       const void * buf
24                   a pointer to a DER encoded data
25
26       size_t sizeof_buf
27                   holds the size of buf
28
29       unsigned int critical
30                   should be non zero if the extension  is  to  be  marked  as
31                   critical
32

DESCRIPTION

34       This  function  will set an the extension, by the specified OID, in the
35       certificate.  The extension data should be binary data DER encoded.
36
37       Returns 0 on success and a negative value in case of an error.
38

REPORTING BUGS

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

SEE ALSO

49       The full documentation for gnutls is maintained as  a  Texinfo  manual.
50       If  the  info  and gnutls programs are properly installed at your site,
51       the command
52
53              info gnutls
54
55       should give you access to the complete manual.
56
57
58
59gnutls                               1.6g.n3utls_x509_crt_set_extension_by_oid(3)
Impressum