paritytech / x509-signature

Low-level X.509 verification
Apache License 2.0
20 stars 9 forks source link

Non nightly build. #3

Open amrx101 opened 4 years ago

amrx101 commented 4 years ago

Is it possible to port this for >=1.40. I would like to know as I use rust in production.

BTW sorry if this sounds dumb, what is happening here

Demi-Marie commented 4 years ago

If this fails to build on the latest stable version of Rust, that is definitely a bug. I can’t guarantee compatibility with older versions due to the dependency on ring.

The code here is a subslice pattern match, which I use to extract the time from an ASN.1 DER-encoded date.

amrx101 commented 4 years ago

@DemiMarie-parity , What is the minimum required version?

Demi-Marie commented 4 years ago

@amrx101 The minimum required version is the latest released stable version of Rust. x509-signature depends on ring, which has the same requirement, so I could not guarantee more even if I wanted to.