-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MobileSecurityObjectGenerator: Don't use fractional seconds in timest…
…amps. (#730) ISO 18013-5 clause 9.1.2.4 specifically says to not do that and it's desirable to be able to rely on this for some applications. Just drop the fractional seconds and print a warning if the caller passes in timestamps with non-zero fractional seconds. Also add a unit test to double-check that an `Instant` serialized to a CBOR tdate doesn't have any fractional seconds part if the `Instant`'s `nanosecondsOfSecond` property is 0. Test: New unit tests. Test: All unit tests pass. Signed-off-by: David Zeuthen <[email protected]>
- Loading branch information
Showing
5 changed files
with
76 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters