index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2012-09-18 08:36:10 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-09-18 08:36:10 -0500 |
commit | 369c5aa7ddabb81c335bb5b0dbd425c42f892459 (patch) | |
tree | 494074de2ae73c77ee51a6a84331953234cb73ae /lib/libalpm | |
parent | 37de9df7c048dc20522ccacaebf7e898ff20b96e (diff) | |
parent | c4ab50584fc70f9cbf94fdb1153e2eb08c4052df (diff) |
-rw-r--r-- | lib/libalpm/signing.c | 5 |
diff --git a/lib/libalpm/signing.c b/lib/libalpm/signing.c index 1e417164..6eb2da58 100644 --- a/lib/libalpm/signing.c +++ b/lib/libalpm/signing.c @@ -530,6 +530,11 @@ int _alpm_gpgme_checksig(alpm_handle_t *handle, const char *path, string_validity(gpgsig->validity), gpgme_strerror(gpgsig->validity_reason)); + if((time_t)gpgsig->timestamp > time(NULL)) { + _alpm_log(handle, ALPM_LOG_WARNING, + _("System time is greater than signature timestamp.\n")); + } + result = siglist->results + sigcount; err = gpgme_get_key(ctx, gpgsig->fpr, &key, 0); if(gpg_err_code(err) == GPG_ERR_EOF) { |