Searched refs:Asn1Time (Results 1 – 5 of 5) sorted by relevance
192 pub struct Asn1Time;242 impl PartialEq<Asn1Time> for Asn1TimeRef {243 fn eq(&self, other: &Asn1Time) -> bool { in eq()251 impl<'a> PartialEq<Asn1Time> for &'a Asn1TimeRef {252 fn eq(&self, other: &Asn1Time) -> bool { in eq()267 impl PartialOrd<Asn1Time> for Asn1TimeRef {268 fn partial_cmp(&self, other: &Asn1Time) -> Option<Ordering> { in partial_cmp()274 impl<'a> PartialOrd<Asn1Time> for &'a Asn1TimeRef {275 fn partial_cmp(&self, other: &Asn1Time) -> Option<Ordering> { in partial_cmp()302 impl Asn1Time { implementation[all …]
287 use crate::asn1::Asn1Time;348 .set_not_before(&Asn1Time::days_from_now(0).unwrap()) in create()351 .set_not_after(&Asn1Time::days_from_now(365).unwrap()) in create()
6 use openssl::asn1::Asn1Time;41 let not_before = Asn1Time::days_from_now(0)?; in mk_ca_cert()43 let not_after = Asn1Time::days_from_now(365)?; in mk_ca_cert()104 let not_before = Asn1Time::days_from_now(0)?; in mk_ca_signed_cert()106 let not_after = Asn1Time::days_from_now(365)?; in mk_ca_signed_cert()
3 use crate::asn1::{Asn1Object, Asn1OctetString, Asn1Time};300 .set_not_before(&Asn1Time::days_from_now(0).unwrap()) in x509_builder()303 .set_not_after(&Asn1Time::days_from_now(365).unwrap()) in x509_builder()
387 * Added `Asn1Time::from_unix`.388 * Added `PartialEq` and `PartialOrd` implementations for `Asn1Time` and `Asn1TimeRef`.484 * Added `Asn1Time::from_str` and `Asn1Time::from_str_x509`.