1gnutls_x509_crt_set_proxy_dn(3) gnutls gnutls_x509_crt_set_proxy_dn(3)
2
3
4
6 gnutls_x509_crt_set_proxy_dn - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_crt_set_proxy_dn(gnutls_x509_crt_t crt,
12 gnutls_x509_crt_t eecrt, unsigned int raw_flag, const void * name,
13 unsigned int sizeof_name);
14
16 gnutls_x509_crt_t crt
17 a gnutls_x509_crt_t structure with the new proxy cert
18
19 gnutls_x509_crt_t eecrt
20 the end entity certificate that will be issuing the proxy
21
22 unsigned int raw_flag
23 must be 0, or 1 if the CN is DER encoded
24
25 const void * name
26 a pointer to the CN name, may be NULL (but MUST then be
27 added later)
28
29 unsigned int sizeof_name
30 holds the size of name
31
33 This function will set the subject in crt to the end entity's eecrt
34 subject name, and add a single Common Name component name of size
35 sizeof_name. This corresponds to the required proxy certificate naming
36 style. Note that if name is NULL, you MUST set it later by using
37 gnutls_x509_crt_set_dn_by_oid() or similar.
38
40 On success, GNUTLS_E_SUCCESS is returned, otherwise a negative error
41 value.
42
44 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
45 http://www.gnu.org/software/gnutls/ General help using GNU software:
46 http://www.gnu.org/gethelp/
47
49 Copyright © 2008 Free Software Foundation.
50 Copying and distribution of this file, with or without modification,
51 are permitted in any medium without royalty provided the copyright
52 notice and this notice are preserved.
53
55 The full documentation for gnutls is maintained as a Texinfo manual.
56 If the info and gnutls programs are properly installed at your site,
57 the command
58
59 info gnutls
60
61 should give you access to the complete manual.
62
63
64
65gnutls 2.12.6.1 gnutls_x509_crt_set_proxy_dn(3)