Home
last modified time | relevance | path

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

/PHP-8.1/ext/openssl/
H A Dopenssl.c712 static time_t php_openssl_asn1_time_to_time_t(ASN1_UTCTIME * timestr) /* {{{ */ in php_openssl_asn1_time_to_time_t() argument
728 …if (ASN1_STRING_type(timestr) != V_ASN1_UTCTIME && ASN1_STRING_type(timestr) != V_ASN1_GENERALIZED… in php_openssl_asn1_time_to_time_t()
733 timestr_len = (size_t)ASN1_STRING_length(timestr); in php_openssl_asn1_time_to_time_t()
735 if (timestr_len != strlen((const char *)ASN1_STRING_get0_data(timestr))) { in php_openssl_asn1_time_to_time_t()
741 php_error_docref(NULL, E_WARNING, "Unable to parse time string %s correctly", timestr->data); in php_openssl_asn1_time_to_time_t()
745 if (ASN1_STRING_type(timestr) == V_ASN1_GENERALIZEDTIME && timestr_len < 15) { in php_openssl_asn1_time_to_time_t()
746 php_error_docref(NULL, E_WARNING, "Unable to parse time string %s correctly", timestr->data); in php_openssl_asn1_time_to_time_t()
750 strbuf = estrdup((const char *)ASN1_STRING_get0_data(timestr)); in php_openssl_asn1_time_to_time_t()
777 if( ASN1_STRING_type(timestr) == V_ASN1_UTCTIME ) { in php_openssl_asn1_time_to_time_t()
784 } else if( ASN1_STRING_type(timestr) == V_ASN1_GENERALIZEDTIME ) { in php_openssl_asn1_time_to_time_t()

Completed in 20 milliseconds