aboutsummaryrefslogtreecommitdiffstats
path: root/g10/kbnode.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2005-06-10 02:52:41 +0000
committerDavid Shaw <[email protected]>2005-06-10 02:52:41 +0000
commit31522bac1dad07871d8dfbe6159951353a17723a (patch)
tree590f05ed427d83ad9201fe1e65085f671ac1bd94 /g10/kbnode.c
parent* trustdb.c (clean_uids_from_key), keyedit.c (diff)
downloadgnupg-31522bac1dad07871d8dfbe6159951353a17723a.tar.gz
gnupg-31522bac1dad07871d8dfbe6159951353a17723a.zip
* keydb.h, kbnode.c (undelete_kbnode): New function to undelete a
kbnode. * trustdb.c (clean_uids_from_key): Further tweak the algorithm so that the last good selfsig is kept when the chosen selfsig is a revocation.
Diffstat (limited to '')
-rw-r--r--g10/kbnode.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/g10/kbnode.c b/g10/kbnode.c
index ecfac8264..cd3bf5fd2 100644
--- a/g10/kbnode.c
+++ b/g10/kbnode.c
@@ -1,5 +1,6 @@
/* kbnode.c - keyblock node utility functions
- * Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+ * Copyright (C) 1998, 1999, 2000, 2001, 2002,
+ * 2005 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@@ -113,6 +114,11 @@ delete_kbnode( KBNODE node )
node->private_flag |= 1;
}
+void
+undelete_kbnode( KBNODE node )
+{
+ node->private_flag &= ~1;
+}
/****************