Commit graph

481 commits

Author SHA1 Message Date
nworbnhoj
a741e7988b tidy-up tls cargo & use 2023-06-26 08:15:09 +10:00
nworbnhoj
4ea0c8457d implement tls::danger::StifledCertificateVerification
StifledCertificateVerification::verify_server_cert() will verify the certificate with the default rustls WebPkiVerifier, BUT specifically override a `CertificateError::UnknownIssuer` and return ServerCertVerified::assertion()

This allows us to use rustls to open a tls connection to a host with an untrusted certificate chain. And subsequently get to see the certificate chain, and possibly choose to trust the chain, or links in it.
2023-06-25 12:31:23 +10:00
nworbnhoj
5feaac2bae simplify shellchat net tls probe 2023-06-24 15:37:10 +10:00
nworbnhoj
a874ba307d implement shellchat "net tls probe" 2023-06-20 21:02:12 +10:00
nworbnhoj
e6ed977065 demote shellchat "net tls" to "net tls test" 2023-06-20 20:48:58 +10:00
Jean-Pierre De Jesus DIAZ
2af737b57e
xous-rs: move LANG variable to locales
This change is made with the intention of making the xous-rs crate a bit
more freestanding without depending on the xtask build system.

Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-06-15 18:23:12 +02:00
bunnie
118716da7b fix another 1.70 error 2023-06-05 01:45:10 +08:00
bunnie
0b32ac073b add scan state information to ssid scans
ssid scans can now be in-progress, and they also record
the time elapsed since the last scan was performed.

this allows the network manager to be a bit smarter about when
it decides to kick off a scan.

the ssid scan dialog box is also updated to show
the scan results in progress. This addresses #336.
2023-05-29 02:12:28 +08:00
bunnie
1b29ea0421 fixes #339
use the same API call used by `status` as in `shellchat`.
this should also fix the status bar reflecting the correct state.

code fixed but not explicitly tested; if I got this wrong
please re-open!
2023-05-28 18:01:46 +08:00
bunnie
0065707528 add debug logging inside the shellchat command list
this helps us determine which server in the environment
creation list hangs
2023-05-21 17:20:27 +08:00
Jean-Pierre De Jesus DIAZ
3e2eb63663
imports: remove com_rs-ref
The crate just re-exports the com_rs crate. This patch changes usages of
com_rs-ref to use com_rs directly.

Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-05-02 14:33:17 +02:00
bunnie
e5f9a6f155 update benchmark numbers 2023-04-27 22:17:20 +08:00
bunnie
a2413b7b34 fix #371
cheeseball fix -- just don't draw the "please wait" message
when in hosted mode (because everything mounts so fast, by the
time you put up the please wait message, it's time to clear it).
2023-04-27 20:53:20 +08:00
bunnie
814be033dc add HW TRNG serial mode; simplify console mode calls 2023-04-17 03:47:48 +08:00
bunnie
5a10bb8fd8 add console management commands 2023-04-16 02:23:43 +08:00
bunnie
7a8741922d enable console connection on shellchat 2023-04-16 01:43:29 +08:00
bunnie
210c501bb7 initial USB-serial mode working 2023-04-14 13:01:06 +08:00
Patryk Laurent
19f18ef59e shellchat pddb write now replaces/creates; rename write to writeover 2023-03-31 10:02:53 -07:00
bunnie
f4fabc3f8e fix #337
Adds MAC display to preference dialog box

also offer both hex and decimal formatting outputs on wlan status
2023-03-24 23:07:29 +08:00
bunnie
2bb58bb63f fix #337 2023-03-24 22:53:19 +08:00
bunnie
d96361e1cf factory requests: longer oqc tune time, revert vcc_int threshold
changes to be applied for next production run
2023-03-24 20:07:54 +08:00
bunnie
6a1d8f66f8 give a little more margin in sleep stress test to recover/setup/shudown 2023-03-24 01:28:56 +08:00
bunnie
e1881fa4a2 fix a missing feature flag 2023-03-24 01:28:39 +08:00
bunnie
c3a331291b undo patch for https://github.com/rust-lang/rust/issues/94182
seems to not trigger in the latest rust.
2023-02-26 17:12:34 +08:00
bunnie
62c9f0d0ce remove warnings when benchmarks are on; add log telemetry
this allows us to automate testing using the benchmark code
as a stress test
2023-02-26 01:00:45 +08:00
bunnie
3f8d22eb25 force backlight off before issuing kill command in test
this helps deconvolve the backlight current from the idle current
more reliably
2023-02-20 16:53:24 +08:00
bunnie
6526171a28 fix the test range for latest production parameters 2023-02-13 14:30:21 +08:00
bunnie
5fabcd2ca7 track failed suspend attempts 2023-02-01 15:00:22 +08:00
bunnie
981abbf503 cleanup some comments, tweak the stress test
the battery switchover behavior is guaranteed by the time management
servers, so we don't redundantly set it in the alarms.
2023-02-01 03:51:09 +08:00
bunnie
8c08cf8f91 make susres stress test a bit harder 2023-02-01 03:14:57 +08:00
bunnie
e97c99b435 make the susres test a bit more difficult to pass 2023-01-31 18:21:55 +08:00
bunnie
19667800cb modify sleep stress test timing
now that the initiate suspend call is working right, we need
to give a little bit of time for the i2c command to issue to
setup the wake alarm before issuing a suspend call. otherwise
we end up with a scrambled RTC unit.
2023-01-31 17:10:08 +08:00
bunnie
7ca1ece03d quiet down debug 2023-01-31 16:42:36 +08:00
bunnie
2d74630bdf add some prints to help debug susres issues 2023-01-31 16:20:33 +08:00
bunnie
ea31e50de7 fix typo on feature flag 2023-01-30 23:14:06 +08:00
bunnie
8e440609c2 add an extra test for checking if time server blocks on PDDB mount
gated with a feature so it doesn't bloat the shipping code base
2023-01-30 19:01:13 +08:00
bunnie
27131f6e9a add another test case to deltest
simulates a very typical pattern of remove an element
then populate it
2023-01-29 04:15:34 +08:00
bunnie
145e0469bc fix another edge case in key deletion
invalidated keys that were not dirty were not being removed
also added routine to fill keys that are evicted from the cache
during the update routine
2023-01-28 19:08:01 +08:00
bunnie
7cb98699aa add some consistency check and repair facility to PDDB 2023-01-27 15:26:46 +08:00
bunnie
6b93cfd567 add fscb sync and pruning to the delete test bench 2023-01-26 23:31:43 +08:00
bunnie
b7380db79d add test case for pddb delete keys 2023-01-20 18:05:36 +08:00
Patryk Laurent
6045f8a05b type chars rather than bytes 2023-01-15 08:10:55 -08:00
Patryk Laurent
e36a9287ce add pddb edit (types pddb write <k> <v>) 2023-01-14 15:10:50 -08:00
bunnie
0aae50fa82
Merge pull request #288 from plaurent/feat/shellchat-subcommand-pddb-copy
A "copy" subcommand for shellchat pddb
2023-01-14 00:31:37 +08:00
bunnie
02cd24e799 fix mass-storage feature missing in shellchat 2023-01-14 00:08:30 +08:00
Patryk Laurent
0cd2010780 use closure/return to avoid deep indents 2023-01-12 21:12:56 -08:00
bunnie
c631963a4b Merge branch 'feat/usb-mass-storage' of github.com:gsora/xous-core into gsora-feat/usb-mass-storage 2023-01-13 02:59:17 +08:00
Patryk Laurent
fb5811ddc8 use MAIN_SEPARATOR instead of hardcoded ':' 2023-01-12 07:20:43 -08:00
bunnie
54467a75fc gate mass-storage behind a feature that is currently default off 2023-01-12 00:58:48 +08:00
Gianguido Sorà
110641ff76
shellchat: add ms verb to usb
Used to switch core to mass-storage mode
2023-01-04 17:21:45 +01:00