aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-08-21 17:42:19 -0700
committerfriendica <info@friendica.com>2014-08-21 17:42:19 -0700
commit921799b045c376c2ffe80a0c4fe0dc6c2c78e854 (patch)
treebb67e2285bd0402c855dc7eaf819385812391b33 /include
parent831714f0f0e5bd9a17c760a2476a12603be5d089 (diff)
downloadvolse-hubzilla-921799b045c376c2ffe80a0c4fe0dc6c2c78e854.tar.gz
volse-hubzilla-921799b045c376c2ffe80a0c4fe0dc6c2c78e854.tar.bz2
volse-hubzilla-921799b045c376c2ffe80a0c4fe0dc6c2c78e854.zip
make the old personal xrd interface (old webfinger) work again
Diffstat (limited to 'include')
-rw-r--r--include/crypto.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/crypto.php b/include/crypto.php
index c053dfae2..07655e24f 100644
--- a/include/crypto.php
+++ b/include/crypto.php
@@ -1,5 +1,8 @@
<?php /** @file */
+require_once('library/ASNValue.class.php');
+require_once('library/asn1.php');
+
function rsa_sign($data,$key,$alg = 'sha256') {
if(! $key)
return 'no key';
@@ -241,7 +244,6 @@ function metopem($m,$e) {
function pubrsatome($key,&$m,&$e) {
require_once('library/asn1.php');
- require_once('include/salmon.php');
$lines = explode("\n",$key);
unset($lines[0]);
@@ -266,7 +268,6 @@ function pemtorsa($key) {
}
function pemtome($key,&$m,&$e) {
- require_once('include/salmon.php');
$lines = explode("\n",$key);
unset($lines[0]);
unset($lines[count($lines)]);