Added more verification tests and fixes

This commit is contained in:
Arun M 2017-12-27 15:25:53 +05:30
parent e662b445dd
commit 5771f97c1c
4 changed files with 113 additions and 2 deletions

View file

@ -443,7 +443,7 @@ std::error_code jwt_object::verify(
auto p_exp = payload()
.get_claim_value<uint64_t>(registered_claims::not_before);
if ((p_exp - dparams.leeway) < curr_time) {
if ((p_exp - dparams.leeway) > curr_time) {
ec = VerificationErrc::ImmatureSignature;
return ec;
}