pub struct Security<'a> { /* private fields */ }
Expand description
Security Directory.
For more information see the module-level documentation.
Implementations
sourceimpl<'a> Security<'a>
impl<'a> Security<'a>
sourcepub fn image(&self) -> &'a WIN_CERTIFICATE
pub fn image(&self) -> &'a WIN_CERTIFICATE
Returns the underlying security directory image.
sourcepub fn certificate_type(&self) -> u16
pub fn certificate_type(&self) -> u16
Gets the type of the certificate.
List of known certificate types:
sourcepub fn certificate_data(&self) -> &'a [u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
pub fn certificate_data(&self) -> &'a [u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[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> Copy for Security<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Security<'a>
impl<'a> Send for Security<'a>
impl<'a> Sync for Security<'a>
impl<'a> Unpin for Security<'a>
impl<'a> UnwindSafe for Security<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more