diff options
| author | 2015-07-29 16:58:32 +0100 | |
|---|---|---|
| committer | 2015-08-12 17:01:01 +0100 | |
| commit | fd19a3d195be23e8d9d0d66576b96ea25eea8323 (patch) | |
| tree | 6286e4d04f00f846fd7f1c409aa118b12756ea26 /kernel/module_signing.c | |
| parent | modsign: Use extract-cert to process CONFIG_SYSTEM_TRUSTED_KEYS (diff) | |
| download | wireguard-linux-fd19a3d195be23e8d9d0d66576b96ea25eea8323.tar.xz wireguard-linux-fd19a3d195be23e8d9d0d66576b96ea25eea8323.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 'kernel/module_signing.c')
0 files changed, 0 insertions, 0 deletions
