aboutsummaryrefslogtreecommitdiffstats
path: root/include/salmon.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-01 16:51:01 -0700
committerFriendika <info@friendika.com>2011-08-01 16:51:01 -0700
commit8b31ff15f51c6936daedf28cc88c753214b569e0 (patch)
treea92622b9803c7cb85cdb5b05edadde78f9511fe5 /include/salmon.php
parente76990ae7bffdcc5f1c54146f54fc11729c537b7 (diff)
downloadvolse-hubzilla-8b31ff15f51c6936daedf28cc88c753214b569e0.tar.gz
volse-hubzilla-8b31ff15f51c6936daedf28cc88c753214b569e0.tar.bz2
volse-hubzilla-8b31ff15f51c6936daedf28cc88c753214b569e0.zip
breaking up boot file (part of zot refactor)
Diffstat (limited to 'include/salmon.php')
-rw-r--r--include/salmon.php31
1 files changed, 0 insertions, 31 deletions
diff --git a/include/salmon.php b/include/salmon.php
index 473432f25..4994655df 100644
--- a/include/salmon.php
+++ b/include/salmon.php
@@ -18,37 +18,6 @@ function salmon_key($pubkey) {
}
-function base64url_encode($s, $strip_padding = false) {
-
- $s = strtr(base64_encode($s),'+/','-_');
-
- if($strip_padding)
- $s = str_replace('=','',$s);
-
- return $s;
-}
-
-function base64url_decode($s) {
-
-/*
- * // Placeholder for new rev of salmon which strips base64 padding.
- * // PHP base64_decode handles the un-padded input without requiring this step
- * // Uncomment if you find you need it.
- *
- * $l = strlen($s);
- * if(! strpos($s,'=')) {
- * $m = $l % 4;
- * if($m == 2)
- * $s .= '==';
- * if($m == 3)
- * $s .= '=';
- * }
- *
- */
-
- return base64_decode(strtr($s,'-_','+/'));
-}
-
function get_salmon_key($uri,$keyhash) {
$ret = array();