Imported Upstream version 3.3.5
[platform/upstream/gnutls.git] / doc / manpages / gnutls_x509_crq_set_attribute_by_oid.3
1 .\" DO NOT MODIFY THIS FILE!  It was generated by gdoc.
2 .TH "gnutls_x509_crq_set_attribute_by_oid" 3 "3.3.4" "gnutls" "gnutls"
3 .SH NAME
4 gnutls_x509_crq_set_attribute_by_oid \- API function
5 .SH SYNOPSIS
6 .B #include <gnutls/x509.h>
7 .sp
8 .BI "int gnutls_x509_crq_set_attribute_by_oid(gnutls_x509_crq_t " crq ", const char * " oid ", void * " buf ", size_t " buf_size ");"
9 .SH ARGUMENTS
10 .IP "gnutls_x509_crq_t crq" 12
11 should contain a \fBgnutls_x509_crq_t\fP structure
12 .IP "const char * oid" 12
13 holds an Object Identifier in a null\-terminated string
14 .IP "void * buf" 12
15 a pointer to a structure that holds the attribute data
16 .IP "size_t buf_size" 12
17 holds the size of  \fIbuf\fP 
18 .SH "DESCRIPTION"
19 This function will set the attribute in the certificate request
20 specified by the given Object ID. The provided attribute must be be DER
21 encoded.
22
23 Attributes in a certificate request is an optional set of data
24 appended to the request. Their interpretation depends on the CA policy.
25 .SH "RETURNS"
26 On success, \fBGNUTLS_E_SUCCESS\fP (0) is returned, otherwise a
27 negative error value.
28 .SH "REPORTING BUGS"
29 Report bugs to <bugs@gnutls.org>.
30 .br
31 Home page: http://www.gnutls.org
32
33 .SH COPYRIGHT
34 Copyright \(co 2001-2014 Free Software Foundation, Inc..
35 .br
36 Copying and distribution of this file, with or without modification,
37 are permitted in any medium without royalty provided the copyright
38 notice and this notice are preserved.
39 .SH "SEE ALSO"
40 The full documentation for
41 .B gnutls
42 is maintained as a Texinfo manual.
43 If the /usr/share/doc/gnutls/
44 directory does not contain the HTML form visit
45 .B
46 .IP http://www.gnutls.org/manual/
47 .PP