Commit Graph

400 Commits

Author SHA1 Message Date
Matthew Mahnke 82c2e0b1b2 implement TryFrom for EndEntityCert 2021-01-12 11:01:44 -08:00
Matthew Mahnke 4f5274632a implement TryFrom for Time 2021-01-12 11:01:44 -08:00
Brian Smith 28951a0d46 Don't enable *ring*'s `alloc` feature by default; Require `alloc` for RSA.
Only use *ring*'s `alloc` feature if webpki's `alloc` feature is enabled. This
disables RSA by default.

Adjust some tests that return different results depending on whether RSA is
available.
2021-01-07 13:08:30 -08:00
Brian Smith 2deeb79c74 Refactor features.
Test all feature configurations in CI.

Remove the `trust_anchor_utils` feature flag.

Guard all features that directly require allocation with a new `alloc` feature.
The RSA features will be handled separately.

Document the features. Tell docs.rs to document all features.

Adjust some tests so that tests are run in more configurations.
2021-01-07 00:36:28 -08:00
Brian Smith 64708f1b6a Tests: Remove superfluous `#[allow(box_pointers)]`. 2021-01-07 00:36:28 -08:00
Brian Smith f653e01acc der: Rewrite `read_digit`.
Address Clippy 1.49.0 `clippy::manual_range_contains` complain.
2021-01-06 23:50:17 -08:00
Brian Smith cf94476d5c Split DNS name and IP address aspects of `name` into their own modules. 2020-12-29 23:40:43 -08:00
Brian Smith 3fccb4395e Make all features non-default; test default and --all-features configs in CI/CD. 2020-12-29 22:02:56 -08:00
Brian Smith e07aa55c9f Remove outdated "Online Automated Testing" section of README.md. 2020-12-29 18:05:10 -08:00
Brian Smith 935e846fa7 CI/CD: Reduce the number of targets. 2020-12-29 18:05:10 -08:00
Brian Smith 0a3c5dd93d Increase Rust MSRV to 1.46. 2020-12-29 17:38:29 -08:00
Brian Smith 17512d129c Remove useless wasm32 jobs from CI/CD.
Unless/until we adapt all the tests to use wasm-bindgen-test, no tests are
actually run. In fact the jobs succeed even if there are missing symbols
from *ring*!
2020-12-29 16:43:13 -08:00
Brian Smith 20a064ff80 Fix capitalization of `DNSName` and related names. 2020-12-29 14:28:56 -08:00
Brian Smith 5c7b94de8f CI/CD: Add `rustfmt` job.
This is imported verbatim from *ring*.
2020-12-29 13:09:55 -08:00
Brian Smith 0486ea10f6 `cargo fmt`. 2020-12-29 13:09:55 -08:00
Brian Smith 5c3a00ebbb Remove use of unstable features from rustfmt.toml. 2020-12-29 13:09:55 -08:00
Brian Smith 922d67117f CI/CD: Update Clippy and MSRV testing from *ring*. 2020-12-07 21:35:10 -08:00
Brian Smith 17a40df331 Stop using `#![forbid(...)]` and rely on Clippy in CI/CD instead.
Remove `#![forbid(warnings)]` since Rust Nightly changed the way it enforces it,
and broke the build.

Count on Clippy to catch warnings so that we don't get bothered to deal with
transient warnings while hacking on the code.
2020-12-07 17:57:08 -08:00
Brian Smith e1decfb811 CI/CD: Import clippy jobs from *ring*. 2020-12-07 17:57:08 -08:00
Brian Smith 6e2462ad18 Clippy: Address `clippy::single-component-path-imports` warnings. 2020-12-07 17:57:08 -08:00
Brian Smith 71a3415097 Clippy: Address `clippy::let-unit-value` warnings in integration tests. 2020-12-07 17:57:08 -08:00
Brian Smith 13c904afac Clippy: Temporarily suppress `clippy::identity_op` in OID constants. 2020-12-07 17:57:08 -08:00
Brian Smith 024bacce88 Clippy: Temporarily suppress `clippy::unreadable_literal`. 2020-12-07 17:57:08 -08:00
Brian Smith fd438cbe5e Clippy: Take Clippy's advice regarding `clippy::match-ref-pats`. 2020-12-07 17:57:08 -08:00
Brian Smith f4dec82e62 Clippy: Take the advice about `clippy::len-zero`. 2020-12-07 17:57:08 -08:00
Brian Smith 969ea141b3 Clippy: Suppress some counterproductive Clippy lints. 2020-12-07 17:57:08 -08:00
Brian Smith 264a98860c Clippy: Remove unneeded lifetime annotations. 2020-12-07 17:57:08 -08:00
Brian Smith f559cbcb49 Clippy: Address `clippy::cast-lossless` warnings. 2020-12-07 17:57:08 -08:00
Brian Smith 879e1c3607 Clippy: Address `clippy::needless-return` warnings. 2020-12-07 17:57:08 -08:00
Brian Smith e51f215d2e 0.21.4. 2020-12-07 15:37:11 -08:00
Brian Smith 2d32895b60 Add deny.toml with license clarification and add `cargo deny` job to CI/CD. 2020-12-01 21:04:59 -08:00
Brian Smith 8f8ef9e2f3 Documentation: Fix links to be compatible with Nightly rustdoc. 2020-12-01 20:15:24 -08:00
Brian Smith 61846e412c Documentation: Remove out-of-date `git clone` suggestion in rustdocs. 2020-12-01 20:15:24 -08:00
Brian Smith 4c3971f803 Require *ring* 0.16.19 or later. 2020-12-01 20:09:47 -08:00
Brian Smith e12b2ec06e CI/CD: Update CI/CD to version used in *ring* main branch. 2020-12-01 19:44:03 -08:00
Brian Smith 7f67834712 CI/CD: Switch to GitHub Actions; expand build matrix. 2020-11-10 20:48:12 -08:00
Brian Smith 049c5ad5c5 0.21.3: Use *ring* 0.16.14 and untrusted 0.7.1. 2020-05-30 01:03:58 -05:00
Brian Smith 8b741a41a1 Fix warning about `legacy_directory_ownership`.
Stop mentioning the now-removed warning.
2020-03-22 14:33:30 -05:00
Brian Smith d2c995a842 Retain the entire `SubjectPublicKeyInfo` structure when parsing.
Retain the tag and value of the `subjectPublicKeyInfo` field so that
the entire `SEQUENCE` can be accessed in future code.
2020-03-22 14:33:12 -05:00
Joseph Birr-Pixton a271a29a31 Include test input files in cargo package 2020-03-22 11:33:32 -05:00
Brian Smith 750b4ff8b6 0.21.2: Use *ring* 0.16.10 or later. 2020-01-31 10:50:14 -06:00
Jeffrey Griffin 3c92126b95 fix no_std compatibility 2020-01-17 17:14:18 -06:00
Nathaniel J. Smith 0573c1ec3f Fix blog post URL 2019-08-04 16:06:05 -10:00
Brian Smith 482627c40d 0.21.0 using *ring* 0.16.0 and untrusted 0.7.0. 2019-07-15 22:07:45 -10:00
Brian Smith 0d2699a389 Remove use of `untrusted` from the public API. 2019-07-15 21:25:11 -10:00
Brian Smith 91d7987103 Use `fn_args_layout` instead of `fn_args_density` in rustfmt.toml.
The setting got renamed.
2019-07-15 18:17:11 -10:00
Brian Smith a3a72bf655 0.20.0 using *ring* 0.15.0 2019-07-14 08:53:52 -10:00
Brian Smith 07e799cac4 0.20.0-alpha6 using *ring* 0.15.0-alpha6. 2019-07-13 15:15:57 -10:00
Brian Smith 6440a12b21 0.20.0-alpha5 using *ring* 0.15.0-alpha5 2019-07-13 14:55:41 -10:00
Brian Smith 892e7e2bd6 `cargo +nightly fix`. 2019-07-09 18:34:33 -10:00