1gnutls_x509_crq_get_attribute_info(3)gnutlsgnutls_x509_crq_get_attribute_info(3)
2
3
4

NAME

6       gnutls_x509_crq_get_attribute_info - Get attribute id
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int   gnutls_x509_crq_get_attribute_info(gnutls_x509_crq_t   cert,  int
12       indx, void * oid, size_t * sizeof_oid);
13

ARGUMENTS

15       gnutls_x509_crq_t cert
16                   should contain a gnutls_x509_crq_t structure
17
18       int indx    Specifies which attribute OID to send. Use zero to get  the
19                   first one.
20
21       void * oid  a pointer to a structure to hold the OID
22
23       size_t * sizeof_oid
24                   initially  holds  the  maximum size of oid, on return holds
25                   actual size of oid.
26

DESCRIPTION

28       This function will return the requested attribute OID in  the  certifi‐
29       cate,  and  the critical flag for it.  The attribute OID will be stored
30       as     a     string     in     the      provided      buffer.       Use
31       gnutls_x509_crq_get_attribute_data() to extract the data.
32
33       If  the  buffer  provided  is  not long enough to hold the output, then
34       *sizeof_oid  is  updated  and  GNUTLS_E_SHORT_MEMORY_BUFFER   will   be
35       returned.
36

RETURNS

38       On success, GNUTLS_E_SUCCESS is returned, otherwise a negative value in
39       case of an error.  If your have reached the  last  extension  available
40       GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned.
41

SINCE

43       2.8.0
44

REPORTING BUGS

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

SEE ALSO

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