aboutsummaryrefslogtreecommitdiffstats
path: root/include/crypto.php
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2014-08-22 09:14:19 +0200
committermarijus <mario@mariovavti.com>2014-08-22 09:14:19 +0200
commitc5f4e5bac76de93b30c00fa9fb3dc8a559d7b070 (patch)
treefcb7c92735bbcbae9359d3fcf91a185226698426 /include/crypto.php
parent85ef5c10333ce4ce9d7e2d4b17caa4b1e7c871ef (diff)
parent1abd2a2917504d102a6e4c6a9c34fa4a5fba4937 (diff)
downloadvolse-hubzilla-c5f4e5bac76de93b30c00fa9fb3dc8a559d7b070.tar.gz
volse-hubzilla-c5f4e5bac76de93b30c00fa9fb3dc8a559d7b070.tar.bz2
volse-hubzilla-c5f4e5bac76de93b30c00fa9fb3dc8a559d7b070.zip
Merge branch 'master' of https://github.com/friendica/red into upstream
Diffstat (limited to 'include/crypto.php')
-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)]);