Struct openssl::asn1::Asn1Time [-]  [+] [src]

pub struct Asn1Time {
    // some fields omitted
}

Methods

impl Asn1Time

fn new(handle: *mut ASN1_TIME) -> Asn1Time

Wraps existing ASN1_TIME and takes ownership

fn days_from_now(days: u32) -> Result<Asn1Time, SslError>

Creates a new time on specified interval in days from now

unsafe fn get_handle(&self) -> *mut ASN1_TIME

Returns raw handle

Trait Implementations

impl Drop for Asn1Time

fn drop(&mut self)