diff options
author | Richard van der Hoff <richard@matrix.org> | 2016-05-17 18:55:39 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2016-05-24 13:39:34 +0100 |
commit | e545ad7eaf55ac8b7dc7d37c046c541e35cef542 (patch) | |
tree | 2d80aa3d3a420a21478d54d8b51ed69d79eb7115 /python/test_olm.sh | |
parent | c058554132a0f97e8e8ae3a402605220f8fdaed4 (diff) |
Outbound group session support in the python wrappers
Diffstat (limited to 'python/test_olm.sh')
-rwxr-xr-x | python/test_olm.sh | 8 |
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 - - |