mirror of
https://github.com/php/php-src.git
synced 2025-01-13 22:44:36 +08:00
24 lines
625 B
PHP
24 lines
625 B
PHP
--TEST--
|
|
Bug #67403: Add signatureType to openssl_x509_parse
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("openssl")) die("skip"); ?>
|
|
--FILE--
|
|
<?php
|
|
$r = openssl_x509_parse(file_get_contents(__DIR__.'/bug64802.pem'));
|
|
var_dump($r['signatureTypeSN']);
|
|
var_dump($r['signatureTypeLN']);
|
|
var_dump($r['signatureTypeNID']);
|
|
|
|
$r = openssl_x509_parse(file_get_contents(__DIR__.'/bug37820cert.pem'));
|
|
var_dump($r['signatureTypeSN']);
|
|
var_dump($r['signatureTypeLN']);
|
|
var_dump($r['signatureTypeNID']);
|
|
?>
|
|
--EXPECT--
|
|
string(8) "RSA-SHA1"
|
|
string(21) "sha1WithRSAEncryption"
|
|
int(65)
|
|
string(7) "RSA-MD5"
|
|
string(20) "md5WithRSAEncryption"
|
|
int(8)
|