Skip to content

Commit ebbcc66

Browse files
carl-wallacenicholasbishop
authored andcommitted
Provide access to encapsulated content
1 parent e6e5b74 commit ebbcc66

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

authenticode/src/signature.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,15 @@ impl AuthenticodeSignature {
251251
self.signer_info().signature.as_bytes()
252252
}
253253

254+
/// Get the encapsulated content.
255+
pub fn encapsulated_content(&self) -> Option<&[u8]> {
256+
self.signed_data
257+
.encap_content_info
258+
.econtent
259+
.as_ref()
260+
.map(|c| c.value())
261+
}
262+
254263
/// Get the certificate chain.
255264
pub fn certificates(&self) -> impl Iterator<Item = &Certificate> {
256265
self.signed_data

0 commit comments

Comments
 (0)