aboutsummaryrefslogtreecommitdiffstats
path: root/mod/modexp.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-13 20:53:33 -0800
committerfriendica <info@friendica.com>2012-11-13 20:53:33 -0800
commit6ac5e048b3dc5206331186bab571e02f75c3454c (patch)
tree571e38a3849375e2d2f7c27bd3f3754c95648230 /mod/modexp.php
parentaa88165383b14c35114549334567f362e9c83e54 (diff)
downloadvolse-hubzilla-6ac5e048b3dc5206331186bab571e02f75c3454c.tar.gz
volse-hubzilla-6ac5e048b3dc5206331186bab571e02f75c3454c.tar.bz2
volse-hubzilla-6ac5e048b3dc5206331186bab571e02f75c3454c.zip
cleanup
Diffstat (limited to 'mod/modexp.php')
-rw-r--r--mod/modexp.php34
1 files changed, 0 insertions, 34 deletions
diff --git a/mod/modexp.php b/mod/modexp.php
deleted file mode 100644
index a869fc1f9..000000000
--- a/mod/modexp.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-require_once('library/asn1.php');
-
-function modexp_init(&$a) {
-
- if($a->argc != 2)
- killme();
-
- $nick = $a->argv[1];
- $r = q("SELECT `pubkey` FROM `user` WHERE `nickname` = '%s' LIMIT 1",
- dbesc($nick)
- );
-
- if(! count($r))
- killme();
-
- $lines = explode("\n",$r[0]['pubkey']);
- unset($lines[0]);
- unset($lines[count($lines)]);
- $x = base64_decode(implode('',$lines));
-
- $r = ASN_BASE::parseASNString($x);
-
- $m = $r[0]->asnData[1]->asnData[0]->asnData[0]->asnData;
- $e = $r[0]->asnData[1]->asnData[0]->asnData[1]->asnData;
-
- header("Content-type: application/magic-public-key");
- echo 'RSA' . '.' . $m . '.' . $e ;
-
- killme();
-
-}
-