]> granicus.if.org Git - php/commit
add openssl signing support. This adds an extra parameter
authorGreg Beaver <cellog@php.net>
Sun, 1 Jun 2008 04:21:26 +0000 (04:21 +0000)
committerGreg Beaver <cellog@php.net>
Sun, 1 Jun 2008 04:21:26 +0000 (04:21 +0000)
commit5fbeb235d2bf7b8a7810a5ac10ab2c07d1110788
tree76d9aa1a9be3ec1ef9757ae2379453f1e6bf78f9
parent5050450f7938cfb4ddbcc63b28fae125ce74b83d
add openssl signing support.  This adds an extra parameter
for the contents of the exported private key to Phar->setSignatureAlgorithm, and expects the public key to be in
a file named blah.phar.pubkey in the same directory as the phar blah.phar.  This works with openssl static or
shared and fails gracefully if openssl is not present without adding a dependency. config.w32 needs updating to match config.m4 [DOC]
ext/phar/config.m4
ext/phar/phar.c
ext/phar/phar_internal.h
ext/phar/phar_object.c
ext/phar/tests/files/openssl.phar [new file with mode: 0644]
ext/phar/tests/files/openssl.phar.pubkey [new file with mode: 0644]
ext/phar/tests/files/private.pem [new file with mode: 0644]
ext/phar/tests/phar_get_supported_signatures_001.phpt
ext/phar/tests/phar_get_supported_signatures_002.phpt
ext/phar/tests/phar_setsignaturealgo2.phpt
ext/phar/tests/test_signaturealgos.phpt