summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authord3v11 <d3v11@d3v11.ano>2012-10-06 22:06:10 +0000
committerd3v11 <d3v11@d3v11.ano>2012-10-06 22:06:10 +0000
commit2dd865a6462d8e9a33f7529fda4dc87227d67256 (patch)
tree8f09c60d0ed7cb1df43500e74d524c8d139a9de1
parentaf3e7bc29c6ac2e5369655595602936514427345 (diff)
downloadresdb-2dd865a6462d8e9a33f7529fda4dc87227d67256.tar.gz
resdb-2dd865a6462d8e9a33f7529fda4dc87227d67256.zip
[scripts/add_udpmsg4_chat] [security] .gitignore seckey (thanks Ivo)
-rw-r--r--db/udpmsg4_chat/anonet/@/owner1
-rw-r--r--db/udpmsg4_chat/anonet/@/pubkey1
-rw-r--r--db/udpmsg4_chat/anonet/@/seckey1
-rw-r--r--db/udpmsg4_chat/freeanons/@/owner1
-rw-r--r--db/udpmsg4_chat/freeanons/@/pubkey1
-rw-r--r--db/udpmsg4_chat/freeanons/@/seckey1
-rwxr-xr-xscripts/add_udpmsg4_chat7
7 files changed, 5 insertions, 8 deletions
diff --git a/db/udpmsg4_chat/anonet/@/owner b/db/udpmsg4_chat/anonet/@/owner
deleted file mode 100644
index d6d8c78..0000000
--- a/db/udpmsg4_chat/anonet/@/owner
+++ /dev/null
@@ -1 +0,0 @@
-legion \ No newline at end of file
diff --git a/db/udpmsg4_chat/anonet/@/pubkey b/db/udpmsg4_chat/anonet/@/pubkey
deleted file mode 100644
index da16ce5..0000000
--- a/db/udpmsg4_chat/anonet/@/pubkey
+++ /dev/null
@@ -1 +0,0 @@
-f5fc06fc146eb7ebabe2dbfa7711346703e976ba021062b4e976f9007f0dda4f \ No newline at end of file
diff --git a/db/udpmsg4_chat/anonet/@/seckey b/db/udpmsg4_chat/anonet/@/seckey
deleted file mode 100644
index d96d72f..0000000
--- a/db/udpmsg4_chat/anonet/@/seckey
+++ /dev/null
@@ -1 +0,0 @@
-f0b05bc6e944a3e9f5315df5a8b57706b25d8c02e4d86f8558664d015fb3f784 \ No newline at end of file
diff --git a/db/udpmsg4_chat/freeanons/@/owner b/db/udpmsg4_chat/freeanons/@/owner
deleted file mode 100644
index d6d8c78..0000000
--- a/db/udpmsg4_chat/freeanons/@/owner
+++ /dev/null
@@ -1 +0,0 @@
-legion \ No newline at end of file
diff --git a/db/udpmsg4_chat/freeanons/@/pubkey b/db/udpmsg4_chat/freeanons/@/pubkey
deleted file mode 100644
index da16ce5..0000000
--- a/db/udpmsg4_chat/freeanons/@/pubkey
+++ /dev/null
@@ -1 +0,0 @@
-f5fc06fc146eb7ebabe2dbfa7711346703e976ba021062b4e976f9007f0dda4f \ No newline at end of file
diff --git a/db/udpmsg4_chat/freeanons/@/seckey b/db/udpmsg4_chat/freeanons/@/seckey
deleted file mode 100644
index d96d72f..0000000
--- a/db/udpmsg4_chat/freeanons/@/seckey
+++ /dev/null
@@ -1 +0,0 @@
-f0b05bc6e944a3e9f5315df5a8b57706b25d8c02e4d86f8558664d015fb3f784 \ No newline at end of file
diff --git a/scripts/add_udpmsg4_chat b/scripts/add_udpmsg4_chat
index 6600fad..594e20f 100755
--- a/scripts/add_udpmsg4_chat
+++ b/scripts/add_udpmsg4_chat
@@ -1,11 +1,12 @@
#!/bin/sh
-if [ -z $3 ]; then
- echo "Usage: $0 <chat> <owner> <pubkey> <seckey>" >&2; exit 255
+if [ -z $5 ]; then
+ echo "Usage: $0 <chat> <owner> <pubkey> <seckey> <topic>" >&2; exit 255
fi
chat="$1"
owner="$2"
pubkey="$3"
seckey="$4"
+topic="$5"
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
@@ -29,3 +30,5 @@ mkdir -p $fullchat/@ || exit 1
echo -n "$owner" >"$fullchat/@/owner"
echo -n "$pubkey" >"$fullchat/@/pubkey"
echo -n "$seckey" >"$fullchat/@/seckey"
+echo -n "$topic" >"$fullchat/@/topic"
+echo -n "seckey" >"$fullchat/@/.gitignore"