diff options
| author | Werner Koch <[email protected]> | 1998-01-12 10:18:17 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 1998-01-12 10:18:17 +0000 |
| commit | ed3609258828942808702a07ef2986d7328efa3f (patch) | |
| tree | 185f17c055b38fee37bc0090789dcf96a1535c8c /g10/skclist.c | |
| parent | patchlevel 2 (diff) | |
| download | gnupg-ed3609258828942808702a07ef2986d7328efa3f.tar.gz gnupg-ed3609258828942808702a07ef2986d7328efa3f.zip | |
started with trust stuff
Diffstat (limited to 'g10/skclist.c')
| -rw-r--r-- | g10/skclist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/skclist.c b/g10/skclist.c index 75e547ffb..e7c9071d6 100644 --- a/g10/skclist.c +++ b/g10/skclist.c @@ -60,7 +60,7 @@ build_skc_list( STRLIST locusr, SKC_LIST *ret_skc_list, int unlock ) free_secret_cert( skc ); skc = NULL; log_error("no default secret key: %s\n", g10_errstr(rc) ); } - else if( is_valid_pubkey_algo(skc->pubkey_algo) ) { + else if( !(rc=check_pubkey_algo(skc->pubkey_algo)) ) { SKC_LIST r; r = m_alloc( sizeof *r ); r->skc = skc; skc = NULL; @@ -82,7 +82,7 @@ build_skc_list( STRLIST locusr, SKC_LIST *ret_skc_list, int unlock ) free_secret_cert( skc ); skc = NULL; log_error("skipped '%s': %s\n", locusr->d, g10_errstr(rc) ); } - else if ( is_valid_pubkey_algo(skc->pubkey_algo) ) { + else if( !(rc=check_pubkey_algo(skc->pubkey_algo)) ) { SKC_LIST r; r = m_alloc( sizeof *r ); r->skc = skc; skc = NULL; |
