helly Sun Jul 27 04:23:00 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/phar util.c Log: - Fix openssl check http://cvs.php.net/viewvc.cgi/php-src/ext/phar/util.c?r1=1.55.2.23&r2=1.55.2.24&diff_format=u Index: php-src/ext/phar/util.c diff -u php-src/ext/phar/util.c:1.55.2.23 php-src/ext/phar/util.c:1.55.2.24 --- php-src/ext/phar/util.c:1.55.2.23 Sun Jul 20 14:42:34 2008 +++ php-src/ext/phar/util.c Sun Jul 27 04:23:00 2008 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: util.c,v 1.55.2.23 2008/07/20 14:42:34 dmitry Exp $ */ +/* $Id: util.c,v 1.55.2.24 2008/07/27 04:23:00 helly Exp $ */ #include "phar_internal.h" @@ -1665,7 +1665,8 @@ read_size = (int)read_len; } } - if (!EVP_VerifyFinal (&md_ctx, (unsigned char *)sig, sig_len, key)) { + if (EVP_VerifyFinal(&md_ctx, (unsigned char *)sig, sig_len, key) != 1) { + /* 1: signature verified, 0: signature does not match, -1: failed signature operation */ EVP_MD_CTX_cleanup(&md_ctx); if (error) { spprintf(error, 0, "broken openssl signature");
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php