Home
last modified time | relevance | path

Searched refs:devicePacket (Results 1 – 22 of 22) sorted by relevance

/test/xts/device_attest/services/core/attest/
Dattest_service_reset.c45 DevicePacket* devicePacket = CreateDevicePacket(); in GenResetMsg() local
46 if (devicePacket == NULL) { in GenResetMsg()
50 devicePacket->appId = StrdupDevInfo(APP_ID); in GenResetMsg()
51 devicePacket->tenantId = StrdupDevInfo(TENANT_ID); in GenResetMsg()
52 devicePacket->randomUuid = StrdupDevInfo(RANDOM_UUID); in GenResetMsg()
53 devicePacket->udid = StrdupDevInfo(UDID); in GenResetMsg()
54 devicePacket->tokenInfo.uuid = AttestStrdup((char*)tokenId); in GenResetMsg()
55 devicePacket->tokenInfo.token = AttestStrdup((char*)tokenValueHmac); in GenResetMsg()
56 *devPacket = devicePacket; in GenResetMsg()
58 ATTEST_DFX_DEV_PACKET(devicePacket); in GenResetMsg()
[all …]
Dattest_service_active.c57 DevicePacket* devicePacket = CreateDevicePacket(); in GenActiveMsg() local
58 if (devicePacket == NULL) { in GenActiveMsg()
62 devicePacket->appId = StrdupDevInfo(APP_ID); in GenActiveMsg()
63 devicePacket->tenantId = StrdupDevInfo(TENANT_ID); in GenActiveMsg()
64 devicePacket->randomUuid = StrdupDevInfo(RANDOM_UUID); in GenActiveMsg()
65 devicePacket->udid = StrdupDevInfo(UDID); in GenActiveMsg()
66 devicePacket->ticket = AttestStrdup(authResult->ticket); in GenActiveMsg()
67 devicePacket->tokenInfo.uuid = AttestStrdup((char*)tokenId); in GenActiveMsg()
68 devicePacket->tokenInfo.token = AttestStrdup((char*)tokenValueHmac); in GenActiveMsg()
69 *devPacket = devicePacket; in GenActiveMsg()
[all …]
Dattest_service_challenge.c50 DevicePacket* devicePacket = CreateDevicePacket(); in GenChallengeMsg() local
51 if (devicePacket == NULL) { in GenChallengeMsg()
56 devicePacket->appId = StrdupDevInfo(APP_ID); in GenChallengeMsg()
57 devicePacket->tenantId = StrdupDevInfo(TENANT_ID); in GenChallengeMsg()
58 devicePacket->randomUuid = StrdupDevInfo(RANDOM_UUID); in GenChallengeMsg()
59 devicePacket->udid = StrdupDevInfo(UDID); in GenChallengeMsg()
60 devicePacket->productInfo.versionId = StrdupDevInfo(VERSION_ID); in GenChallengeMsg()
61 *devPacket = devicePacket; in GenChallengeMsg()
63 ATTEST_DFX_DEV_PACKET(devicePacket); in GenChallengeMsg()
68 static int32_t SendChallMsg(DevicePacket* devicePacket, char** respMsg, ATTEST_ACTION_TYPE action) in SendChallMsg() argument
[all …]
Dattest_service_auth.c845 DevicePacket* devicePacket = CreateDevicePacket(); in GenAuthMsg() local
846 if (devicePacket == NULL) { in GenAuthMsg()
850 devicePacket->appId = StrdupDevInfo(APP_ID); in GenAuthMsg()
851 devicePacket->tenantId = StrdupDevInfo(TENANT_ID); in GenAuthMsg()
852 devicePacket->randomUuid = StrdupDevInfo(RANDOM_UUID); in GenAuthMsg()
853 devicePacket->udid = StrdupDevInfo(UDID); in GenAuthMsg()
854 devicePacket->tokenInfo.uuid = AttestStrdup((char*)tokenId); in GenAuthMsg()
855 devicePacket->tokenInfo.token = AttestStrdup((char*)tokenValueHmac); in GenAuthMsg()
856 devicePacket->pcid = StrdupDevInfo(PCID); in GenAuthMsg()
857 int32_t ret = PackProductInfo(&devicePacket->productInfo); in GenAuthMsg()
[all …]
/test/xts/device_attest_lite/services/core/attest/
Dattest_service_reset.c45 DevicePacket* devicePacket = CreateDevicePacket(); in GenResetMsg() local
46 if (devicePacket == NULL) { in GenResetMsg()
50 devicePacket->appId = StrdupDevInfo(APP_ID); in GenResetMsg()
51 devicePacket->tenantId = StrdupDevInfo(TENANT_ID); in GenResetMsg()
52 devicePacket->randomUuid = StrdupDevInfo(RANDOM_UUID); in GenResetMsg()
53 devicePacket->udid = StrdupDevInfo(UDID); in GenResetMsg()
54 devicePacket->tokenInfo.uuid = AttestStrdup((char*)tokenId); in GenResetMsg()
55 devicePacket->tokenInfo.token = AttestStrdup((char*)tokenValueHmac); in GenResetMsg()
56 *devPacket = devicePacket; in GenResetMsg()
58 ATTEST_DFX_DEV_PACKET(devicePacket); in GenResetMsg()
[all …]
Dattest_service_active.c57 DevicePacket* devicePacket = CreateDevicePacket(); in GenActiveMsg() local
58 if (devicePacket == NULL) { in GenActiveMsg()
62 devicePacket->appId = StrdupDevInfo(APP_ID); in GenActiveMsg()
63 devicePacket->tenantId = StrdupDevInfo(TENANT_ID); in GenActiveMsg()
64 devicePacket->randomUuid = StrdupDevInfo(RANDOM_UUID); in GenActiveMsg()
65 devicePacket->udid = StrdupDevInfo(UDID); in GenActiveMsg()
66 devicePacket->ticket = AttestStrdup(authResult->ticket); in GenActiveMsg()
67 devicePacket->tokenInfo.uuid = AttestStrdup((char*)tokenId); in GenActiveMsg()
68 devicePacket->tokenInfo.token = AttestStrdup((char*)tokenValueHmac); in GenActiveMsg()
69 *devPacket = devicePacket; in GenActiveMsg()
[all …]
Dattest_service_challenge.c50 DevicePacket* devicePacket = CreateDevicePacket(); in GenChallengeMsg() local
51 if (devicePacket == NULL) { in GenChallengeMsg()
56 devicePacket->appId = StrdupDevInfo(APP_ID); in GenChallengeMsg()
57 devicePacket->tenantId = StrdupDevInfo(TENANT_ID); in GenChallengeMsg()
58 devicePacket->randomUuid = StrdupDevInfo(RANDOM_UUID); in GenChallengeMsg()
59 devicePacket->udid = StrdupDevInfo(UDID); in GenChallengeMsg()
60 devicePacket->productInfo.versionId = StrdupDevInfo(VERSION_ID); in GenChallengeMsg()
61 *devPacket = devicePacket; in GenChallengeMsg()
63 ATTEST_DFX_DEV_PACKET(devicePacket); in GenChallengeMsg()
68 static int32_t SendChallMsg(const DevicePacket* devicePacket, char** respMsg, ATTEST_ACTION_TYPE ac… in SendChallMsg() argument
[all …]
Dattest_service_auth.c865 DevicePacket* devicePacket = CreateDevicePacket(); in GenAuthMsg() local
866 if (devicePacket == NULL) { in GenAuthMsg()
870 devicePacket->appId = StrdupDevInfo(APP_ID); in GenAuthMsg()
871 devicePacket->tenantId = StrdupDevInfo(TENANT_ID); in GenAuthMsg()
872 devicePacket->randomUuid = StrdupDevInfo(RANDOM_UUID); in GenAuthMsg()
873 devicePacket->udid = StrdupDevInfo(UDID); in GenAuthMsg()
874 devicePacket->tokenInfo.uuid = AttestStrdup((char*)tokenId); in GenAuthMsg()
875 devicePacket->tokenInfo.token = AttestStrdup((char*)tokenValueHmac); in GenAuthMsg()
876 devicePacket->pcid = StrdupDevInfo(PCID); in GenAuthMsg()
877 int32_t ret = PackProductInfo(&devicePacket->productInfo); in GenAuthMsg()
[all …]
/test/xts/device_attest_lite/services/core/dfx/
Dattest_dfx.c43 void PrintDevicePacket(DevicePacket* devicePacket) in PrintDevicePacket() argument
46 if (devicePacket == NULL) { in PrintDevicePacket()
51 if (devicePacket->tenantId == NULL) { in PrintDevicePacket()
54 ATTEST_LOG_INFO("tenantId = %s;", devicePacket->tenantId); in PrintDevicePacket()
57 if (devicePacket->udid == NULL) { in PrintDevicePacket()
60 ATTEST_LOG_INFO_ANONY("udid = %s;", devicePacket->udid); in PrintDevicePacket()
63 if (devicePacket->ticket == NULL) { in PrintDevicePacket()
66 ATTEST_LOG_INFO_ANONY("ticket = %s;", devicePacket->ticket); in PrintDevicePacket()
69 if (devicePacket->randomUuid == NULL) { in PrintDevicePacket()
72 ATTEST_LOG_INFO("randomUuid = %s;", devicePacket->randomUuid); in PrintDevicePacket()
[all …]
/test/xts/device_attest/services/core/dfx/
Dattest_dfx.c43 void PrintDevicePacket(DevicePacket* devicePacket) in PrintDevicePacket() argument
46 if (devicePacket == NULL) { in PrintDevicePacket()
51 if (devicePacket->tenantId == NULL) { in PrintDevicePacket()
54 ATTEST_LOG_INFO("tenantId = %s;", devicePacket->tenantId); in PrintDevicePacket()
57 if (devicePacket->udid == NULL) { in PrintDevicePacket()
60 ATTEST_LOG_INFO_ANONY("udid = %s;", devicePacket->udid); in PrintDevicePacket()
63 if (devicePacket->ticket == NULL) { in PrintDevicePacket()
66 ATTEST_LOG_INFO_ANONY("ticket = %s;", devicePacket->ticket); in PrintDevicePacket()
69 if (devicePacket->randomUuid == NULL) { in PrintDevicePacket()
72 ATTEST_LOG_INFO("randomUuid = %s;", devicePacket->randomUuid); in PrintDevicePacket()
[all …]
/test/xts/device_attest/services/core/network/
Dattest_network.c76 DevicePacket* devicePacket = (DevicePacket *)ATTEST_MEM_MALLOC(sizeof(DevicePacket)); in CreateDevicePacket() local
77 if (devicePacket == NULL) { in CreateDevicePacket()
81 devicePacket->appId = NULL; in CreateDevicePacket()
82 devicePacket->tenantId = NULL; in CreateDevicePacket()
83 devicePacket->udid = NULL; in CreateDevicePacket()
84 devicePacket->ticket = NULL; in CreateDevicePacket()
85 devicePacket->randomUuid = NULL; in CreateDevicePacket()
86 devicePacket->tokenInfo.uuid = NULL; in CreateDevicePacket()
87 devicePacket->tokenInfo.token = NULL; in CreateDevicePacket()
88 devicePacket->productInfo.prodId = NULL; in CreateDevicePacket()
[all …]
/test/xts/device_attest_lite/services/core/network/
Dattest_network.c79 DevicePacket* devicePacket = (DevicePacket *)ATTEST_MEM_MALLOC(sizeof(DevicePacket)); in CreateDevicePacket() local
80 if (devicePacket == NULL) { in CreateDevicePacket()
84 devicePacket->appId = NULL; in CreateDevicePacket()
85 devicePacket->tenantId = NULL; in CreateDevicePacket()
86 devicePacket->udid = NULL; in CreateDevicePacket()
87 devicePacket->ticket = NULL; in CreateDevicePacket()
88 devicePacket->randomUuid = NULL; in CreateDevicePacket()
89 devicePacket->tokenInfo.uuid = NULL; in CreateDevicePacket()
90 devicePacket->tokenInfo.token = NULL; in CreateDevicePacket()
91 devicePacket->productInfo.prodId = NULL; in CreateDevicePacket()
[all …]
/test/xts/device_attest_lite/services/core/include/network/
Dattest_network.h63 void DestroyDevicePacket(DevicePacket** devicePacket);
65 #define FREE_DEVICE_PACKET(devicePacket) DestroyDevicePacket((DevicePacket**)&(devicePacket)) argument
/test/xts/device_attest/services/core/include/network/
Dattest_network.h99 void DestroyDevicePacket(DevicePacket** devicePacket);
101 #define FREE_DEVICE_PACKET(devicePacket) DestroyDevicePacket((DevicePacket**)&(devicePacket)) argument
/test/xts/device_attest_lite/services/core/include/attest/
Dattest_service_reset.h27 int32_t SendResetMsg(const DevicePacket* devicePacket, char** respMsg);
Dattest_service_active.h27 int32_t SendActiveMsg(const DevicePacket* devicePacket, char** respMsg);
Dattest_service_auth.h55 int32_t SendAuthMsg(const DevicePacket* devicePacket, char** respMsg);
/test/xts/device_attest/services/core/include/attest/
Dattest_service_reset.h29 int32_t SendResetMsg(DevicePacket* devicePacket, char** respMsg);
Dattest_service_active.h29 int32_t SendActiveMsg(DevicePacket* devicePacket, char** respMsg);
Dattest_service_auth.h56 int32_t SendAuthMsg(DevicePacket* devicePacket, char** respMsg);
/test/xts/device_attest_lite/services/core/include/dfx/
Dattest_dfx.h33 void PrintDevicePacket(DevicePacket* devicePacket);
/test/xts/device_attest/services/core/include/dfx/
Dattest_dfx.h33 void PrintDevicePacket(DevicePacket* devicePacket);