Blame doc/functions/gnutls_pubkey_get_key_id

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@deftypefun {int} {gnutls_pubkey_get_key_id} (gnutls_pubkey_t @var{key}, unsigned int @var{flags}, unsigned char * @var{output_data}, size_t * @var{output_data_size})
Packit Service 4684c1
@var{key}: Holds the public key
Packit Service 4684c1
Packit Service 4684c1
@var{flags}: should be one of the flags from @code{gnutls_keyid_flags_t} 
Packit Service 4684c1
Packit Service 4684c1
@var{output_data}: will contain the key ID
Packit Service 4684c1
Packit Service 4684c1
@var{output_data_size}: holds the size of output_data (and will be
Packit Service 4684c1
replaced by the actual size of parameters)
Packit Service 4684c1
Packit Service 4684c1
This function will return a unique ID that depends on the public
Packit Service 4684c1
key parameters. This ID can be used in checking whether a
Packit Service 4684c1
certificate corresponds to the given public key.
Packit Service 4684c1
Packit Service 4684c1
If the buffer provided is not long enough to hold the output, then
Packit Service 4684c1
*output_data_size is updated and @code{GNUTLS_E_SHORT_MEMORY_BUFFER}  will
Packit Service 4684c1
be returned.  The output will normally be a SHA-1 hash output,
Packit Service 4684c1
which is 20 bytes.
Packit Service 4684c1
Packit Service 4684c1
@strong{Returns:} In case of failure a negative error code will be
Packit Service 4684c1
returned, and 0 on success.
Packit Service 4684c1
Packit Service 4684c1
@strong{Since:} 2.12.0
Packit Service 4684c1
@end deftypefun