summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-02-10 15:50:49 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-02-10 15:50:49 +0100
commit9c08f32155f539d208f0addbc0e4f207a0bc7892 (patch)
treea121aa070194e177f6bd7a820b227fc47235d2f7 /doc
parent79285ef8be4a90574e446314685de09a78b9208d (diff)
downloadgnutls-9c08f32155f539d208f0addbc0e4f207a0bc7892.tar.gz
updated documentation for back-end.
Diffstat (limited to 'doc')
-rw-r--r--doc/cha-cert-auth.texi22
1 files changed, 22 insertions, 0 deletions
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