4pe::WIN_CERTIFICATE* SecurityDirWrapper::getCert()
9 if (ptr == NULL)
return NULL;
11 return (pe::WIN_CERTIFICATE*) ptr;
18 pe::WIN_CERTIFICATE* cert = getCert();
19 if (cert == NULL)
return false;
25 size_t fieldsSize =
sizeof(cert->dwLength) +
sizeof(cert->wRevision) +
sizeof(cert->dwLength);
26 size_t certSize = cert->dwLength - fieldsSize;
29 if (ptr == NULL)
return false;
42 pe::WIN_CERTIFICATE* cert = getCert();
43 if (cert == NULL)
return 0;
47 fullSize =
static_cast<bufsize_t>(cert->dwLength);
55 pe::WIN_CERTIFICATE* cert = getCert();
56 if (cert == NULL)
return 0;
59 case CERT_LEN :
return &cert->dwLength;
60 case REVISION :
return &cert->wRevision;
61 case TYPE :
return &cert->wCertificateType;
72 case TYPE :
return "Type";
89 case pe::WIN_CERT_TYPE_X509 :
return "X.509 certificate";
90 case pe::WIN_CERT_TYPE_PKCS_SIGNED_DATA :
return "PKCS Signed Data";
91 case pe::WIN_CERT_TYPE_RESERVED_1 :
return "Reserved";
92 case pe::WIN_CERT_TYPE_PKCS1_SIGN :
return "PKCS1 Module Sign Fields";
99 if (fieldId !=
TYPE)
return "";
101 pe::WIN_CERTIFICATE* cert = getCert();
102 if (cert == NULL)
return "";
const offset_t INVALID_ADDR
offset_t getDirEntryAddress()
virtual offset_t getFieldOffset(size_t fieldId, size_t subField=FIELD_NONE)
BYTE * getContentAt(offset_t offset, bufsize_t size, bool allowExceptions=false)
virtual QString translateFieldContent(size_t fieldId)
virtual QString getFieldName(size_t fieldId)
virtual bufsize_t getSize()
virtual WrappedValue::data_type containsDataType(size_t fieldId, size_t subField=FIELD_NONE)
virtual QString getName()
QString translateType(int type)
virtual void * getFieldPtr(size_t fieldId, size_t subField)