Debian Codegraph @

doc/functions/gnutls_x509_ext_import_proxy

raw
1
2
3
4
5 @deftypefun {int} {gnutls_x509_ext_import_proxy} (const gnutls_datum_t * @var{ext}, int * @var{pathlen}, char ** @var{policyLanguage}, char ** @var{policy}, size_t * @var{sizeof_policy})
6 @var{ext}: the DER encoded extension data
7
8 @var{pathlen}: pointer to output integer indicating path length (may be
9 NULL), non-negative error codes indicate a present pCPathLenConstraint
10 field and the actual value, -1 indicate that the field is absent.
11
12 @var{policyLanguage}: output variable with OID of policy language
13
14 @var{policy}: output variable with policy data
15
16 @var{sizeof_policy}: output variable with size of policy data
17
18 This function will return the information from a proxy certificate
19 extension. It reads the ProxyCertInfo X.509 extension (1.3.6.1.5.5.7.1.14).
20 The @code{policyLanguage} and @code{policy} values must be deinitialized using @code{gnutls_free()} after use.
21
22 @strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
23 negative error value.
24
25 @strong{Since:} 3.3.0
26 @end deftypefun