summaryrefslogtreecommitdiff
path: root/crypto/asymmetric_keys/pkcs7_parser.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2015-07-29 16:58:32 +0100
committerDavid Howells <dhowells@redhat.com>2015-08-12 17:01:01 +0100
commit113a75a646ac09b2cf782f7cbf0b02f4907f8d36 (patch)
treeb774ebaf68bafda949ee3811fb4fdfecc4ca3d5b /crypto/asymmetric_keys/pkcs7_parser.c
parent24b3c9497d30c2275622568c15ae6903f59cc488 (diff)
downloadlinux-crypto-113a75a646ac09b2cf782f7cbf0b02f4907f8d36.tar.gz
linux-crypto-113a75a646ac09b2cf782f7cbf0b02f4907f8d36.zip
PKCS#7: Improve and export the X.509 ASN.1 time object decoder
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>
Diffstat (limited to 'crypto/asymmetric_keys/pkcs7_parser.c')
0 files changed, 0 insertions, 0 deletions