summaryrefslogtreecommitdiff
path: root/ext/openssl
diff options
context:
space:
mode:
authorJakub Zelenka <bukka@php.net>2017-10-30 13:57:51 +0000
committerJakub Zelenka <bukka@php.net>2017-10-30 16:40:56 +0000
commit628a52d365665792fa43a5cc6c2cf93f3fa5227b (patch)
tree977779800739e80388027c31b774026b5faf67f3 /ext/openssl
parent80191eebecd2c4552b496a8ad6cbe92e18298118 (diff)
downloadphp-git-628a52d365665792fa43a5cc6c2cf93f3fa5227b.tar.gz
Extend openssl_csr_sign test to cover cert resource
Diffstat (limited to 'ext/openssl')
-rw-r--r--ext/openssl/tests/openssl_csr_sign_basic.phpt2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/openssl/tests/openssl_csr_sign_basic.phpt b/ext/openssl/tests/openssl_csr_sign_basic.phpt
index 34cf50a997..572bb36695 100644
--- a/ext/openssl/tests/openssl_csr_sign_basic.phpt
+++ b/ext/openssl/tests/openssl_csr_sign_basic.phpt
@@ -32,6 +32,7 @@ $csr = openssl_csr_new($dn, $privkey, $args);
var_dump(openssl_csr_sign($csr, null, $privkey, 365, $args));
var_dump(openssl_csr_sign($csr, null, $privkey, 365, $config_arg));
var_dump(openssl_csr_sign($csr, $cert, $priv, 365, $config_arg));
+var_dump(openssl_csr_sign($csr, openssl_x509_read($cert), $priv, 365, $config_arg));
var_dump(openssl_csr_sign($csr, $wrong, $privkey, 365));
var_dump(openssl_csr_sign($csr, null, $wrong, 365));
var_dump(openssl_csr_sign($csr, null, $privkey, $wrong));
@@ -47,6 +48,7 @@ var_dump(openssl_csr_sign($csr, null, $privkey, 365, $config_arg));
resource(%d) of type (OpenSSL X.509)
resource(%d) of type (OpenSSL X.509)
resource(%d) of type (OpenSSL X.509)
+resource(%d) of type (OpenSSL X.509)
Warning: openssl_csr_sign(): cannot get cert from parameter 2 in %s on line %d
bool(false)