It generates a QR code (or a string) to verify OMEMO fingerprints.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

omemo-gen-get-devicelist-of 723B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/bash
  2. CONFIG_DIR="$HOME/.config"
  3. CONFIG="$CONFIG_DIR/jabberdevlistscript"
  4. if ! [ -e "$CONFIG" ]; then
  5. read -p "FROM is not set. Enter your Jabber ID: " FROM
  6. mkdir -p $CONFIG_DIR
  7. echo "FROM=$FROM" > $CONFIG
  8. echo "If you want to change your FROM later, just edit or remove $CONFIG"
  9. else
  10. source $CONFIG
  11. fi
  12. if [ -z "$1" ]; then
  13. echo "$0: Missing argument."
  14. echo "Usage: $0 [ Jabber ID of wished device list ]"
  15. echo "Config file: $CONFIG"
  16. exit 1
  17. fi
  18. echo "$CONFIG loaded."
  19. echo "
  20. ---COPY HERE---
  21. <iq type='get' from='$FROM' to='$1' id='fetch1'>
  22. <pubsub xmlns='http://jabber.org/protocol/pubsub'>
  23. <items node='eu.siacs.conversations.axolotl.devicelist'/>
  24. </pubsub>
  25. </iq>
  26. ---END COPY HERE---
  27. "