1gnutls_x509_crt_get_extension_by_oid(g3n)utglnsutls_x509_crt_get_extension_by_oid(3)
2
3
4

NAME

6       gnutls_x509_crt_get_extension_by_oid - This function returns the speci‐
7       fied extension
8

SYNOPSIS

10       #include <gnutls/x509.h>
11
12       int gnutls_x509_crt_get_extension_by_oid(gnutls_x509_crt_t cert,  const
13       char  *  oid, int indx, void * buf, size_t * sizeof_buf, unsigned int *
14       critical);
15

ARGUMENTS

17       gnutls_x509_crt_t cert
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       int indx    In case multiple same OIDs exist in  the  extensions,  this
24                   specifies which to send. Use zero to get the first one.
25
26       void * buf  a pointer to a structure to hold the name (may be null)
27
28       size_t * sizeof_buf
29                   initially holds the size of buf
30
31       unsigned int * critical
32                   will be non zero if the extension is marked as critical
33

DESCRIPTION

35       This  function  will  return  the extension specified by the OID in the
36       certificate.  The extensions  will  be  returned  as  binary  data  DER
37       encoded, in the provided buffer.
38
39       A negative value may be returned in case of parsing error.  If the cer‐
40       tificate    does    not     contain     the     specified     extension
41       GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned.
42

REPORTING BUGS

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

SEE ALSO

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