1gnutls_x509_crq_get_extension_by_oid2g(n3ug)tnlustls_x509_crq_get_extension_by_oid2(3)
2
3
4

NAME

6       gnutls_x509_crq_get_extension_by_oid2 - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int  gnutls_x509_crq_get_extension_by_oid2(gnutls_x509_crq_t crq, const
12       char * oid, unsigned indx, gnutls_datum_t  *  output,  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       gnutls_datum_t * output
27                   will hold the allocated extension data
28
29       unsigned int * critical
30                   will be non-zero if the extension is marked as critical
31

DESCRIPTION

33       This function will return the extension specified by  the  OID  in  the
34       certificate.   The  extensions  will  be  returned  as  binary data DER
35       encoded, in the provided buffer.
36

RETURNS

38       On success, GNUTLS_E_SUCCESS (0)  is  returned,  otherwise  a  negative
39       error  code  in  case of an error.  If the certificate does not contain
40       the specified extension GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE  will  be
41       returned.
42

SINCE

44       3.3.8
45

REPORTING BUGS

47       Report bugs to <bugs@gnutls.org>.
48       Home page: http://www.gnutls.org
49
50
52       Copyright © 2001-2018 Free Software Foundation, Inc., and others.
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.g6n.u5tls_x509_crq_get_extension_by_oid2(3)
Impressum