com php-src: Change sign method from ecdsa-with-SHA1 to SHA1: ext/openssl/tests/bug66501.phpt
| From: | Jakub Zelenka | Date: | Sun, 17 Jul 2016 16:46:14 +0000 |
| Subject: | com php-src: Change sign method from ecdsa-with-SHA1 to SHA1: ext/openssl/tests/bug66501.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-93252@lists.php.net to get a copy of this message | ||
Commit: 444adff0b24ba3a8f292dfa7c951838fc9936a9e
Author: Jakub Zelenka <bukka@php.net> Sun, 20 Mar 2016 19:02:26 +0000
Parents: e5780c8cd035ec6fc86dfe62c9670c2c9f1eb8d2
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=444adff0b24ba3a8f292dfa7c951838fc9936a9e
Log:
Change sign method from ecdsa-with-SHA1 to SHA1
There are no message digest methods for public key
(e.g. ecdsa-with-SHA1, dsa*, DSA*) MD methods in OpenSSL 1.1.
Changed paths:
M ext/openssl/tests/bug66501.phpt
Diff:
diff --git a/ext/openssl/tests/bug66501.phpt b/ext/openssl/tests/bug66501.phpt
index 7ad5e21..99ac4f5 100644
--- a/ext/openssl/tests/bug66501.phpt
+++ b/ext/openssl/tests/bug66501.phpt
@@ -16,7 +16,7 @@ AwEHoUQDQgAEPq4hbIWHvB51rdWr8ejrjWo4qVNWVugYFtPg/xLQw0mHkIPZ4DvK
sqOTOnMoezkbSmVVMuwz9flvnqHGmQvmug==
-----END EC PRIVATE KEY-----';
$key = openssl_pkey_get_private($pkey);
-$res = openssl_sign($data ='alpha', $sign, $key, 'ecdsa-with-SHA1');
+$res = openssl_sign($data ='alpha', $sign, $key, 'SHA1');
var_dump($res);
--EXPECTF--
bool(true)