Home
last modified time | relevance | path

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

/php-src/ext/openssl/
H A Dopenssl.c746 static time_t php_openssl_asn1_time_to_time_t(ASN1_UTCTIME * timestr) /* {{{ */ in php_openssl_asn1_time_to_time_t() argument
762 …if (ASN1_STRING_type(timestr) != V_ASN1_UTCTIME && ASN1_STRING_type(timestr) != V_ASN1_GENERALIZED… in php_openssl_asn1_time_to_time_t()
767 timestr_len = (size_t)ASN1_STRING_length(timestr); in php_openssl_asn1_time_to_time_t()
769 if (timestr_len != strlen((const char *)ASN1_STRING_get0_data(timestr))) { in php_openssl_asn1_time_to_time_t()
775 php_error_docref(NULL, E_WARNING, "Unable to parse time string %s correctly", timestr->data); in php_openssl_asn1_time_to_time_t()
779 if (ASN1_STRING_type(timestr) == V_ASN1_GENERALIZEDTIME && timestr_len < 15) { in php_openssl_asn1_time_to_time_t()
780 php_error_docref(NULL, E_WARNING, "Unable to parse time string %s correctly", timestr->data); in php_openssl_asn1_time_to_time_t()
784 strbuf = estrdup((const char *)ASN1_STRING_get0_data(timestr)); in php_openssl_asn1_time_to_time_t()
807 if( ASN1_STRING_type(timestr) == V_ASN1_UTCTIME ) { in php_openssl_asn1_time_to_time_t()
814 } else if( ASN1_STRING_type(timestr) == V_ASN1_GENERALIZEDTIME ) { in php_openssl_asn1_time_to_time_t()

Completed in 29 milliseconds