1gnutls_x509_crq_set_attribute_by_oid(g3n)utglnsutls_x509_crq_set_attribute_by_oid(3)
2
3
4
6 gnutls_x509_crq_set_attribute_by_oid - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_crq_set_attribute_by_oid(gnutls_x509_crq_t crq, const
12 char * oid, void * buf, size_t buf_size);
13
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 a null-terminated string
20
21 void * buf a pointer to a structure that holds the attribute data
22
23 size_t buf_size
24 holds the size of buf
25
27 This function will set the attribute in the certificate request speci‐
28 fied by the given Object ID. The provided attribute must be be DER en‐
29 coded.
30
31 Attributes in a certificate request is an optional set of data appended
32 to the request. Their interpretation depends on the CA policy.
33
35 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative er‐
36 ror value.
37
39 Report bugs to <bugs@gnutls.org>.
40 Home page: https://www.gnutls.org
41
42
44 Copyright © 2001-2023 Free Software Foundation, Inc., and others.
45 Copying and distribution of this file, with or without modification,
46 are permitted in any medium without royalty provided the copyright no‐
47 tice and this notice are preserved.
48
50 The full documentation for gnutls is maintained as a Texinfo manual.
51 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
52 visit
53
54 https://www.gnutls.org/manual/
55
56gnutls 3.8g.n2utls_x509_crq_set_attribute_by_oid(3)