1gnutls_x509_crt_set_policy(3)       gnutls       gnutls_x509_crt_set_policy(3)
2
3
4

NAME

6       gnutls_x509_crt_set_policy - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int   gnutls_x509_crt_set_policy(gnutls_x509_crt_t  crt,  const  struct
12       gnutls_x509_policy_st * policy, unsigned int critical);
13

ARGUMENTS

15       gnutls_x509_crt_t crt
16                   should contain a gnutls_x509_crt_t structure
17
18       const struct gnutls_x509_policy_st * policy
19                   A pointer to a policy structure.
20
21       unsigned int critical
22                   use non-zero if the extension is marked as critical
23

DESCRIPTION

25       This function will set the certificate  policy  extension  (2.5.29.32).
26       Multiple calls to this function append a new policy.
27
28       Note  the  maximum  text  size  for  the  qualifier  GNUTLS_X509_QUALI‐
29       FIER_NOTICE  is  200  characters.  This   function   will   fail   with
30       GNUTLS_E_INVALID_REQUEST if this is exceeded.
31

RETURNS

33       On  success,  GNUTLS_E_SUCCESS  (0)  is  returned, otherwise a negative
34       error value.
35

SINCE

37       3.1.5
38

REPORTING BUGS

40       Report bugs to <bugs@gnutls.org>.
41       Home page: http://www.gnutls.org
42
43
45       Copyright © 2001-2014 Free Software Foundation, Inc..
46       Copying and distribution of this file, with  or  without  modification,
47       are  permitted  in  any  medium  without royalty provided the copyright
48       notice and this notice are preserved.
49

SEE ALSO

51       The full documentation for gnutls is maintained as  a  Texinfo  manual.
52       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
53       visit
54
55       http://www.gnutls.org/manual/
56
57gnutls                              3.3.29       gnutls_x509_crt_set_policy(3)
Impressum