Debian Codegraph @

doc/functions/gnutls_x509_crt_set_basic_constraints

raw
1
2
3
4
5 @deftypefun {int} {gnutls_x509_crt_set_basic_constraints} (gnutls_x509_crt_t @var{crt}, unsigned int @var{ca}, int @var{pathLenConstraint})
6 @var{crt}: a certificate of type @code{gnutls_x509_crt_t}
7
8 @var{ca}: true(1) or false(0). Depending on the Certificate authority status.
9
10 @var{pathLenConstraint}: non-negative error codes indicate maximum length of path,
11 and negative error codes indicate that the pathLenConstraints field should
12 not be present.
13
14 This function will set the basicConstraints certificate extension.
15
16 @strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
17 negative error value.
18 @end deftypefun