aboutsummaryrefslogtreecommitdiff
path: root/python/test_olm.sh
diff options
context:
space:
mode:
authorDamir Jelić <poljar@termina.org.uk>2018-07-08 12:19:15 +0200
committerHubert Chathi <hubert@uhoreg.ca>2018-07-18 17:44:32 -0400
commit2fccf44015dfb27865ddb50ed66afdedbd4e03e6 (patch)
treed0de620efb1e4871a8311685998eeb6f1508d777 /python/test_olm.sh
parent0dc27f73c4c15f15e6507d0be7d152cf1ae26a41 (diff)
python: Remove the python bindings.
Signed-off-by: Damir Jelić <poljar@termina.org.uk>
Diffstat (limited to 'python/test_olm.sh')
-rwxr-xr-xpython/test_olm.sh46
1 files changed, 0 insertions, 46 deletions
diff --git a/python/test_olm.sh b/python/test_olm.sh
deleted file mode 100755
index 1554720..0000000
--- a/python/test_olm.sh
+++ /dev/null
@@ -1,46 +0,0 @@
-#! /bin/bash
-
-set -e
-
-cd `dirname $0`
-
-OLM="python -m olm"
-
-ALICE_ACCOUNT=alice.account
-ALICE_SESSION=alice.session
-ALICE_GROUP_SESSION=alice.group_session
-BOB_ACCOUNT=bob.account
-BOB_SESSION=bob.session
-BOB_GROUP_SESSION=bob.group_session
-CHARLIE_GROUP_SESSION=charlie.group_session
-
-rm -f $ALICE_ACCOUNT $BOB_ACCOUNT
-rm -f $ALICE_SESSION $BOB_SESSION
-rm -f $ALICE_GROUP_SESSION $BOB_GROUP_SESSION $CHARLIE_GROUP_SESSION
-
-$OLM create_account $ALICE_ACCOUNT
-$OLM create_account $BOB_ACCOUNT
-$OLM generate_keys $BOB_ACCOUNT 1
-
-BOB_IDENTITY_KEY="$($OLM identity_key $BOB_ACCOUNT)"
-BOB_ONE_TIME_KEY="$($OLM one_time_key $BOB_ACCOUNT)"
-
-$OLM outbound $ALICE_ACCOUNT $ALICE_SESSION "$BOB_IDENTITY_KEY" "$BOB_ONE_TIME_KEY"
-
-echo "Hello world" | $OLM encrypt $ALICE_SESSION - - | $OLM inbound $BOB_ACCOUNT $BOB_SESSION - -
-
-
-### group sessions
-
-$OLM outbound_group $ALICE_GROUP_SESSION
-$OLM group_credentials $ALICE_GROUP_SESSION | $OLM inbound_group $BOB_GROUP_SESSION
-echo "Hello group" | $OLM group_encrypt $ALICE_GROUP_SESSION - group_message
-$OLM group_decrypt $BOB_GROUP_SESSION group_message
-
-$OLM export_inbound_group $BOB_GROUP_SESSION | $OLM import_inbound_group $CHARLIE_GROUP_SESSION
-$OLM group_decrypt $CHARLIE_GROUP_SESSION group_message
-
-### Sign/verify
-ALICE_SIGNING_KEY="$($OLM signing_key $ALICE_ACCOUNT)"
-sig="$(echo "Test message" | $OLM sign $ALICE_ACCOUNT - -)"
-echo "Test message" | $OLM ed25519_verify $ALICE_SIGNING_KEY $sig -