aboutsummaryrefslogtreecommitdiff
path: root/python/test_olm.sh
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2016-05-19 12:01:15 +0100
committerRichard van der Hoff <richard@matrix.org>2016-05-24 13:40:21 +0100
commit846ab858a6dd2e962d3e110147f4274416026f5a (patch)
treefb48cda858d3d5cbeecda87a8a6a2716fe14afbf /python/test_olm.sh
parentfc4756ddf17f536912a89a4ffcf90a309c236ced (diff)
Python wrapper: support for inbound group sessions
Diffstat (limited to 'python/test_olm.sh')
-rwxr-xr-xpython/test_olm.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/test_olm.sh b/python/test_olm.sh
index 0ea1623..da69581 100755
--- a/python/test_olm.sh
+++ b/python/test_olm.sh
@@ -7,10 +7,11 @@ ALICE_SESSION=alice.session
ALICE_GROUP_SESSION=alice.group_session
BOB_ACCOUNT=bob.account
BOB_SESSION=bob.session
+BOB_GROUP_SESSION=bob.group_session
rm $ALICE_ACCOUNT $BOB_ACCOUNT
rm $ALICE_SESSION $BOB_SESSION
-rm $ALICE_GROUP_SESSION
+rm $ALICE_GROUP_SESSION $BOB_GROUP_SESSION
$OLM create_account $ALICE_ACCOUNT
$OLM create_account $BOB_ACCOUNT
@@ -27,4 +28,5 @@ echo "Hello world" | $OLM encrypt $ALICE_SESSION - - | $OLM inbound $BOB_ACCOUNT
### group sessions
$OLM outbound_group $ALICE_GROUP_SESSION
-echo "Hello world" | $OLM group_encrypt $ALICE_GROUP_SESSION - -
+$OLM group_credentials $ALICE_GROUP_SESSION | $OLM inbound_group $BOB_GROUP_SESSION
+echo "Hello group" | $OLM group_encrypt $ALICE_GROUP_SESSION - - | $OLM group_decrypt $BOB_GROUP_SESSION