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, int indx, void * buf, size_t * sizeof_buf, unsigned  int  *
13       critical);
14

ARGUMENTS

16       gnutls_x509_crq_t crq
17                   should contain a gnutls_x509_crq_t structure
18
19       const char * oid
20                   holds an Object Identified in null terminated string
21
22       int indx    In  case  multiple  same OIDs exist in the extensions, this
23                   specifies which to send. Use zero to get the first one.
24
25       void * buf  a pointer to a structure to hold the name (may be null)
26
27       size_t * sizeof_buf
28                   initially holds the size of buf
29
30       unsigned int * critical
31                   will be non zero if the extension is marked as critical
32

DESCRIPTION

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

RETURNS

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

SINCE

44       2.8.0
45

REPORTING BUGS

47       Report   bugs   to    <bug-gnutls@gnu.org>.     GnuTLS    home    page:
48       http://www.gnu.org/software/gnutls/  General  help  using GNU software:
49       http://www.gnu.org/gethelp/
50
52       Copyright © 2008 Free Software Foundation.
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  info  and gnutls programs are properly installed at your site,
60       the command
61
62              info gnutls
63
64       should give you access to the complete manual.
65
66
67
68gnutls                             2.12.g6n.u1tls_x509_crq_get_extension_by_oid(3)
Impressum