retdec
SecurityDirectory.h
Go to the documentation of this file.
1 
7 #ifndef RETDEC_PELIB_SECURITYDIRECTORY_H
8 #define RETDEC_PELIB_SECURITYDIRECTORY_H
9 
10 namespace PeLib
11 {
13  {
14  private:
16  std::vector<PELIB_IMAGE_CERTIFICATE_ENTRY> m_certs;
17  public:
21  unsigned int calcNumberOfCertificates() const; // EXPORT
23  const std::vector<unsigned char>& getCertificate(std::size_t index) const; // EXPORT
25  LoaderError loaderError() const;
27  int read(
28  std::istream& inStream,
29  unsigned int uiOffset,
30  unsigned int uiSize); // EXPORT
31  };
32 }
33 
34 #endif
Definition: SecurityDirectory.h:13
const std::vector< unsigned char > & getCertificate(std::size_t index) const
Returns certificate at specified index.
Definition: SecurityDirectory.cpp:20
std::vector< PELIB_IMAGE_CERTIFICATE_ENTRY > m_certs
Definition: SecurityDirectory.h:16
unsigned int calcNumberOfCertificates() const
Number of certificates in the directory.
Definition: SecurityDirectory.cpp:15
LoaderError loaderError() const
Return the loader error.
Definition: SecurityDirectory.cpp:25
int read(std::istream &inStream, unsigned int uiOffset, unsigned int uiSize)
Read a file's certificate directory.
Definition: SecurityDirectory.cpp:30
SecurityDirectory()
Constructor.
Definition: SecurityDirectory.cpp:12
LoaderError m_ldrError
Definition: SecurityDirectory.h:15
Definition: BoundImportDirectory.h:21
LoaderError
Definition: PeLibAux.h:47