Home
last modified time | relevance | path

Searched refs:timestr (Results 1 – 1 of 1) sorted by relevance

/PHP-8.3/ext/openssl/
H A Dopenssl.c728 static time_t php_openssl_asn1_time_to_time_t(ASN1_UTCTIME * timestr) /* {{{ */ in php_openssl_asn1_time_to_time_t() argument
744 …if (ASN1_STRING_type(timestr) != V_ASN1_UTCTIME && ASN1_STRING_type(timestr) != V_ASN1_GENERALIZED… in php_openssl_asn1_time_to_time_t()
749 timestr_len = (size_t)ASN1_STRING_length(timestr); in php_openssl_asn1_time_to_time_t()
751 if (timestr_len != strlen((const char *)ASN1_STRING_get0_data(timestr))) { in php_openssl_asn1_time_to_time_t()
757 php_error_docref(NULL, E_WARNING, "Unable to parse time string %s correctly", timestr->data); in php_openssl_asn1_time_to_time_t()
761 if (ASN1_STRING_type(timestr) == V_ASN1_GENERALIZEDTIME && timestr_len < 15) { in php_openssl_asn1_time_to_time_t()
762 php_error_docref(NULL, E_WARNING, "Unable to parse time string %s correctly", timestr->data); in php_openssl_asn1_time_to_time_t()
766 strbuf = estrdup((const char *)ASN1_STRING_get0_data(timestr)); in php_openssl_asn1_time_to_time_t()
793 if( ASN1_STRING_type(timestr) == V_ASN1_UTCTIME ) { in php_openssl_asn1_time_to_time_t()
800 } else if( ASN1_STRING_type(timestr) == V_ASN1_GENERALIZEDTIME ) { in php_openssl_asn1_time_to_time_t()

Completed in 19 milliseconds