Lines Matching defs:tm
46 static char *ssl_var_lookup_ssl_cert_valid(apr_pool_t *p, ASN1_TIME *tm);
47 static char *ssl_var_lookup_ssl_cert_remain(apr_pool_t *p, ASN1_TIME *tm);
211 apr_time_exp_t tm;
342 apr_time_exp_lt(&tm, apr_time_now());
344 (tm.tm_year / 100) + 19, tm.tm_year % 100);
348 apr_time_exp_lt(&tm, apr_time_now()); \
349 result = apr_psprintf(p, format, tm.tmfield); \
370 apr_time_exp_lt(&tm, apr_time_now());
372 "%02d%02d%02d%02d%02d%02d%02d", (tm.tm_year / 100) + 19,
373 (tm.tm_year % 100), tm.tm_mon+1, tm.tm_mday,
374 tm.tm_hour, tm.tm_min, tm.tm_sec);
692 static char *ssl_var_lookup_ssl_cert_valid(apr_pool_t *p, ASN1_TIME *tm)
700 ASN1_TIME_print(bio, tm);
711 /* Return a string giving the number of days remaining until 'tm', or
713 static char *ssl_var_lookup_ssl_cert_remain(apr_pool_t *p, ASN1_TIME *tm)
723 if ((tm->type == V_ASN1_UTCTIME && tm->length < 11) ||
724 (tm->type == V_ASN1_GENERALIZEDTIME && tm->length < 13) ||
725 !ASN1_TIME_check(tm)) {
729 if (tm->type == V_ASN1_UTCTIME) {
730 exp.tm_year = DIGIT2NUM(tm->data);
732 dp = tm->data + 2;
734 exp.tm_year = DIGIT2NUM(tm->data) * 100 + DIGIT2NUM(tm->data + 2) - 1900;
735 dp = tm->data + 4;