Skip to content

Commit

Permalink
Fixed logic to decide if the PGP key is expired or not
Browse files Browse the repository at this point in the history
Fixes issue #120
  • Loading branch information
jstedfast committed Mar 28, 2015
1 parent 80187cc commit 9d0d353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MimeKit/Cryptography/OpenPgpContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ protected virtual PgpSecretKey GetSigningKey (MailboxAddress mailbox)
long seconds = pubkey.GetValidSeconds ();
if (seconds != 0) {
var expires = pubkey.CreationTime.AddSeconds ((double) seconds);
if (expires >= DateTime.Now)
if (DateTime.Now >= expires)
continue;
}

Expand Down

0 comments on commit 9d0d353

Please sign in to comment.