report failure to generate keys

This commit is contained in:
Friendika 2010-11-24 14:49:35 -08:00
parent 81636f6f5f
commit 85a6e9634a
1 changed files with 5 additions and 0 deletions

View File

@ -113,6 +113,11 @@ function register_post(&$a) {
// Get private key // Get private key
if(empty($res)) {
notice( t('SERIOUS ERROR: Generation of security keys failed.') . EOL);
return;
}
$prvkey = ''; $prvkey = '';
openssl_pkey_export($res, $prvkey); openssl_pkey_export($res, $prvkey);