Blame doc/functions/gnutls_x509_crt_set_policy

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {int} {gnutls_x509_crt_set_policy} (gnutls_x509_crt_t @var{crt}, const struct gnutls_x509_policy_st * @var{policy}, unsigned int @var{critical})
Packit aea12f
@var{crt}: should contain a @code{gnutls_x509_crt_t}  type
Packit aea12f
Packit aea12f
@var{policy}: A pointer to a policy
Packit aea12f
Packit aea12f
@var{critical}: use non-zero if the extension is marked as critical
Packit aea12f
Packit aea12f
This function will set the certificate policy extension (2.5.29.32).
Packit aea12f
Multiple calls to this function append a new policy.
Packit aea12f
Packit aea12f
Note the maximum text size for the qualifier @code{GNUTLS_X509_QUALIFIER_NOTICE} 
Packit aea12f
is 200 characters. This function will fail with @code{GNUTLS_E_INVALID_REQUEST} 
Packit aea12f
if this is exceeded.
Packit aea12f
Packit aea12f
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
Packit aea12f
negative error value.
Packit aea12f
Packit aea12f
@strong{Since:} 3.1.5
Packit aea12f
@end deftypefun