diff options
author | Werner Koch <wk@gnupg.org> | 1997-12-19 12:41:47 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1997-12-19 12:41:47 +0100 |
commit | ee8d92fefa5902f97e92856b9c657fb18d0dd93e (patch) | |
tree | cf86cf2d45d7dbeb3f8c01a53402435ac1257f88 /g10/kbnode.c | |
parent | added some stuff for signing keys (diff) | |
download | gnupg2-ee8d92fefa5902f97e92856b9c657fb18d0dd93e.tar.xz gnupg2-ee8d92fefa5902f97e92856b9c657fb18d0dd93e.zip |
better prime number generator. improved ELG key generation
Diffstat (limited to 'g10/kbnode.c')
-rw-r--r-- | g10/kbnode.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/g10/kbnode.c b/g10/kbnode.c index a4ac40dc5..844bafe6c 100644 --- a/g10/kbnode.c +++ b/g10/kbnode.c @@ -37,6 +37,7 @@ new_kbnode( PACKET *pkt ) n->next = NULL; n->pkt = pkt; n->child = NULL; + n->flag = 0; return n; } @@ -138,3 +139,11 @@ walk_kbtree( KBNODE root, KBNODE *context ) return n; } +void +clear_kbnode_flags( KBNODE n ) +{ + for( ; n; n = n->next ) { + clear_kbnode_flags( n->child ); + n->flag = 0; + } +} |