aboutsummaryrefslogtreecommitdiff
path: root/python/test_olm.sh
diff options
context:
space:
mode:
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