You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ch...@apache.org on 2008/08/04 09:46:55 UTC
svn commit: r682280 -
/incubator/shindig/trunk/php/src/gadgets/SigningFetcherFactory.php
Author: chabotc
Date: Mon Aug 4 00:46:55 2008
New Revision: 682280
URL: http://svn.apache.org/viewvc?rev=682280&view=rev
Log:
SHINDIG-491 Don't call openssl_pkey_get_private when no key is present
Modified:
incubator/shindig/trunk/php/src/gadgets/SigningFetcherFactory.php
Modified: incubator/shindig/trunk/php/src/gadgets/SigningFetcherFactory.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/SigningFetcherFactory.php?rev=682280&r1=682279&r2=682280&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/SigningFetcherFactory.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/SigningFetcherFactory.php Mon Aug 4 00:46:55 2008
@@ -70,9 +70,9 @@
} else {
$privateKey = $rsa_private_key;
}
- }
- if (! $rsa_private_key = @openssl_pkey_get_private($privateKey, $phrase)) {
- throw new Exception("Could not create the key");
+ if (! $rsa_private_key = @openssl_pkey_get_private($privateKey, $phrase)) {
+ throw new Exception("Could not create the key");
+ }
}
} catch (Exception $e) {
throw new Exception("Error loading private key: " . $e);