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 - API function
7

SYNOPSIS

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

ARGUMENTS

15       gnutls_x509_crq_t crq
16                   should contain a gnutls_x509_crq_t type
17
18       unsigned indx
19                   Specifies which attribute number to get. Use (0) to get the
20                   first one.
21
22       void * oid  a pointer to a structure to hold the OID
23
24       size_t * sizeof_oid
25                   initially  holds the maximum size of  oid , on return holds
26                   actual size of  oid .
27

DESCRIPTION

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

RETURNS

39       On  success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative er‐
40       ror code in case of an error.  If your have reached the last  extension
41       available GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned.
42

SINCE

44       2.8.0
45

REPORTING BUGS

47       Report bugs to <bugs@gnutls.org>.
48       Home page: https://www.gnutls.org
49
50
52       Copyright © 2001- 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  no‐
55       tice 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       https://www.gnutls.org/manual/
63
64gnutls                               3.7.6gnutls_x509_crq_get_attribute_info(3)
Impressum