Skip to content

Commit

Permalink
Changed GetAuthenticSigningTime to AuthenticSigningTime
Browse files Browse the repository at this point in the history
Signed-off-by: Kody Kimberl <kody.kimberl.work@gmail.com>
  • Loading branch information
kody-kimberl committed Apr 20, 2023
1 parent d2a8f85 commit 3786bad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion verifier/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ func verifyRevocation(outcome *notation.VerificationOutcome, r revocation.Revoca
}
}

authenticSigningTime, err := outcome.EnvelopeContent.SignerInfo.GetAuthenticSigningTime()
authenticSigningTime, err := outcome.EnvelopeContent.SignerInfo.AuthenticSigningTime()
if err != nil {
logger.Debugf("not using authentic signing time due to error retrieving AuthenticSigningTime, err: %v", err)
}
Expand Down
4 changes: 2 additions & 2 deletions verifier/verifier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -645,10 +645,10 @@ func TestVerifyRevocation(t *testing.T) {
outcome := createMockOutcome(revokableChain, time.Now().Add(-4*time.Hour))
outcome.EnvelopeContent.SignerInfo.SignedAttributes.SigningScheme = "unsupported scheme"

time, err := outcome.EnvelopeContent.SignerInfo.GetAuthenticSigningTime()
time, err := outcome.EnvelopeContent.SignerInfo.AuthenticSigningTime()
expectedErr := errors.New("authenticSigningTime not found")
if !time.IsZero() || err == nil || err.Error() != expectedErr.Error() {
t.Fatalf("expected GetAuthenticSigningTime to fail with %v, but got %v", expectedErr, err)
t.Fatalf("expected AuthenticSigningTime to fail with %v, but got %v", expectedErr, err)
}

result := verifyRevocation(outcome, revocationClient, logger)
Expand Down

0 comments on commit 3786bad

Please sign in to comment.