# define USE_TIMEGM
#endif
-time_t asn1_string_to_time_t(const char *asn1_string)
+time_t ossl_asn1_string_to_time_t(const char *asn1_string)
{
ASN1_TIME *timestamp_asn1 = NULL;
struct tm *timestamp_tm = NULL;
OSSL_LIB_CTX *libctx, const char *propq);
X509_ALGOR *ossl_X509_ALGOR_from_nid(int nid, int ptype, void *pval);
-time_t asn1_string_to_time_t(const char *asn1_string);
+time_t ossl_asn1_string_to_time_t(const char *asn1_string);
void ossl_asn1_string_set_bits_left(ASN1_STRING *str, unsigned int num);
#endif /* ndef OSSL_CRYPTO_ASN1_H */
{
time_t testdateutc;
- testdateutc = asn1_string_to_time_t(asn1_to_utc[idx].input);
+ testdateutc = ossl_asn1_string_to_time_t(asn1_to_utc[idx].input);
if (!TEST_time_t_eq(testdateutc, asn1_to_utc[idx].expected)) {
- TEST_info("asn1_string_to_time_t (%s) failed: expected %li, got %li\n",
+ TEST_info("ossl_asn1_string_to_time_t (%s) failed: expected %li, got %li\n",
asn1_to_utc[idx].input, asn1_to_utc[idx].expected, (signed long) testdateutc);
return 0;
}
}
testdate = test_get_argument(2);
- testdateutc = asn1_string_to_time_t(testdate);
+ testdateutc = ossl_asn1_string_to_time_t(testdate);
if (TEST_time_t_lt(testdateutc, 0)) {
return 0;
}