report failure to generate keys

This commit is contained in:
Friendika 2010-11-24 14:49:35 -08:00
parent 81636f6f5f
commit 85a6e9634a

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);