Commit graph

10340 commits

Author SHA1 Message Date
bunnie
23a9b0cc34 add more helpful debug output for token claim failure 2023-12-24 22:14:39 +08:00
bunnie
9757c72519 add header for v0.9.16 release notes 2023-12-24 16:38:36 +08:00
bunnie
6c66e50bcc add changes to rust std to release notes 2023-12-24 16:38:04 +08:00
bunnie
dbc13e7a47
Merge pull request #469 from betrusted-io/minor-renode-fixes
Minor renode fixes
2023-12-24 15:55:24 +08:00
Sean Cross
a19b1b4f51 kernel: use wfi() on Renode
While it would be nice if we stopped the PLLs as we do on hardware,
Renode does not yet have the ability to issue the `wfi` instruction from
a peripheral write.

As such, directly call `wfi()` on Renode similar to how Cramium
operates.

Signed-off-by: Sean Cross <sean@xobs.io>
2023-12-24 15:20:11 +08:00
Sean Cross
7087b8f018 emulation: add RebootOnExpiry to wdt
When running the system without the UI, sometimes it's useful to avoid
the WDT resetting the whole system.

Signed-off-by: Sean Cross <sean@xobs.io>
2023-12-24 15:18:36 +08:00
bunnie
f9cf822efb fix #466
reverts pin to the published version on crates.io for smoltcp
2023-12-24 12:11:18 +08:00
nworbnhoj
854b2198c4 tls doc & tidy-up 2023-12-24 06:03:26 +11:00
bunnie
aaa52ca02c fix warning in en-tts build 2023-12-23 23:50:57 +08:00
Sean Cross
0673ad912c kernel: gdb: don't panic when accessing kernel memory
Instead, just return 0x00000000.

Signed-off-by: Sean Cross <sean@xobs.io>
2023-12-22 23:24:39 +08:00
bunnie
9c2523ded4 fix #227 2023-12-22 22:20:55 +08:00
bunnie
c483890f9c update release notes 2023-12-22 22:06:16 +08:00
bunnie
46588a418c pin smoltcp to a local fork
we need to tag out a release, so we're temporarily forking
`smoltcp` at its current head, testing it, and holding it
there until a full release is tagged out that captures all
of the good stuff that has been going on in that repo since
June.
2023-12-22 22:04:07 +08:00
nworbnhoj
5e1c6f6276 re-implement Sigchat.probe_host() using Tls.accessible()
now the user is only presented with the tls trust_modal when none of the required CA's are trusted
2023-12-22 14:29:06 +11:00
nworbnhoj
5703707cca implement Tls.accessible() 2023-12-22 14:25:51 +11:00
nworbnhoj
7d72387cb9 simplify TLS.probe() modals 2023-12-22 14:24:08 +11:00
nworbnhoj
0ca24db2f0 implement Tls.is_trusted_cert() & Tls.is_trusted_x509() 2023-12-22 14:23:04 +11:00
bunnie
5a096c3343 bump smoltcp rev 2023-12-22 09:39:27 +08:00
bunnie
4917d16a02 add some notes about debugging smoltcp 2023-12-22 09:39:11 +08:00
bunnie
85def0adc5 don't block on connection manager
refactor CM routines so if the CM is hung it won't block the net
main thread.
2023-12-22 09:38:43 +08:00
bunnie
fcd7bc9bb8 allow pump to be falliable
attempt to reduce blocking in net path
2023-12-22 09:36:17 +08:00
nworbnhoj
6e1947d3b0 rename Tls.*_cert() to Tls.*_rota()
actually this is a correction of the names of these fn
these fn are actually handling trust_anchors rather than certificates
and in some cases we will need equivalent fn for certificates
2023-12-21 16:33:47 +11:00
nworbnhoj
12c74e724f implement Tls.inspect(host)
Tls.probe() now returns a Vec<Certificate> and Tls.inspect(host) presents the trust_modal to the user
2023-12-21 07:48:09 +11:00
nworbnhoj
de1dcffd66 rename shellchat net tls inspect
rename shellchat `net tls probe` to `net tls inspect`
2023-12-20 18:44:52 +11:00
nworbnhoj
0e1c9595e4 stub libsignal::PrimaryProvisioningCipher.decrypt() 2023-12-20 17:19:02 +11:00
nworbnhoj
2e2d536dc8 stub libsignal::ProvisioningUuid 2023-12-20 14:36:59 +11:00
nworbnhoj
8951a6d72f stub libsignal::generate_identity_key_pair() 2023-12-20 10:02:58 +11:00
nworbnhoj
96e1b49cb2 Merge remote-tracking branch 'origin/sigchat' into sigchat 2023-12-20 05:28:32 +11:00
nworbnhoj
2684a55888 Merge branch 'main' into sigchat 2023-12-20 05:26:19 +11:00
nworbnhoj
728da47c78 add sigchat Manager doco 2023-12-20 05:14:25 +11:00
nworbnhoj
3dff72b2b3 sigchat obtain device registration from Signal Provisioning server 2023-12-19 19:36:13 +11:00
nworbnhoj
36e7798d61 display sigchat device linking qr-code 2023-12-19 19:28:57 +11:00
nworbnhoj
fd5a55ccbd sigchat obtain uuid from Signal Provisioning server 2023-12-19 19:23:12 +11:00
nworbnhoj
a8547ce51c restructure SignalWS 2023-12-19 17:50:45 +11:00
nworbnhoj
96a59422b1 fix use Tls 2023-12-19 06:39:13 +11:00
nworbnhoj
d22317018b rename Tls.trust_modal() 2023-12-19 06:03:23 +11:00
nworbnhoj
8fddba4881 implement sigchat provisioning websocket with tungstenite 2023-12-19 05:16:59 +11:00
nworbnhoj
de6b6baab9 extend shellchat net ws to utilize /lib/tls 2023-12-19 05:09:11 +11:00
nworbnhoj
bcb6a8c3bf implement tls.stream_owned() 2023-12-18 17:16:33 +11:00
bunnie
b673510747
Merge pull request #463 from nworbnhoj/main
make net ws more robust to test websocket server connection failure
2023-12-14 09:35:50 +08:00
nworbnhoj
a111f1d5c3
Merge pull request #1 from nworbnhoj/nworbnhoj-patch-1
make `net ws` more robust to test websocket server connection failure
2023-12-12 18:52:30 +11:00
nworbnhoj
7a75bf73e3
make net ws more robust to test websocket server connection failure 2023-12-12 16:12:22 +11:00
nworbnhoj
b094402bf3 sigchat prepare tls connection to provisioning server 2023-12-12 06:44:02 +11:00
nworbnhoj
2be426131c add sigchat busy status text 2023-12-11 06:21:07 +11:00
nworbnhoj
e5bb114c71 add sigchat doco 2023-12-11 06:19:36 +11:00
nworbnhoj
572dcd6bd1 implement Sigchat.account_link()
- create a new Account in the pddb
- create an Account Manager to coordinate the Link
- request a name for the device being linked (ie default 'xous')
- call Manager.link()
- on failure - delete the pddb Account record
2023-12-10 19:31:06 +11:00
nworbnhoj
c9e3f549a4 sigchat probe the Signal host server for tls certificates
- prompt the user for the Signal host server
- probe the host for the tls Certificate Authorities chain of trust
- allow the user to trust 1 or more Certificate Authorities
2023-12-10 19:02:57 +11:00
bunnie
fe2eb732a0 add a test for std seek 2023-12-10 12:54:06 +08:00
bunnie
2a521b5b86 fix stdseek to match std word ordering 2023-12-10 12:53:50 +08:00
bunnie
e0e908dbf4 fix utctimems to match std 2023-12-10 12:53:39 +08:00