diff options
| author | Werner Koch <[email protected]> | 2005-12-20 20:19:16 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2005-12-20 20:19:16 +0000 |
| commit | f1482aab4e70079bf0f1d7352f5f0d3c88ca9c90 (patch) | |
| tree | 44b4bd55eca5fc2f12978ed643bbac46116cd18e /g10/pkclist.c | |
| parent | * getkey.c (merge_selfsigs_main): All primary keys can certify. (diff) | |
| download | gnupg-f1482aab4e70079bf0f1d7352f5f0d3c88ca9c90.tar.gz gnupg-f1482aab4e70079bf0f1d7352f5f0d3c88ca9c90.zip | |
Finished PKA feature
Diffstat (limited to 'g10/pkclist.c')
| -rw-r--r-- | g10/pkclist.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/g10/pkclist.c b/g10/pkclist.c index 0e2de2803..11a5f522e 100644 --- a/g10/pkclist.c +++ b/g10/pkclist.c @@ -549,12 +549,14 @@ check_signatures_trust( PKT_signature *sig ) if ( fprlen == 20 && !memcmp (sig->pka_info->fpr, fpr, 20) ) { okay = 1; + write_status_text (STATUS_PKA_TRUST_GOOD, sig->pka_info->email); log_info (_("Note: Verified signer's address is `%s'\n"), sig->pka_info->email); } else { okay = 0; + write_status_text (STATUS_PKA_TRUST_BAD, sig->pka_info->email); log_info (_("Note: Signer's address `%s' " "does not match DNS entry\n"), sig->pka_info->email); } @@ -564,17 +566,19 @@ check_signatures_trust( PKT_signature *sig ) case TRUST_UNKNOWN: case TRUST_UNDEFINED: case TRUST_MARGINAL: - if (okay) + if (okay && opt.pka_trust_increase) { trustlevel = ((trustlevel & ~TRUST_MASK) | TRUST_FULLY); - log_info ("trustlevel adjusted to FULL due to valid PKA info\n"); + log_info (_("trustlevel adjusted to FULL" + " due to valid PKA info\n")); } /* (fall through) */ case TRUST_FULLY: if (!okay) { trustlevel = ((trustlevel & ~TRUST_MASK) | TRUST_NEVER); - log_info ("trustlevel adjusted to NEVER due to bad PKA info\n"); + log_info (_("trustlevel adjusted to NEVER" + " due to bad PKA info\n")); } break; } |
