/pki/ |
A D | encode_values_unittest.cc | 70 time.year = 2014; in TEST() 84 time.year = 0; in TEST() 93 time.year = 9999; in TEST() 105 time.year = 2000; in TEST() 112 time.year = 2014; in TEST() 124 time.year = 2049; in TEST() 128 time.year = 2000; in TEST() 132 time.year = 1999; in TEST() 136 time.year = 1950; in TEST() 140 time.year = 2050; in TEST() [all …]
|
A D | encode_values.cc | 58 generalized_time->year = tmp_tm.tm_year + 1900; in EncodePosixTimeAsGeneralizedTime() 70 tmp_tm.tm_year = generalized.year - 1900; in GeneralizedTimeToPosixTime() 86 if (!WriteFourDigit(time.year, out) || !WriteTwoDigit(time.month, out + 4) || in EncodeGeneralizedTime() 102 uint16_t year = time.year - 1900; in EncodeUTCTime() local 103 if (year >= 100) { in EncodeUTCTime() 104 year -= 100; in EncodeUTCTime() 107 if (!WriteTwoDigit(year, out) || !WriteTwoDigit(time.month, out + 2) || in EncodeUTCTime()
|
A D | parse_values.cc | 122 if (time.year % 4 == 0 && in ValidateGeneralizedTime() 123 (time.year % 100 != 0 || time.year % 400 == 0)) { in ValidateGeneralizedTime() 306 return 1950 <= year && year < 2050; in InUTCTimeRange() 310 return std::tie(lhs.year, lhs.month, lhs.day, lhs.hours, lhs.minutes, in operator <() 311 lhs.seconds) < std::tie(rhs.year, rhs.month, rhs.day, in operator <() 330 if (!DecimalStringToUint(reader, 2, &time.year) || in ParseUTCTime() 342 if (time.year < 50) { in ParseUTCTime() 343 time.year += 2000; in ParseUTCTime() 345 time.year += 1900; in ParseUTCTime() 357 if (!DecimalStringToUint(reader, 4, &time.year) || in ParseGeneralizedTime()
|
A D | parse_values_unittest.cc | 85 EXPECT_EQ(0, out.year); in TEST() 87 EXPECT_EQ(9999, out.year); in TEST() 186 time.year = 1950; in TEST() 189 time.year = 1949; in TEST() 192 time.year = 2049; in TEST() 195 time.year = 2050; in TEST()
|
A D | parse_values.h | 99 uint16_t year; member
|
A D | parse_certificate_unittest.cc | 37 pretty_time << "year=" << int{time.year} << ", month=" << int{time.month} in ToString()
|
/pki/testdata/parse_certificate_unittest/ |
A D | tbs_v1.pem | 41 VALIDITY NOTBEFORE: year=2012, month=10, day=18, hours=3, minutes=12, seconds=0 47 VALIDITY NOTAFTER: year=2013, month=10, day=18, hours=14, minutes=59, seconds=59
|
A D | tbs_v2_no_optionals.pem | 43 VALIDITY NOTBEFORE: year=2012, month=10, day=18, hours=3, minutes=12, seconds=0 49 VALIDITY NOTAFTER: year=2013, month=10, day=18, hours=14, minutes=59, seconds=59
|
A D | tbs_validity_both_generalized_time.pem | 45 VALIDITY NOTBEFORE: year=2014, month=1, day=31, hours=0, minutes=0, seconds=0 51 VALIDITY NOTAFTER: year=2016, month=2, day=29, hours=0, minutes=0, seconds=0
|
A D | tbs_validity_both_utc_time.pem | 45 VALIDITY NOTBEFORE: year=2012, month=10, day=18, hours=3, minutes=12, seconds=0 51 VALIDITY NOTAFTER: year=2013, month=10, day=18, hours=14, minutes=59, seconds=59
|
A D | tbs_validity_generalized_time_and_utc_time.pem | 45 VALIDITY NOTBEFORE: year=2014, month=1, day=31, hours=0, minutes=0, seconds=0 51 VALIDITY NOTAFTER: year=2013, month=10, day=18, hours=14, minutes=59, seconds=59
|
A D | tbs_validity_utc_time_and_generalized_time.pem | 45 VALIDITY NOTBEFORE: year=2012, month=10, day=18, hours=3, minutes=12, seconds=0 51 VALIDITY NOTAFTER: year=2016, month=2, day=29, hours=0, minutes=0, seconds=0
|
A D | tbs_v2_issuer_unique_id.pem | 44 VALIDITY NOTBEFORE: year=2012, month=10, day=18, hours=3, minutes=12, seconds=0 50 VALIDITY NOTAFTER: year=2013, month=10, day=18, hours=14, minutes=59, seconds=59
|
A D | tbs_v2_issuer_and_subject_unique_id.pem | 46 VALIDITY NOTBEFORE: year=2012, month=10, day=18, hours=3, minutes=12, seconds=0 52 VALIDITY NOTAFTER: year=2013, month=10, day=18, hours=14, minutes=59, seconds=59
|
A D | tbs_v3_no_optionals.pem | 46 VALIDITY NOTBEFORE: year=2012, month=10, day=18, hours=3, minutes=12, seconds=0 52 VALIDITY NOTAFTER: year=2013, month=10, day=18, hours=14, minutes=59, seconds=59
|
A D | tbs_v3_extensions.pem | 48 VALIDITY NOTBEFORE: year=2012, month=10, day=18, hours=3, minutes=12, seconds=0 54 VALIDITY NOTAFTER: year=2013, month=10, day=18, hours=14, minutes=59, seconds=59
|
A D | tbs_v3_all_optionals.pem | 48 VALIDITY NOTBEFORE: year=2012, month=10, day=18, hours=3, minutes=12, seconds=0 54 VALIDITY NOTAFTER: year=2013, month=10, day=18, hours=14, minutes=59, seconds=59
|
A D | tbs_v3_real.pem | 165 VALIDITY NOTBEFORE: year=2012, month=4, day=19, hours=13, minutes=53, seconds=24 171 VALIDITY NOTAFTER: year=2013, month=4, day=19, hours=13, minutes=53, seconds=24
|