1gnutls_x509_crq_get_attribute_by_oid(g3n)utglnsutls_x509_crq_get_attribute_by_oid(3)
2
3
4

NAME

6       gnutls_x509_crq_get_attribute_by_oid - API function
7

SYNOPSIS

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

ARGUMENTS

15       gnutls_x509_crq_t crq
16                   should contain a gnutls_x509_crq_t type
17
18       const char * oid
19                   holds an Object Identifier in null-terminated string
20
21       unsigned indx
22                   In case multiple same OIDs exist  in  the  attribute  list,
23                   this specifies which to get, use (0) to get the first one
24
25       void * buf  a pointer to a structure to hold the attribute data (may be
26                   NULL)
27
28       size_t * buf_size
29                   initially holds the size of  buf
30

DESCRIPTION

32       This function will return the  attribute  in  the  certificate  request
33       specified by the given Object ID.  The attribute will be DER encoded.
34
35       Attributes in a certificate request is an optional set of data appended
36       to the request. Their interpretation depends on the CA policy.
37

RETURNS

39       On success, GNUTLS_E_SUCCESS (0)  is  returned,  otherwise  a  negative
40       error value.
41

REPORTING BUGS

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

SEE ALSO

54       The  full  documentation  for gnutls is maintained as a Texinfo manual.
55       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
56       visit
57
58       https://www.gnutls.org/manual/
59
60gnutls                              3.6.g1n3utls_x509_crq_get_attribute_by_oid(3)
Impressum