Struct pelite::pe32::security::Security [−][src]
pub struct Security<'a, P> { /* fields omitted */ }
Security Directory.
For more information see the module-level documentation.
Methods
impl<'a, P: Pe<'a> + Copy> Security<'a, P>
[src]
impl<'a, P: Pe<'a> + Copy> Security<'a, P>
pub fn pe(&self) -> P
[src]
pub fn pe(&self) -> P
Gets the PE instance.
pub fn image(&self) -> &'a WIN_CERTIFICATE
[src]
pub fn image(&self) -> &'a WIN_CERTIFICATE
Returns the underlying security directory image.
pub fn certificate_type(&self) -> u16
[src]
pub fn certificate_type(&self) -> u16
Gets the type of the certificate.
List of known certificate types:
pub fn certificate_data(&self) -> &'a [u8]
[src]
pub fn certificate_data(&self) -> &'a [u8]
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, P: Pe<'a> + Copy> Serialize for Security<'a, P>
[src]
impl<'a, P: Pe<'a> + Copy> Serialize for Security<'a, P>
fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>
[src]
fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>
Serialize this value into the given Serde serializer. Read more
impl<'a, P: Pe<'a> + Copy> Debug for Security<'a, P>
[src]
impl<'a, P: Pe<'a> + Copy> Debug for Security<'a, P>