Lines Matching refs:tm
260 std::string PKCS7Data::GetASN1Time(const ASN1_TIME* tm)
262 if (tm == NULL) {
265 /* Convert the ASN1_TIME structure to a standard tm structure. */
266 struct tm time;
267 ASN1_TIME_to_tm(tm, &time);
273 struct tm* localTime = localtime(&t);
317 ASN1_TIME* tm = ASN1_TIME_new();
318 ASN1_TIME_set_string(tm, (reinterpret_cast<const char*>(signTime->value.asn1_string->data)));
322 "notAfter: %s", GetASN1Time(tm).c_str(),
324 ASN1_TIME_free(tm);
327 ASN1_TIME_free(tm);