1gnutls_x509_ext_import_proxy(3) gnutls gnutls_x509_ext_import_proxy(3)
2
3
4
6 gnutls_x509_ext_import_proxy - API function
7
9 #include <gnutls/x509-ext.h>
10
11 int gnutls_x509_ext_import_proxy(const gnutls_datum_t * ext, int *
12 pathlen, char ** policyLanguage, char ** policy, size_t * sizeof_pol‐
13 icy);
14
16 const gnutls_datum_t * ext
17 the DER encoded extension data
18
19 int * pathlen
20 pointer to output integer indicating path length (may be
21 NULL), non-negative error codes indicate a present pCPath‐
22 LenConstraint field and the actual value, -1 indicate that
23 the field is absent.
24
25 char ** policyLanguage
26 output variable with OID of policy language
27
28 char ** policy
29 output variable with policy data
30
31 size_t * sizeof_policy
32 output variable with size of policy data
33
35 This function will return the information from a proxy certificate ex‐
36 tension. It reads the ProxyCertInfo X.509 extension
37 (1.3.6.1.5.5.7.1.14). The policyLanguage and policy values must be
38 deinitialized using gnutls_free() after use.
39
41 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative er‐
42 ror value.
43
45 3.3.0
46
48 Report bugs to <bugs@gnutls.org>.
49 Home page: https://www.gnutls.org
50
51
53 Copyright © 2001- Free Software Foundation, Inc., and others.
54 Copying and distribution of this file, with or without modification,
55 are permitted in any medium without royalty provided the copyright no‐
56 tice and this notice are preserved.
57
59 The full documentation for gnutls is maintained as a Texinfo manual.
60 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
61 visit
62
63 https://www.gnutls.org/manual/
64
65gnutls 3.7.2 gnutls_x509_ext_import_proxy(3)