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 type 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
34 eecrt subject name, and add a single Common Name component name of
35 size sizeof_name . This corresponds to the required proxy certificate
36 naming style. Note that if name is NULL, you MUST set it later by
37 using gnutls_x509_crt_set_dn_by_oid() or similar.
38
40 On success, GNUTLS_E_SUCCESS [22m(0) is returned, otherwise a negative
41 error value.
42
44 Report bugs to <bugs@gnutls.org>.
45 Home page: https://www.gnutls.org
46
47
49 Copyright © 2001- Free Software Foundation, Inc., and others.
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 /usr/share/doc/gnutls/ directory does not contain the HTML form
57 visit
58
59 https://www.gnutls.org/manual/
60
61gnutls 3.6.15 gnutls_x509_crt_set_proxy_dn(3)