Commit graph

10340 commits

Author SHA1 Message Date
nworbnhoj
b67c015abc refactor tls::trusted 2023-06-27 14:40:30 +10:00
nworbnhoj
aeeff17a6a relocate shellchat net tls sub-commands to libs/tls/src/cmd.rs 2023-06-27 14:38:11 +10:00
nworbnhoj
d6fe702278 improve tls error handling 2023-06-26 19:32:57 +10:00
nworbnhoj
ab8d40189a modify shellchat net tls test to use trusted CA certificates 2023-06-26 16:00:21 +10:00
nworbnhoj
6ef1e8d67c show help when: shellchat net tls <no sub-command> 2023-06-26 15:25:46 +10:00
nworbnhoj
33169f9df9 implement shellchat net tls trusted
list trusted Certificate Authority certificates
2023-06-26 12:38:12 +10:00
nworbnhoj
be9f0fd29a implement tls RustlsOwnedTrustAnchor::subject() 2023-06-26 12:35:20 +10:00
nworbnhoj
42eb72b3bd implement shellchat net tls mozilla
save/trust all Root CA's in webpki-roots en-masse
2023-06-26 11:46:54 +10:00
nworbnhoj
4d1411432f mirror RustlsOwnedTrustAnchor::from_subject_spki_name_constraints() 2023-06-26 11:11:45 +10:00
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
bunnie
ced2502559 remove hard-fault on restore that I think is not critical
prints to console instead. could monitor with serial port
2023-06-21 03:43:19 +08: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