[][src]Struct pelite::security::Security

pub struct Security<'a> { /* fields omitted */ }

Security Directory.

For more information see the module-level documentation.

Methods

impl<'a> Security<'a>[src]

pub fn image(&self) -> &'a WIN_CERTIFICATE[src]

Returns the underlying security directory image.

pub fn certificate_type(&self) -> u16[src]

pub fn certificate_data(&self) -> &'a [u8][src]

Gets the raw certificate data bytes.

The interpretation of this data depends the type of the certificate. No further introspection is provided.

External tools such as OpenSSL can be used to further disect and analyze this data. Eg. for WIN_CERT_TYPE_PKCS_SIGNED_DATA the following can be used to decode the bytes:

openssl pkcs7 -inform DER -print_certs -text -in pe_certificate

Trait Implementations

impl<'a> Clone for Security<'a>[src]

impl<'a> Copy for Security<'a>[src]

impl<'a> Debug for Security<'a>[src]

impl<'a> Serialize for Security<'a>[src]

Auto Trait Implementations

impl<'a> Sync for Security<'a>

impl<'a> Send for Security<'a>

impl<'a> Unpin for Security<'a>

impl<'a> UnwindSafe for Security<'a>

impl<'a> RefUnwindSafe for Security<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]