aboutsummaryrefslogtreecommitdiffstats
path: root/g10/skclist.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/skclist.c')
-rw-r--r--g10/skclist.c4
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;