make sure crypto is loaded before creating a keypair

This commit is contained in:
friendica 2014-03-23 18:34:17 -07:00
parent 0a5d0d98f8
commit 7575ff11fb

View File

@ -84,6 +84,7 @@ function create_sys_channel() {
// Ensure that there is a host keypair.
if((! get_config('system','pubkey')) && (! get_config('system','prvkey'))) {
require_once('include/crypto.php');
$hostkey = new_keypair(4096);
set_config('system','pubkey',$hostkey['pubkey']);
set_config('system','prvkey',$hostkey['prvkey']);