Ejemplo n.º 1
0
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);
				}
			}
		}
	}
}
Ejemplo n.º 2
0
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);
		}
	}
}
Ejemplo n.º 3
0
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);
}
Ejemplo n.º 4
0
DwHeaders::DwHeaders(const DwHeaders& aHeader)
  : DwMessageComponent(aHeader)
{
    mFirstField = 0;
    if (aHeader.mFirstField) {
        CopyFields(aHeader.mFirstField);
    }
    mClassId = kCidHeaders;
    mClassName = sClassName;
}
Ejemplo n.º 5
0
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);
}
Ejemplo n.º 6
0
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);
}
Ejemplo n.º 7
0
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);
}
Ejemplo n.º 12
0
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);
}
Ejemplo n.º 16
0
AECloseSessionRequest::AECloseSessionRequest(uint32_t sessionId, uint32_t timeout)
:mSessionId(0)

{
    CopyFields(sessionId, timeout);
}
Ejemplo n.º 17
0
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);
}
Ejemplo n.º 21
0
void AEGetWhiteListSizeRequest::inflateValues(uint32_t timeout)
{
    ReleaseMemory();

    CopyFields(timeout);
}
Ejemplo n.º 22
0
AESGXSwitchExtendedEpidGroupRequest::AESGXSwitchExtendedEpidGroupRequest(uint32_t extendedGroupId, uint32_t timeout)
    :mExtendedEpidGroupId(0)

{
    CopyFields(extendedGroupId, timeout);
}
AESGXSwitchExtendedEpidGroupResponse::AESGXSwitchExtendedEpidGroupResponse(const AESGXSwitchExtendedEpidGroupResponse& other)
{
    CopyFields(other.mErrorCode);
}
Ejemplo n.º 24
0
AEGetWhiteListResponse::AEGetWhiteListResponse(int errorCode, uint32_t whiteListLength, const uint8_t* whiteList)
:mWhiteListLength(0), mWhiteList(NULL)
{
    CopyFields(errorCode, whiteListLength, whiteList);
}
Ejemplo n.º 25
0
void AESGXSwitchExtendedEpidGroupRequest::inflateValues(uint32_t extendedGroupId, uint32_t timeout)
{
    ReleaseMemory();

    CopyFields(extendedGroupId, timeout);
}
Ejemplo n.º 26
0
AEGetWhiteListResponse::AEGetWhiteListResponse(const AEGetWhiteListResponse& other)
:mWhiteListLength(0), mWhiteList(NULL)
{
    CopyFields(other.mErrorCode, other.mWhiteListLength, other.mWhiteList);
}
Ejemplo n.º 27
0
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);
}
Ejemplo n.º 29
0
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);
}