1gnutls_x509_crt_set_key_purpose_oid(3g)nutlgsnutls_x509_crt_set_key_purpose_oid(3)
2
3
4

NAME

6       gnutls_x509_crt_set_key_purpose_oid  -  This function sets the Certifi‐
7       cate's key purpose OIDs
8

SYNOPSIS

10       #include <gnutls/x509.h>
11
12       int gnutls_x509_crt_set_key_purpose_oid(gnutls_x509_crt_t  cert,  const
13       void * oid, unsigned int critical);
14

ARGUMENTS

16       gnutls_x509_crt_t cert
17                   should contain a gnutls_x509_crt_t structure
18
19       const void * oid
20                   a pointer to a null terminated string that holds the OID
21
22       unsigned int critical
23                   Whether this extension will be critical or not
24

DESCRIPTION

26       This  function will set the key purpose OIDs of the Certificate.  These
27       are stored in the Extended Key  Usage  extension  (2.5.29.37)  See  the
28       GNUTLS_KP_* definitions for human readable names.
29
30       Subsequent calls to this function will append OIDs to the OID list.
31
32       On success 0 is returned.
33

REPORTING BUGS

35       Report bugs to <bug-gnutls@gnu.org>.
36
38       Copyright © 2006 Free Software Foundation.
39       Permission  is  granted  to make and distribute verbatim copies of this
40       manual provided the copyright notice and  this  permission  notice  are
41       preserved on all copies.
42

SEE ALSO

44       The  full  documentation  for gnutls is maintained as a Texinfo manual.
45       If the info and gnutls programs are properly installed  at  your  site,
46       the command
47
48              info gnutls
49
50       should give you access to the complete manual.
51
52
53
54gnutls                               1.6.g3nutls_x509_crt_set_key_purpose_oid(3)
Impressum