~ubuntu-branches/ubuntu/oneiric/gnupg2/oneiric-updates

« back to all changes in this revision

Viewing changes to g10/trustdb.h

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-10-04 10:25:53 UTC
  • mfrom: (5.1.15 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081004102553-fv62pp8dsitxli47
Tags: 2.0.9-3.1
* Non-maintainer upload.
* agent/gpg-agent.c: Deinit the threading library before exec'ing
  the command to run in --daemon mode. And because that still doesn't
  restore the sigprocmask, do that manually. Closes: #499569

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* trustdb.h - Trust database
2
 
 * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
3
 
 *                                             Free Software Foundation, Inc.
 
2
 * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
3
 *               2005 Free Software Foundation, Inc.
4
4
 *
5
5
 * This file is part of GnuPG.
6
6
 *
7
7
 * GnuPG is free software; you can redistribute it and/or modify
8
8
 * it under the terms of the GNU General Public License as published by
9
 
 * the Free Software Foundation; either version 2 of the License, or
 
9
 * the Free Software Foundation; either version 3 of the License, or
10
10
 * (at your option) any later version.
11
11
 *
12
12
 * GnuPG is distributed in the hope that it will be useful,
15
15
 * GNU General Public License for more details.
16
16
 *
17
17
 * You should have received a copy of the GNU General Public License
18
 
 * along with this program; if not, write to the Free Software
19
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
 
18
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
20
19
 */
21
20
 
22
21
#ifndef G10_TRUSTDB_H
23
22
#define G10_TRUSTDB_H
24
23
 
25
 
 
26
24
/* Trust values must be sorted in ascending order */
27
25
#define TRUST_MASK       15
28
26
#define TRUST_UNKNOWN     0  /* o: not yet calculated/assigned */
38
36
#define TRUST_FLAG_DISABLED 128 /* d: key/uid disabled */
39
37
#define TRUST_FLAG_PENDING_CHECK 256 /* a check-trustdb is pending */
40
38
 
 
39
#define NAMEHASH_HASH DIGEST_ALGO_RMD160
 
40
#define NAMEHASH_LEN  20
 
41
 
41
42
/*-- trustdb.c --*/
 
43
void register_trusted_keyid(u32 *keyid);
42
44
void register_trusted_key( const char *string );
43
45
void check_trustdb (void);
44
46
void update_trustdb (void);
45
47
int setup_trustdb( int level, const char *dbname );
46
48
void init_trustdb( void );
 
49
void check_trustdb_stale(void);
47
50
void sync_trustdb( void );
48
51
 
 
52
const char *uid_trust_string_fixed(PKT_public_key *key,PKT_user_id *uid);
49
53
const char *trust_value_to_string (unsigned int value);
50
54
int string_to_trust_value (const char *str);
51
55
 
52
56
void revalidation_mark (void);
53
57
int trustdb_pending_check(void);
 
58
void trustdb_check_or_update(void);
54
59
 
55
60
int cache_disabled_value(PKT_public_key *pk);
56
61
 
75
80
void update_ownertrust (PKT_public_key *pk, unsigned int new_trust );
76
81
int clear_ownertrusts (PKT_public_key *pk);
77
82
 
 
83
void clean_one_uid(KBNODE keyblock,KBNODE uidnode,int noisy,int self_only,
 
84
                   int *uids_cleaned,int *sigs_cleaned);
 
85
void clean_key(KBNODE keyblock,int noisy,int self_only,
 
86
               int *uids_cleaned,int *sigs_cleaned);
 
87
 
78
88
/*-- tdbdump.c --*/
79
89
void list_trustdb(const char *username);
80
90
void export_ownertrust(void);