Commit graph

159 commits

Author SHA1 Message Date
bunnie
83256257e1 bump xous-rs crate to absorb Send derives on Messages
this is necessary for the smoltcp port
2023-10-03 20:54:14 +08:00
bunnie
7e204604e9
Merge pull request #418 from nworbnhoj/chat
integrate tls trusted root_store into mtxchat
2023-09-26 11:02:18 +08:00
nworbnhoj
61c1747475 integrate tls trusted root_store into mtxchat
Set up tls with rustls::ClientConnection,
BUT - on Error::InvalidCertificate - then
probe the host for the untrusted certificate chain and prompt the user
to perhaps trust one of the certificates in the chain - then try again.
2023-09-25 11:22:47 +10:00
bunnie
e6c61455ba update PIO code for SoC integration
- add duart debug for bare iron testing
- add wait states on FIFO commits for when CPU clock is much
faster than PIO clock.

more wait states will be needed for correct operation in the
future
2023-09-22 22:19:32 +08:00
bunnie
08827633ac bring Chat dependencies up to date 2023-09-19 19:41:56 +08:00
bunnie
a00672cd27 fix missing use statements in tls lib 2023-09-19 19:39:27 +08:00
bunnie
b3e9108bb7
Merge branch 'main' into revert-414-revert-409-tls.probe 2023-09-19 19:28:30 +08:00
bunnie
9f57ad96fd
Merge pull request #408 from nworbnhoj/chat
mtxchat app and chat library
2023-09-19 19:09:56 +08:00
bunnie
c5d81ef08b
initialize menu before mounting PDDB
This is necessary because mounting the PDDB is a "secure" operation, and secure ops will fail until all UX contexts are occupied.

This problem does not manifest in hosted mode because we cheat and automount the PDDB in hosted mode.
2023-09-19 19:08:36 +08:00
nworbnhoj
7803efec7f pass room_alias aka dialogue_id aka dialogue.pddb_key to mtxchat.listen()
this ensures that new Matrix Events received from the server are added to the correct chat::Dialogue
2023-09-18 18:49:59 +10:00
bunnie
82c7b6ebed bring the versions up to date with main for a cleaner merge 2023-09-15 16:32:04 +08:00
bunnie
885e877b43 add features for mdma test to control RAM src/dest regions
The MDMA controller seems broken on the FPGA board, but is working
in RTL. Add a feature flag that allows us to toggle between modes.
2023-09-15 15:09:20 +08:00
bunnie
ab8a5aefcf fix target dependency options 2023-09-15 11:25:22 +08:00
bunnie
49eaac1b46 fix port I/O settings 2023-09-15 11:25:08 +08:00
bunnie
d47bc1af0a remove pio_generated, we should now be relying on utra 2023-09-14 16:25:14 +08:00
bunnie
2387aa4dff migrate to latest pio; tweaks to PIO tests 2023-09-14 16:24:39 +08:00
nworbnhoj
61743a9c76 mtxchat tidy-up 2023-09-14 05:30:33 +10:00
bunnie
06953cec55 remove overly sensitive test case
this case is too sensitive to clock config outside of the PIO
block, because it relies on some specificts of how inter-bus sync
works and the environment is free to set PIO and PCLK relationship
arbitrarily
2023-09-13 10:29:14 +08:00
nworbnhoj
d8db9ad2a7 fix tls::rota.public_key() 2023-09-13 07:20:10 +10:00
nworbnhoj
a06d84d8a9 convert mtxchat to use tls.root_store()
a ureq::Agent is configured to use tls.root_store(), and used for all comms with the matrix server
2023-09-13 07:18:22 +10:00
nworbnhoj
c22419f7c7 bump rustls to harmonize versions 2023-09-13 06:57:39 +10:00
bunnie
b29d29eb0e
Revert "Revert "Tls.probe"" 2023-09-12 19:55:50 +08:00
bunnie
7efcca39d5
Revert "Tls.probe" 2023-09-12 19:13:11 +08:00
bunnie
478a612c02 commit version bump 2023-09-12 16:25:10 +08:00
bunnie
1ebee74bb1
Merge pull request #409 from nworbnhoj/tls.probe
Tls.probe
2023-09-12 16:07:52 +08:00
nworbnhoj
d4c5ae1447 convert tls::danger to non-public 2023-09-11 13:49:48 +10:00
nworbnhoj
5cacb9c20e TLS tidy-up 2023-09-11 09:37:09 +10:00
nworbnhoj
d57c1143bb TLS doco 2023-09-11 09:35:49 +10:00
nworbnhoj
8ab3aa85be implement tls.probe(target)
moved from tls::cmd to tls::lib
2023-09-11 08:59:08 +10:00
nworbnhoj
a46dad11d2 mtxchat tidy-up 2023-09-09 10:36:37 +10:00
nworbnhoj
c50cc73610 mtxchat add navigation help on first login
chat add help navigation modal
2023-09-09 10:24:52 +10:00
nworbnhoj
a7d3b34563 Merge branch 'main' into chat 2023-09-08 13:48:45 +10:00
nworbnhoj
3542103510 mtxchat tidy-up 2023-09-08 13:46:52 +10:00
nworbnhoj
ff68567140 chat UI rawkeys toggle menu_mode & raise app/msg menus 2023-09-07 11:38:21 +10:00
nworbnhoj
c7c0041922 Chat readme & comments 2023-09-01 05:41:40 +10:00
nworbnhoj
2f157d5957 implement ChatOp::Dialogue::Save 2023-08-30 04:46:44 +10:00
nworbnhoj
7b7a7003f1 implement chat Dialogue navigation with up/down keys 2023-08-28 09:58:57 +10:00
nworbnhoj
77f25bc416 implement chat icontray 2023-08-23 09:04:42 +10:00
nworbnhoj
197ed63058 chat tidy-up 2023-08-22 16:59:26 +10:00
bunnie
f3a2cba755 map the I/Os so we can see the UART toggle 2023-08-21 18:52:43 +08:00
nworbnhoj
4f03a27e79 implement chat app_menu 2023-08-15 04:27:15 +10:00
nworbnhoj
b095462f29 implement mtxchat post() 2023-08-15 04:11:13 +10:00
nworbnhoj
3392b30794 fix Chat::Dialogue.post_add() duplication 2023-08-12 06:36:28 +10:00
nworbnhoj
0ef1d79725 refine Chat::Dialogue.post_find() 2023-08-11 06:40:37 +10:00
nworbnhoj
dc8102c627 refine Chat::Dialogue.post_add() 2023-08-11 06:04:02 +10:00
nworbnhoj
ca211e170a implement mtxchat.connect() 2023-08-11 05:24:50 +10:00
nworbnhoj
62a3bae502 extend chat::Dialogue to accept Option<pddb_key>
extend ui.dialogue_set() to select existing Dialogue when operating offline
2023-08-10 20:22:15 +10:00
nworbnhoj
defac5ed7e implement chat.dialogue_modal()
allowing the chat UI to list & select an existing dialogue in the current pddb dict
2023-08-10 20:15:00 +10:00
bunnie
53469a68d0 publish package updates, sync to release tag 2023-08-08 14:35:49 +08:00
nworbnhoj
50f06e2f78 implement mtxchat::MtxChat::listen() 2023-08-07 06:20:15 +10:00