void CEntKeyFindReplace::OnReplace() { // quick check, if no key value is specified then there's not much to do... // UpdateData(DIALOG_TO_DATA); if (m_strFindKey.IsEmpty()) { ErrorBox("Empty FIND <key>!\n\n(This is only permitted for FIND, not replace, for safety reasons)"); } else { if (!m_strFindValue.IsEmpty() || GetYesNo(va("Empty FIND <value> means replace any existing ( & non-blank ) <value> for <key> \"%s\"\n\nProceed?",(LPCSTR)m_strFindKey))) { // another check, if they're trying to do a replace with a missing replace key, it'll just delete found keys... // if ((!m_strReplaceKey.IsEmpty() && !m_strReplaceValue.IsEmpty()) || GetYesNo(va("Empty REPLACE <key> or <value> fields will just delete all occurence of <key> \"%s\"\n\nProceed?",m_strFindKey))) { if (GetYesNo("Sure?")) { CopyFields(); EndDialog(ID_RET_REPLACE); } } } } }
void CEntKeyFindReplace::OnFind() { // quick check, if no key value is specified then there's not much to do... // UpdateData(DIALOG_TO_DATA); if (m_strFindKey.IsEmpty() && m_strFindValue.IsEmpty()) { ErrorBox("Empty FIND fields!"); } else { // if (m_strFindKey.IsEmpty() && m_bSelectAllMatchingEnts) // { // if (GetYesNo("Warning! Having a blank FIND <key> and ticking \"Select all matching ents\" can take a LONG time to do (and is probably a wrong choice anyway?)\n\nProceed?")) // { // CopyFields(); // EndDialog(ID_RET_FIND); // } // } // else { CopyFields(); EndDialog(ID_RET_FIND); } } }
void AEGetLaunchTokenRequest::inflateValues(uint32_t measurementLength,const uint8_t* measurement, uint32_t sigstructLength,const uint8_t* sigstruct, uint32_t attributesLength,const uint8_t* attributes, uint32_t timeout) { ReleaseMemory(); CopyFields(measurementLength, measurement, sigstructLength, sigstruct, attributesLength, attributes, timeout); }
DwHeaders::DwHeaders(const DwHeaders& aHeader) : DwMessageComponent(aHeader) { mFirstField = 0; if (aHeader.mFirstField) { CopyFields(aHeader.mFirstField); } mClassId = kCidHeaders; mClassName = sClassName; }
AEGetLaunchTokenRequest::AEGetLaunchTokenRequest(const AEGetLaunchTokenRequest& other) : IAERequest(other), mEnclaveMeasurementLength(0), mEnclaveMeasurement(NULL), mSigstructLength(0), mSigstruct(NULL), mSEAttributesLength(0), mSEAttributes(NULL) { CopyFields(other.mEnclaveMeasurementLength, other.mEnclaveMeasurement, other.mSigstructLength, other.mSigstruct, other.mSEAttributesLength, other.mSEAttributes, other.mTimeout); }
AEGetLaunchTokenRequest::AEGetLaunchTokenRequest(uint32_t measurementLength, const uint8_t* measurement, uint32_t sigstructLength, const uint8_t* sigstruct, uint32_t attributesLength, const uint8_t* attributes, uint32_t timeout) : mEnclaveMeasurementLength(0), mEnclaveMeasurement(NULL), mSigstructLength(0), mSigstruct(NULL), mSEAttributesLength(0), mSEAttributes(NULL) { CopyFields(measurementLength, measurement, sigstructLength, sigstruct, attributesLength, attributes, timeout); }
const DwHeaders& DwHeaders::operator = (const DwHeaders& aHeader) { if (this == &aHeader) return *this; DwMessageComponent::operator = (aHeader); if (mFirstField) { DeleteAllFields(); } if (aHeader.mFirstField) { CopyFields(aHeader.mFirstField); } if (mParent) { mParent->SetModified(); } return *this; }
void AESGXGetExtendedEpidGroupIdResponse::inflateValues(int errorCode, uint32_t extendedGroupId) { ReleaseMemory(); CopyFields(errorCode, extendedGroupId); }
AEGetWhiteListSizeRequest::AEGetWhiteListSizeRequest(const AEGetWhiteListSizeRequest& other) : IAERequest(other) { CopyFields(other.mTimeout); }
AESGXGetExtendedEpidGroupIdResponse::AESGXGetExtendedEpidGroupIdResponse(int errorCode, uint32_t extendedGroupId) : mExtendedEpidGroupId(-1) { CopyFields(errorCode, extendedGroupId); }
AESGXGetExtendedEpidGroupIdResponse::AESGXGetExtendedEpidGroupIdResponse(const AESGXGetExtendedEpidGroupIdResponse& other) : mExtendedEpidGroupId(-1) { CopyFields(other.mErrorCode, other.mExtendedEpidGroupId); }
AESGXSwitchExtendedEpidGroupRequest::AESGXSwitchExtendedEpidGroupRequest(const AESGXSwitchExtendedEpidGroupRequest& other) :IAERequest(other), mExtendedEpidGroupId(0) { CopyFields(other.mExtendedEpidGroupId, other.mTimeout); }
AEReportAttestationResponse::AEReportAttestationResponse(int errorCode, uint32_t updateInfoLength, const uint8_t* updateInfo) : mUpdateInfoLength(0), mUpdateInfo(NULL) { CopyFields(errorCode, updateInfoLength, updateInfo); }
void AESGXSwitchExtendedEpidGroupResponse::inflateValues(int errorCode) { ReleaseMemory(); CopyFields(errorCode); }
AESGXSwitchExtendedEpidGroupResponse::AESGXSwitchExtendedEpidGroupResponse(int errorCode) { CopyFields(errorCode); }
AECloseSessionRequest::AECloseSessionRequest(uint32_t sessionId, uint32_t timeout) :mSessionId(0) { CopyFields(sessionId, timeout); }
AECloseSessionRequest::AECloseSessionRequest(const AECloseSessionRequest& other) :IAERequest(other), mSessionId(0) { CopyFields(other.mSessionId, other.mTimeout); }
void AESGXGetExtendedEpidGroupIdRequest::inflateValues(uint32_t timeout) { ReleaseMemory(); CopyFields(timeout); }
AESGXGetExtendedEpidGroupIdRequest::AESGXGetExtendedEpidGroupIdRequest(const AESGXGetExtendedEpidGroupIdRequest& other) : IAERequest(other) { CopyFields(other.mTimeout); }
AEReportAttestationResponse::AEReportAttestationResponse(const AEReportAttestationResponse& other) : mUpdateInfoLength(0), mUpdateInfo(NULL) { CopyFields(other.mErrorCode, other.mUpdateInfoLength, other.mUpdateInfo); }
void AEGetWhiteListSizeRequest::inflateValues(uint32_t timeout) { ReleaseMemory(); CopyFields(timeout); }
AESGXSwitchExtendedEpidGroupRequest::AESGXSwitchExtendedEpidGroupRequest(uint32_t extendedGroupId, uint32_t timeout) :mExtendedEpidGroupId(0) { CopyFields(extendedGroupId, timeout); }
AESGXSwitchExtendedEpidGroupResponse::AESGXSwitchExtendedEpidGroupResponse(const AESGXSwitchExtendedEpidGroupResponse& other) { CopyFields(other.mErrorCode); }
AEGetWhiteListResponse::AEGetWhiteListResponse(int errorCode, uint32_t whiteListLength, const uint8_t* whiteList) :mWhiteListLength(0), mWhiteList(NULL) { CopyFields(errorCode, whiteListLength, whiteList); }
void AESGXSwitchExtendedEpidGroupRequest::inflateValues(uint32_t extendedGroupId, uint32_t timeout) { ReleaseMemory(); CopyFields(extendedGroupId, timeout); }
AEGetWhiteListResponse::AEGetWhiteListResponse(const AEGetWhiteListResponse& other) :mWhiteListLength(0), mWhiteList(NULL) { CopyFields(other.mErrorCode, other.mWhiteListLength, other.mWhiteList); }
void AECloseSessionRequest::inflateValues(uint32_t sessionId, uint32_t timeout) { ReleaseMemory(); CopyFields(sessionId, timeout); }
void AEReportAttestationResponse::inflateValues(int errorCode, uint32_t updateInfoLength, const uint8_t* updateInfo) { ReleaseMemory(); CopyFields(errorCode, updateInfoLength, updateInfo); }
void AEGetWhiteListResponse::inflateValues(int errorCode, uint32_t whiteListLength,const uint8_t* whiteList) { ReleaseMemory(); CopyFields(errorCode, whiteListLength, whiteList); }
void AEGetWhiteListSizeResponse::inflateValues(int errorCode, uint32_t white_list_size) { ReleaseMemory(); CopyFields(errorCode, white_list_size); }