Improve struct tm population
authorPauli <paul.dale@oracle.com>
Sun, 23 Jul 2017 23:10:13 +0000 (09:10 +1000)
committerPauli <paul.dale@oracle.com>
Mon, 24 Jul 2017 01:24:27 +0000 (11:24 +1000)
commit1a68e5b0d9cf502de0d6c3701bbd5c6cb1aa7b73
treeba8a7ca2bdbc3dc738f4b171670efc5fd890dc73
parent3d0f1cb9fdd630c6c920bc97bf496538717e7705
Improve struct tm population

Using Zeller's congruence to fill the day of week field,
Also populate the day of year field.

Add unit test to cover a number of cases.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3999)
crypto/asn1/a_time.c
doc/man3/ASN1_TIME_set.pod
test/x509_time_test.c