report failure to generate keys
This commit is contained in:
parent
81636f6f5f
commit
85a6e9634a
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue