default must be SHA1 or we get a BC break

This commit is contained in:
Greg Beaver 2007-03-25 23:42:49 +00:00
parent 3ff9360058
commit c3b317f44c

View File

@ -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;