Home
last modified time | relevance | path

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

/php-src/ext/openssl/
H A Dopenssl.c729 static time_t php_openssl_asn1_time_to_time_t(ASN1_UTCTIME * timestr) /* {{{ */ in php_openssl_asn1_time_to_time_t() argument
745 …if (ASN1_STRING_type(timestr) != V_ASN1_UTCTIME && ASN1_STRING_type(timestr) != V_ASN1_GENERALIZED… in php_openssl_asn1_time_to_time_t()
750 timestr_len = (size_t)ASN1_STRING_length(timestr); in php_openssl_asn1_time_to_time_t()
752 if (timestr_len != strlen((const char *)ASN1_STRING_get0_data(timestr))) { in php_openssl_asn1_time_to_time_t()
758 php_error_docref(NULL, E_WARNING, "Unable to parse time string %s correctly", timestr->data); in php_openssl_asn1_time_to_time_t()
762 if (ASN1_STRING_type(timestr) == V_ASN1_GENERALIZEDTIME && timestr_len < 15) { in php_openssl_asn1_time_to_time_t()
763 php_error_docref(NULL, E_WARNING, "Unable to parse time string %s correctly", timestr->data); in php_openssl_asn1_time_to_time_t()
767 strbuf = estrdup((const char *)ASN1_STRING_get0_data(timestr)); in php_openssl_asn1_time_to_time_t()
794 if( ASN1_STRING_type(timestr) == V_ASN1_UTCTIME ) { in php_openssl_asn1_time_to_time_t()
801 } else if( ASN1_STRING_type(timestr) == V_ASN1_GENERALIZEDTIME ) { in php_openssl_asn1_time_to_time_t()

Completed in 21 milliseconds