1gnutls_pubkey_set_key_usage(3) gnutls gnutls_pubkey_set_key_usage(3)
2
3
4
6 gnutls_pubkey_set_key_usage - API function
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_pubkey_set_key_usage(gnutls_pubkey_t key, unsigned int
12 usage);
13
15 gnutls_pubkey_t key
16 a certificate of type gnutls_x509_crt_t
17
18 unsigned int usage
19 an ORed sequence of the GNUTLS_KEY_* elements.
20
22 This function will set the key usage flags of the public key. This is
23 only useful if the key is to be exported to a certificate or certifi‐
24 cate request.
25
27 On success, GNUTLS_E_SUCCESS is returned, otherwise a negative error
28 value.
29
31 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
32 http://www.gnu.org/software/gnutls/ General help using GNU software:
33 http://www.gnu.org/gethelp/
34
36 Copyright © 2008 Free Software Foundation.
37 Copying and distribution of this file, with or without modification,
38 are permitted in any medium without royalty provided the copyright
39 notice and this notice are preserved.
40
42 The full documentation for gnutls is maintained as a Texinfo manual.
43 If the info and gnutls programs are properly installed at your site,
44 the command
45
46 info gnutls
47
48 should give you access to the complete manual.
49
50
51
52gnutls 2.12.6.1 gnutls_pubkey_set_key_usage(3)