Re: svn: /php/php-src/ branches/PHP_5_3/ext/openssl/openssl.c trunk/ext/openssl/openssl.c
| From: | Andrey Hristov | Date: | Fri, 23 Apr 2010 11:05:44 +0000 |
| Subject: | Re: svn: /php/php-src/ branches/PHP_5_3/ext/openssl/openssl.c trunk/ext/openssl/openssl.c | ||
| References: | 1 2 3 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-62376@lists.php.net to get a copy of this message | ||
Pierre, Pierre,
+ if (SSL_CTX_use_PrivateKey_file(ctx, resolved_path_buff, SSL_FILETYPE_PEM) != 1) {
this is what the revert gives back, if you go and check what this function does:
"The SSL_CTX_use_PrivateKey_file function loads the private key for use with Secure Sockets Layer (SSL) sessions using a specific context (CTX) structure."
However, what gets passed is path to a certificate, not to a private key. So you reintroduce a bug, that is.
And locally I reverted the patch that was reverting my changes, thus introducing them again, and I got :
Number of tests : 41 38 Tests skipped : 3 ( 7.3%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 0 ( 0.0%) ( 0.0%) Expected fail : 0 ( 0.0%) ( 0.0%) Tests passed : 38 ( 92.7%) (100.0%)---------------------------------------------------------------------
Time taken : 3 seconds===================================================================== So, I am going to revert the revert and reintroduce the code that fixes a bug. Have a nice day! Andrey Pierre Joye wrote:
hi, On Fri, Apr 23, 2010 at 12:14 PM, Andrey Hristov <php@hristov.com> wrote:More info about the segfaults? Tests that show the segfaults and thus keep us from regressions?The tests we have in ext/openssl/tests crash. However we were wondering why you did these changes and I did not see any relation between the commit msg and this change. If there is a bug in this code, please provide a reproduce case and a patch so we can be sure it won't break ssl functions. Cheers,