Blame doc/functions/gnutls_x509_privkey_get_key_id

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@deftypefun {int} {gnutls_x509_privkey_get_key_id} (gnutls_x509_privkey_t @var{key}, unsigned int @var{flags}, unsigned char * @var{output_data}, size_t * @var{output_data_size})
Packit Service 4684c1
@var{key}: a 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 key
Packit Service 4684c1
parameters. This ID can be used in checking whether a certificate
Packit Service 4684c1
corresponds to the given key.
Packit Service 4684c1
Packit Service 4684c1
If the buffer provided is not long enough to hold the output, then
Packit Service 4684c1
* @code{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:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
Packit Service 4684c1
negative error value.
Packit Service 4684c1
@end deftypefun