mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
default must be SHA1 or we get a BC break
This commit is contained in:
parent
3ff9360058
commit
c3b317f44c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user