summaryrefslogtreecommitdiffstats
path: root/g10/tdbio.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-07-15 20:05:01 +0200
committerWerner Koch <wk@gnupg.org>1998-07-15 20:05:01 +0200
commit3c53ea75ced5879589287e63617b133adc237f05 (patch)
tree44cce123387f3e9eeba8f0518f886e330e7a46fa /g10/tdbio.h
parentsync (diff)
downloadgnupg2-3c53ea75ced5879589287e63617b133adc237f05.tar.xz
gnupg2-3c53ea75ced5879589287e63617b133adc237f05.zip
sync
Diffstat (limited to 'g10/tdbio.h')
-rw-r--r--g10/tdbio.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/g10/tdbio.h b/g10/tdbio.h
index 7229d7222..2d28131cd 100644
--- a/g10/tdbio.h
+++ b/g10/tdbio.h
@@ -42,7 +42,11 @@
struct trust_record {
int rectype;
- struct trust_record *next;
+ struct trust_record *next; /* help pointer to build lists in memory */
+ struct trust_record *help_pref;
+ struct trust_record *help_sig;
+ int mark;
+ ulong recnum;
union {
struct { /* version record: */
byte version; /* should be 1 */
@@ -72,7 +76,7 @@ struct trust_record {
struct { /* user id reord */
ulong lid; /* point back to the directory record */
ulong next; /* points to next user id record */
- ulong prefrec; /* recno of reference record */
+ ulong prefrec; /* recno of preference record */
ulong siglist; /* list of valid signatures (w/o self-sig)*/
byte namehash[20]; /* ripemd hash of the username */
} uid;
@@ -127,7 +131,7 @@ int tdbio_set_dbname( const char *new_dbname, int create );
const char *tdbio_get_dbname(void);
void tdbio_dump_record( ulong rnum, TRUSTREC *rec, FILE *fp );
int tdbio_read_record( ulong recnum, TRUSTREC *rec, int expected );
-int tdbio_write_record( ulong recnum, TRUSTREC *rec );
+int tdbio_write_record( TRUSTREC *rec );
ulong tdbio_new_recnum(void);
int tdbio_search_dir_record( PKT_public_key *pk, TRUSTREC *rec );
int tdbio_update_sigflag( ulong lid, int sigflag );