Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
5a9d1f49
Commit
5a9d1f49
authored
Oct 06, 2017
by
Sietse Ringers
Browse files
Don't check epoch boundary in MetadataAttribute.setExpiryDate
parent
850fa020
Changes
1
Hide whitespace changes
Inline
Side-by-side
attributes.go
View file @
5a9d1f49
...
...
@@ -190,9 +190,6 @@ func (attr *MetadataAttribute) setValidityDuration(weeks int) {
func
(
attr
*
MetadataAttribute
)
setExpiryDate
(
timestamp
*
Timestamp
)
error
{
expiry
:=
time
.
Time
(
*
timestamp
)
.
Unix
()
if
expiry
%
ExpiryFactor
!=
0
{
return
errors
.
New
(
"Expiry date does not match an epoch boundary"
)
}
signing
:=
attr
.
SigningDate
()
.
Unix
()
attr
.
setValidityDuration
(
int
((
expiry
-
signing
)
/
ExpiryFactor
))
return
nil
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment