From 9c08f32155f539d208f0addbc0e4f207a0bc7892 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 10 Feb 2012 15:50:49 +0100 Subject: updated documentation for back-end. --- doc/cha-cert-auth.texi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'doc') diff --git a/doc/cha-cert-auth.texi b/doc/cha-cert-auth.texi index a2656ad94d..d32be0daf0 100644 --- a/doc/cha-cert-auth.texi +++ b/doc/cha-cert-auth.texi @@ -293,6 +293,28 @@ shown in @ref{Simple client example with SSH-style certificate verification}. @showfuncdesc{gnutls_verify_stored_pubkey} @showfuncdesc{gnutls_store_pubkey} +The storage and verification functions may be used with the default +text file based backend, or another backend may be specified. Such +backend should contain a storage and a retrieval function. The format +of those functions is shown below. +@example + typedef int (*gnutls_trust_db_store_func) (const char* db_name, + const char* host, + const char* service, + time_t expiration, + const gnutls_datum_t* pubkey); + + typedef int (*gnutls_trust_db_retr_func) (const char* db_name, + const char* host, + const char* service, + const gnutls_datum_t *pubkey); + + typedef struct { + gnutls_trust_db_store_func store; + gnutls_trust_db_retr_func retrieve; + } trust_storage_st; +@end example + @node OpenPGP certificates @section @acronym{OpenPGP} certificates @cindex OpenPGP certificates -- cgit v1.2.1