summaryrefslogtreecommitdiffstats
path: root/net/tests
AgeCommit message (Collapse)Author
2023-11-22net: Fix KeyServer::{get,search}.Justus Winter
- Change both functions to return a vector of Result<Cert>. First, the keyserver may return more than one cert for both user ID searches as well as searches by key handle. Second, we may understand not all certs returned by the server, and that is okay, and we shouldn't let the whole query fail because of that. - Previously, the functions made an attempt at validating the results. However, that is flawed. First, in the case of retrieval by key handle, the test was brittle and easily circumvented by a key server. Second, the server may have good reason to return an additional cert, even if it doesn't have the key handle that the user asked for. For example, it may know that a cert is superseded and return the new one too, as a courtesy. draft-shaw-openpgp-hkp-00 doesn't forbid that. - In the case of search by email address, the server may know the association between the queried email address and the cert, even if said association is not recorded in the cert itself. - Remove the brittle checks, return all certs returned by the server, add a warning to the documentation of KeyServer::get.
2023-09-19net: Port the HKP code to reqwest.Justus Winter
2023-09-19net: Drop the network policy mechanism.Justus Winter
- This seems over-engineered in retrospect.
2022-05-06autocrypt, net: openpgp: Rewrite all usages of `Reader::new`.Wiktor Kwapisiewicz
2021-04-09Lint: Remove redundant lifetime.Nora Widdecke
- Constants have by default a `'static` lifetime - https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
2021-01-15net: Decouple from core.Justus Winter
- Move core::NetworkPolicy to net::Policy, update all code accordingly.
2020-12-09net: Allow hkp queries by KeyHandle.Justus Winter
2020-10-23update net to futures=0.2amesgen
2020-10-14Replace most 'extern crate' directives with 'use'.Justus Winter
- See #480.
2020-04-02openpgp: Drop Fingerprint::from_hex in favor of FromStr.Justus Winter
- See #462.
2020-04-02openpgp: Drop KeyID::from_hex in favor of FromStr.Justus Winter
- See #462.
2019-12-19net: Fix bare trait objectIgor Matuszewski
2019-11-28Call TPKs Certificates, update identifiers, documentation.Justus Winter
- Fixes #387.
2019-09-06Bump quickcheck to 0.9, rand to 0.7.Justus Winter
2019-08-19net: Drop the sync variant.Justus Winter
- The sync wrapper hide the async nature of the implementation, and while this may seem convenient, it may cause subtle problems if it is invoked from a different event loop. - Furthermore, 'async' is a reserved keyword in the 2018 edition, requiring awkward escaping. - Fixes #307.
2019-07-15Prepare for Rust 2018.Justus Winter
- This is the result of running `cargo fix --edition`, with some manual adjustments. - The vast majority of changes merely qualify module paths with 'crate::'. - Two instances of adding an anonymous pattern to a trait's function. - `async` is a keyword in Rust 2018, and hence it needs to be escaped (e.g. in the case of the net::r#async module). - The manual adjustments were needed due to various shortcomings of the analysis employed by `cargo fix`, e.g. unexpanded macros, procedural macros, lalrpop grammars.
2019-05-15core, store, tool: Use realm instead of domain.Justus Winter
- Remove the domain parameter from core::Context. - Replace it with a realm to be passed in when opening a store. - For sq, merge store name and realm into the --store parameter. - Fixes #105.
2019-05-07openpgp, net: Improve panic messages.Justus Winter
2018-12-14openpgp: Introduce trait Parse.Justus Winter
- Trait Parse introduces a uniform interface to parse packets, messages, keys, and related data structures.
2018-11-24net: Avoid using deprecated location of OsRng.v0.1.0Justus Winter
2018-11-24Rename the openpgp crate to sequoia-openpgp.Justus Winter
2018-08-13openpgp: Rework armor kind handling.Justus Winter
- Instead of having Kind::Any, use an Option<Kind> where appropriate.
2018-06-06net, store: Bump rand to "0.5" and adapt code accordingly.Justus Winter
2018-06-05net: Bump hyper to "0.12", hyper-tls to "0.2".Justus Winter
2018-03-23openpgp: Move the TPK type definition to openpgp proper.Justus Winter
- We define all types in the root of the openpgp crate, and their implementations in separate modules. This makes using these types much simpler, yet keeps the root from getting too crowded. - Also fix all users accordingly.
2018-01-30net: New test.Justus Winter
- Add a simple integration test checking hkp interactions.