summaryrefslogtreecommitdiffstats
path: root/g10/skclist.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1999-02-16 14:16:33 +0100
committerWerner Koch <wk@gnupg.org>1999-02-16 14:16:33 +0100
commite1a1b3fc90af66a5db5ee92514b0a7c52e49d1ed (patch)
tree31dd54ac26b4c3fc30cc93d66161e72bf4cf7927 /g10/skclist.c
parentSee ChangeLog: Sat Feb 13 14:13:04 CET 1999 Werner Koch (diff)
downloadgnupg2-e1a1b3fc90af66a5db5ee92514b0a7c52e49d1ed.tar.xz
gnupg2-e1a1b3fc90af66a5db5ee92514b0a7c52e49d1ed.zip
See ChangeLog: Tue Feb 16 14:10:02 CET 1999 Werner Koch
Diffstat (limited to 'g10/skclist.c')
-rw-r--r--g10/skclist.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/g10/skclist.c b/g10/skclist.c
index 74ae2a804..df8b683f3 100644
--- a/g10/skclist.c
+++ b/g10/skclist.c
@@ -62,7 +62,7 @@ is_insecure( PKT_secret_key *sk )
int
build_sk_list( STRLIST locusr, SK_LIST *ret_sk_list, int unlock,
- unsigned usage )
+ unsigned use )
{
SK_LIST sk_list = NULL;
int rc;
@@ -71,14 +71,14 @@ build_sk_list( STRLIST locusr, SK_LIST *ret_sk_list, int unlock,
PKT_secret_key *sk;
sk = m_alloc_clear( sizeof *sk );
- sk->pubkey_usage = usage;
+ sk->pubkey_usage = use;
if( (rc = get_seckey_byname( sk, NULL, unlock )) ) {
free_secret_key( sk ); sk = NULL;
log_error("no default secret key: %s\n", g10_errstr(rc) );
}
- else if( !(rc=check_pubkey_algo2(sk->pubkey_algo, usage)) ) {
+ else if( !(rc=check_pubkey_algo2(sk->pubkey_algo, use)) ) {
SK_LIST r;
- if( sk->version == 4 && (usage & PUBKEY_USAGE_SIG)
+ if( sk->version == 4 && (use & PUBKEY_USAGE_SIG)
&& sk->pubkey_algo == PUBKEY_ALGO_ELGAMAL_E ) {
log_info("this is a PGP generated "
"ElGamal key which is NOT secure for signatures!\n");
@@ -107,14 +107,14 @@ build_sk_list( STRLIST locusr, SK_LIST *ret_sk_list, int unlock,
PKT_secret_key *sk;
sk = m_alloc_clear( sizeof *sk );
- sk->pubkey_usage = usage;
+ sk->pubkey_usage = use;
if( (rc = get_seckey_byname( sk, locusr->d, unlock )) ) {
free_secret_key( sk ); sk = NULL;
log_error(_("skipped `%s': %s\n"), locusr->d, g10_errstr(rc) );
}
- else if( !(rc=check_pubkey_algo2(sk->pubkey_algo, usage)) ) {
+ else if( !(rc=check_pubkey_algo2(sk->pubkey_algo, use)) ) {
SK_LIST r;
- if( sk->version == 4 && (usage & PUBKEY_USAGE_SIG)
+ if( sk->version == 4 && (use & PUBKEY_USAGE_SIG)
&& sk->pubkey_algo == PUBKEY_ALGO_ELGAMAL_E ) {
log_info(_("skipped `%s': this is a PGP generated "
"ElGamal key which is not secure for signatures!\n"),