summaryrefslogtreecommitdiff
path: root/doc/cha-cert-auth.texi
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-02-16 16:05:43 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-02-16 16:05:43 +0100
commit39b4dbd5decd49dfa8a8bbb1d7ae9e8ebdfb57de (patch)
treedb97ed746ed25ce6153635af859c09d11e17eaba /doc/cha-cert-auth.texi
parent4a7d0ec7a82b50d395d4215b3d84d55651a3f9fa (diff)
downloadgnutls-39b4dbd5decd49dfa8a8bbb1d7ae9e8ebdfb57de.tar.gz
Modified the trust_db API to avoid dependendance on a structure.
Diffstat (limited to 'doc/cha-cert-auth.texi')
-rw-r--r--doc/cha-cert-auth.texi28
1 files changed, 10 insertions, 18 deletions
diff --git a/doc/cha-cert-auth.texi b/doc/cha-cert-auth.texi
index 4b40b50dbc..56bc7f7043 100644
--- a/doc/cha-cert-auth.texi
+++ b/doc/cha-cert-auth.texi
@@ -312,30 +312,22 @@ The storage and verification functions may be used with the default
text file based back-end, or another back-end may be specified. That
should contain storage and retrieval functions as 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_store_commitment_func) (const char* db_name,
+ typedef int (*gnutls_tdb_store_func) (const char* db_name,
+ const char* host,
+ const char* service,
+ time_t expiration,
+ const gnutls_datum_t* pubkey);
+ typedef int (*gnutls_tdb_store_commitment_func) (const char* db_name,
const char* host,
const char* service,
time_t expiration,
gnutls_digest_algorithm_t halgo,
const gnutls_datum_t* hash);
- 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_store_commitment_func cstore;
- gnutls_trust_db_retr_func retrieve;
- @}
- trust_storage_st;
+ typedef int (*gnutls_tdb_retr_func) (const char* db_name,
+ const char* host,
+ const char* service,
+ const gnutls_datum_t *pubkey);
@end example
@node OpenPGP certificates