Blame doc/functions/gnutls_store_commitment

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {int} {gnutls_store_commitment} (const char * @var{db_name}, gnutls_tdb_t @var{tdb}, const char * @var{host}, const char * @var{service}, gnutls_digest_algorithm_t @var{hash_algo}, const gnutls_datum_t * @var{hash}, time_t @var{expiration}, unsigned int @var{flags})
Packit aea12f
@var{db_name}: A file specifying the stored keys (use NULL for the default)
Packit aea12f
Packit aea12f
@var{tdb}: A storage structure or NULL to use the default
Packit aea12f
Packit aea12f
@var{host}: The peer's name
Packit aea12f
Packit aea12f
@var{service}: non-NULL if this key is specific to a service (e.g. http)
Packit aea12f
Packit aea12f
@var{hash_algo}: The hash algorithm type
Packit aea12f
Packit aea12f
@var{hash}: The raw hash
Packit aea12f
Packit aea12f
@var{expiration}: The expiration time (use 0 to disable expiration)
Packit aea12f
Packit aea12f
@var{flags}: should be 0 or @code{GNUTLS_SCOMMIT_FLAG_ALLOW_BROKEN} .
Packit aea12f
Packit aea12f
This function will store the provided hash commitment to
Packit aea12f
the list of stored public keys. The key with the given
Packit aea12f
hash will be considered valid until the provided expiration time.
Packit aea12f
Packit aea12f
The  @code{tdb} variable if non-null specifies a custom backend for
Packit aea12f
the storage of entries. If it is NULL then the
Packit aea12f
default file backend will be used.
Packit aea12f
Packit aea12f
Note that this function is not thread safe with the default backend.
Packit aea12f
Packit aea12f
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
Packit aea12f
negative error value.
Packit aea12f
Packit aea12f
@strong{Since:} 3.0
Packit aea12f
@end deftypefun