rustls / webpki-roots

CA certificates for use with webpki
Apache License 2.0
89 stars 47 forks source link

tests: better DER sequence wrap w/ yasna. #43

Closed cpu closed 1 year ago

cpu commented 1 year ago

Tiny follow-up to https://github.com/rustls/webpki-roots/pull/40 I thought of randomly.

While updating the webpki-roots codegen.rs test to generate the root collection using CCADB data we took a dev dependency on yasna to support DER serializing name constraints extensions based on a string representation.

Having this dependency means we can drop the crummy hand-serialized SEQUENCE wrapping that the name_constraints test from tests/verify.rs was doing, replacing it with a Yasna serializer.