Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25412 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81450 invoked by uid 1010); 23 Aug 2006 16:06:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 81421 invoked from network); 23 Aug 2006 16:06:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Aug 2006 16:06:50 -0000 X-Host-Fingerprint: 195.226.9.186 unknown Received: from [195.226.9.186] ([195.226.9.186:14877] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.8 r(12602M)) with ESMTP id 5B/FB-10120-C587CE44 for ; Wed, 23 Aug 2006 11:46:37 -0400 Message-ID: <5B.FB.10120.C587CE44@pb1.pair.com> To: internals@lists.php.net Date: Wed, 23 Aug 2006 17:46:28 +0200 User-Agent: Thunderbird 1.5.0.5 (X11/20060725) MIME-Version: 1.0 References: <3BACB070-8FE1-4D72-AF4F-A6A85147733B@prohost.org> In-Reply-To: <3BACB070-8FE1-4D72-AF4F-A6A85147733B@prohost.org> Content-Type: multipart/mixed; boundary="------------020701030206050207010709" X-Posted-By: 195.226.9.186 Subject: Re: PHP 5.2.0RC2 Released! From: cschneid@cschneid.com (Christian Schneider) --------------020701030206050207010709 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I'm having troubles with ext/openssl.c and OpenSSL 0.9.7g on SuSE 10: EVP_PKEY_EC is not defined. The attached patch fixes the problem for me. - Chris --------------020701030206050207010709 Content-Type: text/plain; name="php-520rc2-openssl.patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="php-520rc2-openssl.patch.txt" Index: ext/openssl/openssl.c =================================================================== RCS file: /repository/php-src/ext/openssl/openssl.c,v retrieving revision 1.98.2.5.2.11 diff -u -r1.98.2.5.2.11 openssl.c --- ext/openssl/openssl.c 15 Aug 2006 20:27:20 -0000 1.98.2.5.2.11 +++ ext/openssl/openssl.c 23 Aug 2006 15:40:57 -0000 @@ -70,7 +70,9 @@ OPENSSL_KEYTYPE_DSA, OPENSSL_KEYTYPE_DH, OPENSSL_KEYTYPE_DEFAULT = OPENSSL_KEYTYPE_RSA, +#ifdef EVP_PKEY_EC OPENSSL_KEYTYPE_EC = OPENSSL_KEYTYPE_DH +1 +#endif }; enum php_openssl_cipher_type { @@ -695,7 +697,9 @@ REGISTER_LONG_CONSTANT("OPENSSL_KEYTYPE_DSA", OPENSSL_KEYTYPE_DSA, CONST_CS|CONST_PERSISTENT); #endif REGISTER_LONG_CONSTANT("OPENSSL_KEYTYPE_DH", OPENSSL_KEYTYPE_DH, CONST_CS|CONST_PERSISTENT); +#ifdef EVP_PKEY_EC REGISTER_LONG_CONSTANT("OPENSSL_KEYTYPE_EC", OPENSSL_KEYTYPE_EC, CONST_CS|CONST_PERSISTENT); +#endif /* Determine default SSL configuration file */ config_filename = getenv("OPENSSL_CONF"); @@ -2327,9 +2331,11 @@ case EVP_PKEY_DH: ktype = OPENSSL_KEYTYPE_DH; break; +#ifdef EVP_PKEY_EC case EVP_PKEY_EC: ktype = OPENSSL_KEYTYPE_EC; break; +#endif default: ktype = -1; break; --------------020701030206050207010709--