summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-11-11 09:01:39 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-11-11 13:38:12 +0100
commit8f76ca84d8f1783ac02c78416d5be5e9facd958f (patch)
tree52a29ebd8f4e820da7713f074ee2f11b69992b60
parent46280167dd850529e682834fc3257f854107a763 (diff)
downloadgnutls-8f76ca84d8f1783ac02c78416d5be5e9facd958f.tar.gz
gnutls_store_pubkey: document the default hosts format
-rw-r--r--lib/verify-tofu.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/verify-tofu.c b/lib/verify-tofu.c
index 788ca9ac80..3c953ba757 100644
--- a/lib/verify-tofu.c
+++ b/lib/verify-tofu.c
@@ -543,6 +543,13 @@ int store_commitment(const char *db_name, const char *host,
* the storage of entries. If it is NULL then the
* default file backend will be used.
*
+ * Unless an alternative @tdb is provided, the storage format is a textual format
+ * consisting of a line for each host with fields separated by '|'. The contents of
+ * the fields are a format-identifier which is set to 'g0', the hostname that the
+ * rest of the data applies to, the numeric port or host name, the expiration
+ * time in seconds since the epoch (0 for no expiration), and a base64
+ * encoding of the raw (DER) public key information (SPKI) of the peer.
+ *
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
*