make sure crypto is loaded before creating a keypair
This commit is contained in:
parent
0a5d0d98f8
commit
7575ff11fb
@ -84,6 +84,7 @@ function create_sys_channel() {
|
|||||||
// Ensure that there is a host keypair.
|
// Ensure that there is a host keypair.
|
||||||
|
|
||||||
if((! get_config('system','pubkey')) && (! get_config('system','prvkey'))) {
|
if((! get_config('system','pubkey')) && (! get_config('system','prvkey'))) {
|
||||||
|
require_once('include/crypto.php');
|
||||||
$hostkey = new_keypair(4096);
|
$hostkey = new_keypair(4096);
|
||||||
set_config('system','pubkey',$hostkey['pubkey']);
|
set_config('system','pubkey',$hostkey['pubkey']);
|
||||||
set_config('system','prvkey',$hostkey['prvkey']);
|
set_config('system','prvkey',$hostkey['prvkey']);
|
||||||
|
Reference in New Issue
Block a user