aboutsummaryrefslogtreecommitdiffstats
path: root/include/identity.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-03-23 18:34:17 -0700
committerfriendica <info@friendica.com>2014-03-23 18:34:17 -0700
commit7575ff11fb06c03364fd0cb15a08e8aebbfc2e41 (patch)
tree37fe96dfc3ebc24866c267d472d5f509e98448df /include/identity.php
parent0a5d0d98f8eda3b7e7dbe22e8031d19ea4f00520 (diff)
downloadvolse-hubzilla-7575ff11fb06c03364fd0cb15a08e8aebbfc2e41.tar.gz
volse-hubzilla-7575ff11fb06c03364fd0cb15a08e8aebbfc2e41.tar.bz2
volse-hubzilla-7575ff11fb06c03364fd0cb15a08e8aebbfc2e41.zip
make sure crypto is loaded before creating a keypair
Diffstat (limited to 'include/identity.php')
-rw-r--r--include/identity.php1
1 files changed, 1 insertions, 0 deletions
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']);