changeset 1011:48b9a040a04b draft

Merge branch 'master' of git://git1.srn.ano
author icann <icann@icann.ano>
date Thu, 06 Sep 2012 19:27:26 +0000
parents 73b7d30959af (diff) ff0787eb3d5e (current diff)
children cd6c3110c354
files
diffstat 33 files changed, 63 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/as/975/owner	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+Name
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/dom/ano/name/ns/1.22.22.1	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/dom/ano/name/owner	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+Name
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/ip/01/16/16/cidr	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+1.22.22.0/24
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/ip/01/16/16/owner	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+Name
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/FFF/@/.gitignore	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+temp.keys
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/FFF/@/default.key	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+e514dbf335addab8f95e14084f9948e549b73078befbbf61328bf63c5dcfca27
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/FFF/@/owner	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+keiko
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/FFF/@/path	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+/FFF
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/IcannNet/@/.gitignore	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+temp.keys
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/IcannNet/@/default.key	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+042e1a6f24b0847ceee261a9f213ffe1fa17dfd4e62348604cb2e2156ce20d3a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/IcannNet/@/owner	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+icann
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/IcannNet/@/path	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+/IcannNet
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/IcannNet/Clandestine/@/.gitignore	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+temp.keys
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/IcannNet/Clandestine/@/default.key	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+3de75a1b61212b15838ebb57cc29dd5731d240cb83816894e761ccd0e1ef6d42
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/IcannNet/Clandestine/@/owner	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+d3v11
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/IcannNet/Clandestine/@/path	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+/IcannNet/Clandestine
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/NeXuS/@/.gitignore	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+temp.keys
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/NeXuS/@/default.key	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+ab6f47bcfd1a50ae62762bd94c4a8ec5e2b5bf60cb97aae2d4f52fa519fd447f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/NeXuS/@/owner	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+mama
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/NeXuS/@/path	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+/NeXus
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/relayhell/WeeD/@/.gitignore	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+temp.keys
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/relayhell/WeeD/@/default.key	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+c26b04eaeadb83e256b915e911e4c3c3f52ba9dbd71cd226fc0ef3db08cb006c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/relayhell/WeeD/@/owner	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+weed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/relayhell/WeeD/@/path	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+/relayhell/WeeD
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/relayhell/nyx/@/.gitignore	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+temp.keys
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/relayhell/nyx/@/default.key	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+89b2093e7579c5568cc2301ad08efea743059ecb4e0b15b28fca9b1abdc41267
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/relayhell/nyx/@/owner	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+nyx
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4/relayhell/nyx/@/path	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+/relayhell/nyx
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4_chat/anonet/@/owner	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+legion
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4_chat/anonet/@/pubkey	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+f5fc06fc146eb7ebabe2dbfa7711346703e976ba021062b4e976f9007f0dda4f
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/db/udpmsg4_chat/anonet/@/seckey	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,1 @@
+f0b05bc6e944a3e9f5315df5a8b57706b25d8c02e4d86f8558664d015fb3f784
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/add_udpmsg4_chat	Thu Sep 06 19:27:26 2012 +0000
@@ -0,0 +1,31 @@
+#!/bin/sh
+if [ -z $3 ]; then
+ echo "Usage: $0 <chat> <owner> <pubkey> <seckey>" >&2; exit 255
+fi
+chat="$1"
+owner="$2"
+pubkey="$3"
+seckey="$4"
+
+if [ "$(echo -n "${chat/chat\//}" | tr -d 'A-Za-z0-9_-' | wc -c | tr -d ' \t')" != 0 ]; then
+ echo "udpmsg4 chats do not allow funny chars." >&2; exit 255
+fi
+if ((`echo -n "${chat/chat\//}" | wc -c` > 32)); then
+ echo "udpmsg4 chats cannot be greater than 32 chars." >&2; exit 255
+fi
+if [ "$(echo "$chat" | head -c5)" != chat/ ]; then
+ echo "udpmsg4 chats start with chat/." >&2; exit 255
+fi
+if ((`echo -n "$pubkey$seckey" | tr -d 'a-fA-F0-9' | wc -c | tr -d ' \t'` != 0)); then
+ echo "nacl keys are hex chars." >&2; exit 255
+fi
+if ((`echo -n "$pubkey$seckey" | wc -c` != 128)); then
+ echo "nacl keys are 64 chars." >&2; exit 255
+fi
+
+fullchat=db/udpmsg4_chat/${chat/chat\//}
+mkdir -p $fullchat || exit 1
+mkdir -p $fullchat/@ || exit 1
+echo -n "$owner" >"$fullchat/@/owner"
+echo -n "$pubkey" >"$fullchat/@/pubkey"
+echo -n "$seckey" >"$fullchat/@/seckey"