diff options
author | David Howells <dhowells@redhat.com> | 2015-07-29 16:58:32 +0100 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2016-04-18 08:50:43 -0400 |
commit | f85d91f88486b34679c532a5687466eaf335258f (patch) | |
tree | 8b95941035c8ce376702b13c52337f618e420e4a /crypto/chainiv.c | |
parent | 3ccbbbf7b5ceb75bef47692c39f443a3efb38437 (diff) |
PKCS#7: Improve and export the X.509 ASN.1 time object decoder
[ Upstream commit fd19a3d195be23e8d9d0d66576b96ea25eea8323 ]
Make the X.509 ASN.1 time object decoder fill in a time64_t rather than a
struct tm to make comparison easier (unfortunately, this makes readable
display less easy) and export it so that it can be used by the PKCS#7 code
too.
Further, tighten up its parsing to reject invalid dates (eg. weird
characters, non-existent hour numbers) and unsupported dates (eg. timezones
other than 'Z' or dates earlier than 1970).
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'crypto/chainiv.c')
0 files changed, 0 insertions, 0 deletions