1
.\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
2
.TH "gnutls_pubkey_get_key_id" 3 "3.0.9" "gnutls" "gnutls"
4
gnutls_pubkey_get_key_id \- API function
6
.B #include <gnutls/abstract.h>
8
.BI "int gnutls_pubkey_get_key_id(gnutls_pubkey_t " key ", unsigned int " flags ", unsigned char * " output_data ", size_t * " output_data_size ");"
10
.IP "gnutls_pubkey_t key" 12
12
.IP "unsigned int flags" 12
14
.IP "unsigned char * output_data" 12
15
will contain the key ID
16
.IP "size_t * output_data_size" 12
17
holds the size of output_data (and will be
18
replaced by the actual size of parameters)
20
This function will return a unique ID the depends on the public
21
key parameters. This ID can be used in checking whether a
22
certificate corresponds to the given public key.
24
If the buffer provided is not long enough to hold the output, then
25
*output_data_size is updated and \fBGNUTLS_E_SHORT_MEMORY_BUFFER\fP will
26
be returned. The output will normally be a SHA\-1 hash output,
29
In case of failure a negative error code will be
30
returned, and 0 on success.
34
Report bugs to <bug-gnutls@gnu.org>.
35
GnuTLS home page: http://www.gnu.org/software/gnutls/
36
General help using GNU software: http://www.gnu.org/gethelp/
38
Copyright \(co 2011 Free Software Foundation.
40
Copying and distribution of this file, with or without modification,
41
are permitted in any medium without royalty provided the copyright
42
notice and this notice are preserved.
44
The full documentation for
46
is maintained as a Texinfo manual. If the
50
programs are properly installed at your site, the command
54
should give you access to the complete manual.