From 7575ff11fb06c03364fd0cb15a08e8aebbfc2e41 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 23 Mar 2014 18:34:17 -0700 Subject: make sure crypto is loaded before creating a keypair --- include/identity.php | 1 + 1 file changed, 1 insertion(+) (limited to 'include/identity.php') diff --git a/include/identity.php b/include/identity.php index 78c4a4aed..c25a3da43 100644 --- a/include/identity.php +++ b/include/identity.php @@ -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']); -- cgit v1.2.3