/crypto/asn1/ |
A D | a_time.cc | 44 static int fits_in_utc_time(const struct tm *tm) { in fits_in_utc_time() argument 45 return 50 <= tm->tm_year && tm->tm_year < 150; in fits_in_utc_time() 50 struct tm tm; in ASN1_TIME_adj() local 61 if (fits_in_utc_time(&tm)) { in ASN1_TIME_adj() 140 struct tm tm; in ASN1_TIME_set_string_X509() local 147 if (fits_in_utc_time(&tm)) { in ASN1_TIME_set_string_X509() 164 static int asn1_time_to_tm(struct tm *tm, const ASN1_TIME *t, in asn1_time_to_tm() argument 184 struct tm tm_from, tm_to; in ASN1_TIME_diff() 195 struct tm tm; in ASN1_TIME_to_posix_nonstandard() local 211 struct tm tm; in ASN1_TIME_to_time_t() local [all …]
|
A D | posix_time.cc | 150 int OPENSSL_tm_to_posix(const struct tm *tm, int64_t *out) { in OPENSSL_tm_to_posix() argument 152 tm->tm_mon + INT64_C(1), tm->tm_mday, tm->tm_hour, in OPENSSL_tm_to_posix() 153 tm->tm_min, tm->tm_sec, out); in OPENSSL_tm_to_posix() 157 struct tm tmp_tm = {}; in OPENSSL_posix_to_tm() 170 int OPENSSL_timegm(const struct tm *tm, time_t *out) { in OPENSSL_timegm() argument 175 if (!OPENSSL_tm_to_posix(tm, &posix_time)) { in OPENSSL_timegm() 186 struct tm *OPENSSL_gmtime(const time_t *time, struct tm *out_tm) { in OPENSSL_gmtime() 197 int OPENSSL_gmtime_adj(struct tm *tm, int offset_day, int64_t offset_sec) { in OPENSSL_gmtime_adj() argument 199 if (!OPENSSL_tm_to_posix(tm, &posix_time)) { in OPENSSL_gmtime_adj() 217 if (!OPENSSL_posix_to_tm(posix_time, tm)) { in OPENSSL_gmtime_adj() [all …]
|
A D | internal.h | 33 OPENSSL_EXPORT struct tm *OPENSSL_gmtime(const time_t *time, struct tm *result); 39 OPENSSL_EXPORT int OPENSSL_gmtime_adj(struct tm *tm, int offset_day, 48 const struct tm *from, 49 const struct tm *to); 87 OPENSSL_EXPORT int asn1_utctime_to_tm(struct tm *tm, const ASN1_UTCTIME *d, 89 OPENSSL_EXPORT int asn1_generalizedtime_to_tm(struct tm *tm,
|
A D | a_strex.cc | 375 int ASN1_TIME_print(BIO *bp, const ASN1_TIME *tm) { in ASN1_TIME_print() argument 376 if (tm->type == V_ASN1_UTCTIME) { in ASN1_TIME_print() 377 return ASN1_UTCTIME_print(bp, tm); in ASN1_TIME_print() 379 if (tm->type == V_ASN1_GENERALIZEDTIME) { in ASN1_TIME_print() 380 return ASN1_GENERALIZEDTIME_print(bp, tm); in ASN1_TIME_print() 389 int ASN1_GENERALIZEDTIME_print(BIO *bp, const ASN1_GENERALIZEDTIME *tm) { in ASN1_GENERALIZEDTIME_print() argument 391 CBS_init(&cbs, tm->data, tm->length); in ASN1_GENERALIZEDTIME_print() 392 struct tm utc; in ASN1_GENERALIZEDTIME_print() 403 int ASN1_UTCTIME_print(BIO *bp, const ASN1_UTCTIME *tm) { in ASN1_UTCTIME_print() argument 405 CBS_init(&cbs, tm->data, tm->length); in ASN1_UTCTIME_print() [all …]
|
A D | a_gentm.cc | 27 int asn1_generalizedtime_to_tm(struct tm *tm, const ASN1_GENERALIZEDTIME *d) { in asn1_generalizedtime_to_tm() argument 33 if (!CBS_parse_generalized_time(&cbs, tm, /*allow_timezone_offset=*/0)) { in asn1_generalizedtime_to_tm() 69 struct tm data; in ASN1_GENERALIZEDTIME_adj()
|
A D | a_utctm.cc | 27 int asn1_utctime_to_tm(struct tm *tm, const ASN1_UTCTIME *d, in asn1_utctime_to_tm() argument 34 if (!CBS_parse_utc_time(&cbs, tm, allow_timezone_offset)) { in asn1_utctime_to_tm() 70 struct tm data; in ASN1_UTCTIME_adj()
|
A D | asn1_test.cc | 944 struct tm stm, ttm; in ASN1Time_check_posix() 1195 struct tm tm1, tm2; in TEST() 2449 struct tm civil_time; in TEST() 2508 static auto TimeToTuple(const tm &t) { in TimeToTuple() 2516 tm overflow_year = {}; in TEST() 2519 tm overflow_month = {}; in TEST() 2539 tm max_time = {}; in TEST() 2546 tm copy = max_time; in TEST() 2552 tm min_time = {}; in TEST()
|
/crypto/x509/ |
A D | x509_set.cc | 93 int X509_set1_notBefore(X509 *x, const ASN1_TIME *tm) { in X509_set1_notBefore() argument 100 if (in != tm) { in X509_set1_notBefore() 101 in = ASN1_STRING_dup(tm); in X509_set1_notBefore() 110 int X509_set_notBefore(X509 *x, const ASN1_TIME *tm) { in X509_set_notBefore() argument 111 return X509_set1_notBefore(x, tm); in X509_set_notBefore() 132 int X509_set1_notAfter(X509 *x, const ASN1_TIME *tm) { in X509_set1_notAfter() argument 139 if (in != tm) { in X509_set1_notAfter() 140 in = ASN1_STRING_dup(tm); in X509_set1_notAfter() 149 int X509_set_notAfter(X509 *x, const ASN1_TIME *tm) { in X509_set_notAfter() argument 150 return X509_set1_notAfter(x, tm); in X509_set_notAfter()
|
A D | x509cset.cc | 57 int X509_CRL_set1_lastUpdate(X509_CRL *x, const ASN1_TIME *tm) { in X509_CRL_set1_lastUpdate() argument 64 if (in != tm) { in X509_CRL_set1_lastUpdate() 65 in = ASN1_STRING_dup(tm); in X509_CRL_set1_lastUpdate() 74 int X509_CRL_set1_nextUpdate(X509_CRL *x, const ASN1_TIME *tm) { in X509_CRL_set1_nextUpdate() argument 81 if (in != tm) { in X509_CRL_set1_nextUpdate() 82 in = ASN1_STRING_dup(tm); in X509_CRL_set1_nextUpdate() 152 const ASN1_TIME *tm) { in X509_REVOKED_set_revocationDate() argument 159 if (in != tm) { in X509_REVOKED_set_revocationDate() 160 in = ASN1_STRING_dup(tm); in X509_REVOKED_set_revocationDate()
|
A D | x509_test.cc | 2766 bssl::UniquePtr<ASN1_UTCTIME> tm(ASN1_UTCTIME_new()); in TEST() local 2767 ASSERT_TRUE(tm); in TEST() 2775 ASSERT_TRUE(ASN1_STRING_set(tm.get(), t.val, strlen(t.val))); in TEST() 2776 const int ok = ASN1_UTCTIME_print(bio.get(), tm.get()); in TEST()
|
/crypto/bytestring/ |
A D | cbs.cc | 805 struct tm *out_tm) { in CBS_parse_rfc5280_time_internal() 904 int CBS_parse_generalized_time(const CBS *cbs, struct tm *out_tm, in CBS_parse_generalized_time() 909 int CBS_parse_utc_time(const CBS *cbs, struct tm *out_tm, in CBS_parse_utc_time()
|