Paul Yang 3d0f1cb9fd Add asn1_time_to_tm function and check days in month
Based on discussion in PR #3566. Reduce duplicated code in original
asn1_utctime_to_tm and asn1_generalizedtime_to_tm, and introduce a new
internal function asn1_time_to_tm. This function also checks if the days
in the input time string is valid or not for the corresponding month.

Test cases are also added.

Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/3905)
2017-07-24 08:27:27 +10:00
..
2017-07-03 10:40:33 -04:00
2017-04-25 11:13:39 +01:00
2017-07-03 10:40:33 -04:00
2017-03-12 08:27:30 -04:00
2017-03-20 16:25:22 -04:00
2017-03-11 08:56:44 -05:00
2017-03-11 08:56:44 -05:00
2017-03-11 08:56:44 -05:00
2017-04-07 13:48:19 -04:00
2017-07-05 12:53:28 -05:00
2017-03-11 08:56:44 -05:00
2017-03-11 08:56:44 -05:00
2017-07-03 19:26:56 -04:00
2017-03-11 08:56:44 -05:00
2017-03-11 08:56:44 -05:00
2017-03-11 08:56:44 -05:00
2017-07-03 10:40:33 -04:00
2017-03-11 08:56:44 -05:00
2017-06-11 16:21:33 -04:00
2016-11-11 13:06:43 +01:00
2017-03-11 08:56:44 -05:00
2017-07-03 10:40:33 -04:00
2017-06-29 00:38:26 +02:00
2017-07-03 10:40:33 -04:00
2017-05-08 21:17:28 +02:00
2017-07-03 10:40:33 -04:00
2017-06-11 16:21:33 -04:00
2017-07-22 14:00:07 -04:00
2017-07-07 23:53:54 -04:00
2017-07-12 11:09:39 -04:00
2017-07-22 14:00:07 -04:00
2017-03-11 08:56:44 -05:00
2017-07-03 10:40:33 -04:00
2017-03-29 07:18:57 +02:00
2017-03-30 14:18:11 +02:00
2017-03-29 07:14:29 +02:00
2017-07-03 10:40:33 -04:00
2017-06-11 16:21:33 -04:00
2017-04-25 22:12:35 +01:00
2017-07-03 10:40:33 -04:00