1gnutls_x509_crq_get_extension_by_oid(g3n)utglnsutls_x509_crq_get_extension_by_oid(3)
2
3
4

NAME

6       gnutls_x509_crq_get_extension_by_oid - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int  gnutls_x509_crq_get_extension_by_oid(gnutls_x509_crq_t  crq, const
12       char * oid, unsigned indx, void * buf, size_t * buf_size, unsigned  int
13       * critical);
14

ARGUMENTS

16       gnutls_x509_crq_t crq
17                   should contain a gnutls_x509_crq_t type
18
19       const char * oid
20                   holds an Object Identifier in a null terminated string
21
22       unsigned indx
23                   In  case  multiple  same OIDs exist in the extensions, this
24                   specifies which to get. Use (0) 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 * buf_size
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 (0)  is  returned,  otherwise  a  negative
41       error  code  in  case of an error.  If the certificate does not contain
42       the specified extension GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE  will  be
43       returned.
44

SINCE

46       2.8.0
47

REPORTING BUGS

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

SEE ALSO

60       The  full  documentation  for gnutls is maintained as a Texinfo manual.
61       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
62       visit
63
64       https://www.gnutls.org/manual/
65
66gnutls                              3.6.g1n3utls_x509_crq_get_extension_by_oid(3)
Impressum