Commit graph

5622 commits

Author SHA1 Message Date
nworbnhoj
a741e7988b tidy-up tls cargo & use 2023-06-26 08:15:09 +10:00
nworbnhoj
21961ad756 implement Into<RootCertStore> for Trusted 2023-06-25 16:32:20 +10:00
nworbnhoj
70b41cbf78 implement Into<rustls::OwnedTrustAnchor> for RustlsOwnedTrustAnchor 2023-06-25 16:26:06 +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
fcc4cde41b add CA icon to tls check_trust modal 2023-06-25 11:36:22 +10:00
nworbnhoj
5feaac2bae simplify shellchat net tls probe 2023-06-24 15:37:10 +10:00
nworbnhoj
472e4407b8 display tls certificate subject & serial in check_trust modal 2023-06-24 15:02:48 +10:00
nworbnhoj
0d1e89e560 implement tls Trusted iterator 2023-06-24 14:59:47 +10:00
nworbnhoj
65f92453a2 implement tls RustlsOwnedTrustAnchor to rustls::OwnedTrustAnchor 2023-06-24 14:57:16 +10:00
nworbnhoj
80ff0cb52a increase modal ItemName length to 128 2023-06-23 07:26:12 +10:00
nworbnhoj
874086c413 extend checkboxes modal to handle explicit newline in item 2023-06-23 04:26:10 +10:00
nworbnhoj
6bbf5d6ef3 add libs/tls in Cargo.toml [members] 2023-06-20 22:39:15 +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
nworbnhoj
8d12e3d8d3 implement tls check_trust
presents a modal to the user to select trusted tls certificates and saves the selected certificates to the pddb
2023-06-20 20:42:26 +10:00
nworbnhoj
2944e34ea6 implement save/get rustls::OwnedTrustAnchor to PDDB 2023-06-20 20:38:12 +10:00
bunnie
ff6195a76e cleanup lockfile after patch-out was reverted 2023-06-16 04:07:46 +08:00
bunnie
3dcb5e26eb bump release notes 2023-06-16 04:05:56 +08:00
bunnie
c2187424a3 did not meant to commit patched crates 2023-06-16 04:03:12 +08:00
bunnie
36982c39c3 update cargo.lock 2023-06-16 01:34:21 +08:00
bunnie
50e8d4f77f bump verifier 2023-06-16 01:30:55 +08:00
bunnie
952ba18fba commit vesrion pin bumps 2023-06-16 01:30:18 +08:00
bunnie
1300771a38 fixes to make PR work 2023-06-16 01:29:55 +08:00
bunnie
c5d0dabb08
Merge pull request #391 from Foundation-Devices/jeandudey/sft-1858-remove-localizationlanguage-code-from-xous-rs
xous-rs: move LANG to locales
2023-06-16 01:16:20 +08:00
bunnie
6c0d252166
Merge pull request #390 from Foundation-Devices/jeandudey/sft-2309-improve-svd2utra-code
svd2utra: improve code
2023-06-16 01:16:07 +08: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
Jean-Pierre De Jesus DIAZ
8ec8892a56
locales: use no_std by default.
This way the crate will always fail to compile if it doesn't compile on
no_std.

It being no_std by default won't affect std build of other crates as
no_std and std crates can interop by default.

Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-06-15 18:10:59 +02:00
Jean-Pierre De Jesus DIAZ
7e89d70b95
svd2utra: add license header to files
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-06-15 17:50:32 +02:00
Jean-Pierre De Jesus DIAZ
b4cb4a6599
svd2utra: do not include modules in main file
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-06-15 17:50:32 +02:00
Jean-Pierre De Jesus DIAZ
edd25611ff
svd2utra: replace use of usize by u32/u64
The rationale is that those types don't depend on host pointer size
values.  This could've caused trouble when parsing SVDs for 64-bit
devices on a 32-bit host.

Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-06-15 17:50:32 +02:00
Jean-Pierre De Jesus DIAZ
4dd50032e7
svd2utra: Remove convert_case dependency.
Not used.

Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-06-15 17:50:32 +02:00
bunnie
08aac2c285 limit loading screen to password transitions
it interferes with the ctap2 tests
2023-06-07 01:41:14 +08:00
bunnie
5f5d926462 comment out the filter performance profiling
it's fast enough now that probably the performance profiling
accounts for a non-trivial portion of the runtime
2023-06-06 20:13:45 +08:00
bunnie
93d07e3cb8 cleanup debug crumbs 2023-06-06 20:07:47 +08:00
bunnie
71c24020a3 add reference to PR 2023-06-06 19:53:32 +08:00
bunnie
63299c7ca6 bump release notes and comments 2023-06-06 19:52:45 +08:00
bunnie
17c009384a
Merge pull request #389 from betrusted-io/refactor-filter
Refactor item cache
2023-06-06 19:49:22 +08:00
bunnie
6bb5569c9f add a screen to indicate when databases are reloading
since the operation can take quite a while
2023-06-06 19:31:26 +08:00
bunnie
567d9db2cd optimize the ui cache routines
rely more on the cache retaining consistency with the disk
versus always reloading from the disk to speed up performance.

might be useful to make a routine that can also check coherency
periodically, because with the new format the cache could
co-exist along side the database for a very long time without
any checking.
2023-06-06 19:17:24 +08:00
bunnie
4c180810a5 fixup sorting so that it only goes by lowercase values 2023-06-06 16:54:08 +08:00
bunnie
bd5b482cb0 rework list filtering to use an unsorted vec instead of btreemap
also eliminates references, copying and locking of items in the
sorted btreemap.

turns out that ... sorting is much cheaper than copying or maintaining
references, because copies to heap items require allocs which are
under the hoood several sorts to find the place to stick the alloc
memory, and shared references require locks.
2023-06-06 15:33:55 +08:00
bunnie
fa436c0845 fix bugs so that the implementation is working
as suspected, the shared lock is killer on performance.
2023-06-05 22:50:59 +08:00
bunnie
9bb3ac0db7 first stab at refactoring filter to be faster 2023-06-05 04:57:26 +08:00
bunnie
118716da7b fix another 1.70 error 2023-06-05 01:45:10 +08:00
bunnie
39cd7f8b0a cleanup Rust lint that appeared in 1.70 2023-06-04 19:10:10 +08:00
bunnie
12acdbef5b update release notes 2023-05-29 03:22:25 +08:00
bunnie
015f0fb8b3 sort scans by strength, and retire AP's that we haven't seen in a while 2023-05-29 03:20:04 +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
86459b02c5 fix cargo check environment for the latest vscode
seems they refactored the way rust workspaces are handled and
deprecated previous keywords and added some other features that
break cargo check.

This overrides all of that and manually configures cargo
check to be harmonized with the hardware target environment.
2023-05-29 00:40:17 +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