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

RETURNS

40       On  success,  GNUTLS_E_SUCCESS  (zero)  is returned, otherwise an error
41       code is returned. If the certificate does  not  contain  the  specified
42       extension GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned.
43

REPORTING BUGS

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

SEE ALSO

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