From 85a6e9634a480f094d3acbce9aa0ce0aa1e6b29c Mon Sep 17 00:00:00 2001 From: Friendika Date: Wed, 24 Nov 2010 14:49:35 -0800 Subject: [PATCH] report failure to generate keys --- mod/register.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mod/register.php b/mod/register.php index 20ea0175a..82791bb5d 100644 --- a/mod/register.php +++ b/mod/register.php @@ -113,6 +113,11 @@ function register_post(&$a) { // Get private key + if(empty($res)) { + notice( t('SERIOUS ERROR: Generation of security keys failed.') . EOL); + return; + } + $prvkey = ''; openssl_pkey_export($res, $prvkey);