aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keylist.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2000-10-10 12:58:43 +0000
committerWerner Koch <[email protected]>2000-10-10 12:58:43 +0000
commit5a9ea8ff5c942304696463b47d852f475323c69f (patch)
treef7173ad82644c4449d06885f4c655d025b101cf6 /g10/keylist.c
parentAdded the arcfour cipher which is of use for GNUTLS. (diff)
downloadgnupg-5a9ea8ff5c942304696463b47d852f475323c69f.tar.gz
gnupg-5a9ea8ff5c942304696463b47d852f475323c69f.zip
Changed keyring handling - saving still does not work.
Added new cipher mode and updated cipher test program.
Diffstat (limited to 'g10/keylist.c')
-rw-r--r--g10/keylist.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/g10/keylist.c b/g10/keylist.c
index 4109968c0..89691873a 100644
--- a/g10/keylist.c
+++ b/g10/keylist.c
@@ -72,7 +72,7 @@ list_all( int secret )
int rc=0;
int lastresno;
- rc = enum_keyblocks( secret? 5:0, &kbpos, &keyblock );
+ rc = enum_keyblocks_begin( &kbpos, secret );
if( rc ) {
if( rc != -1 )
log_error("enum_keyblocks(open) failed: %s\n", gpg_errstr(rc) );
@@ -80,12 +80,12 @@ list_all( int secret )
}
lastresno = -1;
- while( !(rc = enum_keyblocks( 1, &kbpos, &keyblock )) ) {
- if( lastresno != kbpos.resno ) {
- const char *s = keyblock_resource_name( &kbpos );
+ while( !(rc = enum_keyblocks_next( kbpos, 1, &keyblock )) ) {
+ if( 1 /*lastresno != kbpos.resno FIXME!!! */ ) {
+ const char *s = "foo" /*keyblock_resource_name( &kbpos ) */;
int i;
- lastresno = kbpos.resno;
+ /* FIXME lastresno = kbpos.resno*/
printf("%s\n", s );
for(i=strlen(s); i; i-- )
putchar('-');
@@ -100,7 +100,7 @@ list_all( int secret )
log_error("enum_keyblocks(read) failed: %s\n", gpg_errstr(rc));
leave:
- enum_keyblocks( 2, &kbpos, &keyblock ); /* close */
+ enum_keyblocks_end( kbpos );
release_kbnode( keyblock );
}