mirror of
https://github.com/php/php-src.git
synced 2026-04-17 04:51:03 +02:00
default must be SHA1 or we get a BC break
This commit is contained in:
@@ -2525,7 +2525,6 @@ int phar_flush(phar_archive_data *archive, char *user_stub, long len, char **err
|
||||
switch(PHAR_SIG_USE) {
|
||||
case PHAR_SIG_PGP:
|
||||
/* TODO: currently fall back to sha1,later do both */
|
||||
default:
|
||||
#if HAVE_HASH_EXT
|
||||
case PHAR_SIG_SHA512: {
|
||||
unsigned char digest[64];
|
||||
@@ -2567,6 +2566,7 @@ int phar_flush(phar_archive_data *archive, char *user_stub, long len, char **err
|
||||
}
|
||||
return EOF;
|
||||
#endif
|
||||
default:
|
||||
case PHAR_SIG_SHA1: {
|
||||
unsigned char digest[20];
|
||||
PHP_SHA1_CTX context;
|
||||
|
||||
Reference in New Issue
Block a user