aboutsummaryrefslogtreecommitdiff
path: root/python/test_olm.sh
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2016-05-17 18:55:39 +0100
committerRichard van der Hoff <richard@matrix.org>2016-05-24 13:39:34 +0100
commite545ad7eaf55ac8b7dc7d37c046c541e35cef542 (patch)
tree2d80aa3d3a420a21478d54d8b51ed69d79eb7115 /python/test_olm.sh
parentc058554132a0f97e8e8ae3a402605220f8fdaed4 (diff)
Outbound group session support in the python wrappers
Diffstat (limited to 'python/test_olm.sh')
-rwxr-xr-xpython/test_olm.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/test_olm.sh b/python/test_olm.sh
index b575cbf..0ea1623 100755
--- a/python/test_olm.sh
+++ b/python/test_olm.sh
@@ -4,11 +4,13 @@ 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
rm $ALICE_ACCOUNT $BOB_ACCOUNT
rm $ALICE_SESSION $BOB_SESSION
+rm $ALICE_GROUP_SESSION
$OLM create_account $ALICE_ACCOUNT
$OLM create_account $BOB_ACCOUNT
@@ -20,3 +22,9 @@ BOB_ONE_TIME_KEY="$($OLM keys --json $BOB_ACCOUNT | jq -r '.one_time_keys.curve2
$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
+echo "Hello world" | $OLM group_encrypt $ALICE_GROUP_SESSION - -