uthenticode  2.0.1-19005f0
Public Member Functions | List of all members
uthenticode::WinCert Class Reference

#include <uthenticode.h>

Public Member Functions

 WinCert (certificate_revision revision, certificate_type type, std::vector< std::uint8_t > cert_buf)
 
std::size_t get_length () const
 
certificate_revision get_revision () const
 
certificate_type get_type () const
 
std::optional< SignedDataas_signed_data () const
 

Detailed Description

Encapsulates the data in a WIN_CERT structure.

WIN_CERT structures can contain several different underlying container formats; this class provides accessors (like as_signed_data()) for retrieving supported ones.

Constructor & Destructor Documentation

◆ WinCert()

uthenticode::WinCert::WinCert ( certificate_revision  revision,
certificate_type  type,
std::vector< std::uint8_t >  cert_buf 
)
inline

Member Function Documentation

◆ as_signed_data()

std::optional< SignedData > uthenticode::WinCert::as_signed_data ( ) const
Returns
this object as a SignedData, or std::nullopt if the underlying data is not a SignedData

◆ get_length()

std::size_t uthenticode::WinCert::get_length ( ) const
inline
Returns
the length of the underlying certificate data

◆ get_revision()

certificate_revision uthenticode::WinCert::get_revision ( ) const
inline
Returns
the revision of the structure

◆ get_type()

certificate_type uthenticode::WinCert::get_type ( ) const
inline
Returns
the type of data in the structure

The documentation for this class was generated from the following files: