diff options
Diffstat (limited to 'g10/import.c')
-rw-r--r-- | g10/import.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/g10/import.c b/g10/import.c index 905e2d859..4fb6f5690 100644 --- a/g10/import.c +++ b/g10/import.c @@ -1105,6 +1105,13 @@ import_revoke_cert( const char *fname, KBNODE node, struct stats_s *stats ) m_free(p); } stats->n_revoc++; + + /* If the key we just revoked was ultimately trusted, remove its + ultimate trust. This doesn't stop the user from putting the + ultimate trust back, but is a reasonable solution for now. */ + if(get_ownertrust(pk)==TRUST_ULTIMATE) + clear_ownertrusts(pk); + revalidation_mark (); leave: |