Home
last modified time | relevance | path

Searched refs:authStatus (Results 1 – 16 of 16) sorted by relevance

/test/xts/device_attest/services/core/attest/
Dattest_service_auth.c41 AuthStatus* authStatus = CreateAuthStatus(); in IsAuthStatusChg() local
44 ret = DecodeAuthStatus((const char*)authStatusBase64, authStatus); in IsAuthStatusChg()
49 ret = CheckVersionChanged(authStatus); in IsAuthStatusChg()
60 ret = CheckExpireTime(authStatus, currentTime); in IsAuthStatusChg()
65 ret = CheckAuthResult(authStatus); in IsAuthStatusChg()
73 DestroyAuthStatus(&authStatus); in IsAuthStatusChg()
78 int32_t FlushAuthResult(const char* ticket, const char* authStatus) in FlushAuthResult() argument
85 if (authStatus == NULL || AttestWriteAuthStatus(authStatus, strlen(authStatus)) != 0) { in FlushAuthResult()
94 AuthStatus* authStatus = CreateAuthStatus(); in FlushAttestStatusPara() local
95 if (DecodeAuthStatus(authStatusBase64, authStatus) != 0) { in FlushAttestStatusPara()
[all …]
Dattest_service.c193 static void FlushAttestData(const char* ticket, const char* authStatus) in FlushAttestData() argument
196 if (authStatus == NULL) { in FlushAttestData()
202 if (FlushAuthResult(ticket, authStatus) != ATTEST_OK) { in FlushAttestData()
206 if (FlushAttestStatusPara(authStatus) != ATTEST_OK) { in FlushAttestData()
247 FlushAttestData(authResult->ticket, authResult->authStatus); in AttestStartup()
339 static int32_t CopyResultArray(AuthStatus* authStatus, int32_t** resultArray) in CopyResultArray() argument
341 if (authStatus == NULL || resultArray == NULL) { in CopyResultArray()
345 head[ATTEST_RESULT_AUTH] = AttestStatusTrans(authStatus->hardwareResult); in CopyResultArray()
346 head[ATTEST_RESULT_SOFTWARE] = AttestStatusTrans(authStatus->softwareResult); in CopyResultArray()
347 …SoftwareResultDetail *softwareResultDetail = (SoftwareResultDetail *)authStatus->softwareResultDet… in CopyResultArray()
[all …]
/test/xts/device_attest_lite/services/core/attest/
Dattest_service_auth.c43 AuthStatus* authStatus = CreateAuthStatus(); in IsAuthStatusChg() local
46 ret = DecodeAuthStatus((const char*)authStatusBase64, authStatus); in IsAuthStatusChg()
51 ret = CheckVersionChanged(authStatus); in IsAuthStatusChg()
62 ret = CheckExpireTime(authStatus, currentTime); in IsAuthStatusChg()
67 ret = CheckAuthResult(authStatus); in IsAuthStatusChg()
75 DestroyAuthStatus(&authStatus); in IsAuthStatusChg()
80 int32_t FlushAuthResult(const char* ticket, const char* authStatus) in FlushAuthResult() argument
87 if (authStatus == NULL || AttestWriteAuthStatus(authStatus, strlen(authStatus)) != 0) { in FlushAuthResult()
96 AuthStatus* authStatus = CreateAuthStatus(); in FlushAttestStatusPara() local
97 if (DecodeAuthStatus(authStatusBase64, authStatus) != 0) { in FlushAttestStatusPara()
[all …]
Dattest_service.c221 static void FlushAttestData(const char* ticket, const char* authStatus) in FlushAttestData() argument
224 if (authStatus == NULL) { in FlushAttestData()
230 if (FlushAuthResult(ticket, authStatus) != ATTEST_OK) { in FlushAttestData()
234 if (FlushAttestStatusPara(authStatus) != ATTEST_OK) { in FlushAttestData()
279 FlushAttestData(authResult->ticket, authResult->authStatus); in AttestStartup()
374 static int32_t CopyResultArray(AuthStatus* authStatus, int32_t** resultArray) in CopyResultArray() argument
376 if (authStatus == NULL || resultArray == NULL) { in CopyResultArray()
380 head[ATTEST_RESULT_AUTH] = AttestStatusTrans(authStatus->hardwareResult); in CopyResultArray()
381 head[ATTEST_RESULT_SOFTWARE] = AttestStatusTrans(authStatus->softwareResult); in CopyResultArray()
382 …SoftwareResultDetail *softwareResultDetail = (SoftwareResultDetail *)authStatus->softwareResultDet… in CopyResultArray()
[all …]
/test/xts/device_attest_lite/services/core/dfx/
Dattest_dfx.c183 if (authResult->authStatus == NULL) { in PrintAuthResult()
191 void PrintAuthStatus(AuthStatus* authStatus) in PrintAuthStatus() argument
194 if (authStatus == NULL) { in PrintAuthStatus()
198 if (authStatus->versionId == NULL) { in PrintAuthStatus()
201 ATTEST_LOG_INFO("versionId = %s;", authStatus->versionId); in PrintAuthStatus()
203 ATTEST_LOG_INFO("softwareResult = %d;", authStatus->softwareResult); in PrintAuthStatus()
204 ATTEST_LOG_INFO("hardwareResult = %d;", authStatus->hardwareResult); in PrintAuthStatus()
205 if (authStatus->authType == NULL) { in PrintAuthStatus()
208 ATTEST_LOG_INFO("authType = %s;", authStatus->authType); in PrintAuthStatus()
210 ATTEST_LOG_INFO("expireTime = %I64u;", authStatus->expireTime); in PrintAuthStatus()
/test/xts/device_attest/services/core/dfx/
Dattest_dfx.c183 if (authResult->authStatus == NULL) { in PrintAuthResult()
191 void PrintAuthStatus(AuthStatus* authStatus) in PrintAuthStatus() argument
194 if (authStatus == NULL) { in PrintAuthStatus()
198 if (authStatus->versionId == NULL) { in PrintAuthStatus()
201 ATTEST_LOG_INFO("versionId = %s;", authStatus->versionId); in PrintAuthStatus()
203 ATTEST_LOG_INFO("softwareResult = %d;", authStatus->softwareResult); in PrintAuthStatus()
204 ATTEST_LOG_INFO("hardwareResult = %d;", authStatus->hardwareResult); in PrintAuthStatus()
205 if (authStatus->authType == NULL) { in PrintAuthStatus()
208 ATTEST_LOG_INFO("authType = %s;", authStatus->authType); in PrintAuthStatus()
210 ATTEST_LOG_INFO("expireTime = %I64u;", authStatus->expireTime); in PrintAuthStatus()
/test/xts/device_attest/services/core/include/attest/
Dattest_service_auth.h30 int32_t FlushAuthResult(const char* ticket, const char* authStatus);
36 int32_t CheckVersionChanged(AuthStatus* authStatus);
40 int32_t CheckExpireTime(AuthStatus* authStatus, uint64_t currentTime);
42 int32_t CheckAuthResult(AuthStatus* authStatus);
/test/xts/device_attest_lite/services/core/include/attest/
Dattest_service_auth.h29 int32_t FlushAuthResult(const char* ticket, const char* authStatus);
35 int32_t CheckVersionChanged(AuthStatus* authStatus);
39 int32_t CheckExpireTime(AuthStatus* authStatus, uint64_t currentTime);
41 int32_t CheckAuthResult(AuthStatus* authStatus);
/test/xts/device_attest_lite/test/tdd/gtest/
Dattest_tdd_test.cpp223 static void FreeAuthStatus(AuthStatus* authStatus) in FreeAuthStatus() argument
225 if (authStatus->versionId != NULL) { in FreeAuthStatus()
226 free(authStatus->versionId); in FreeAuthStatus()
228 if (authStatus->authType != NULL) { in FreeAuthStatus()
229 free(authStatus->authType); in FreeAuthStatus()
231 if (authStatus->softwareResultDetail != NULL) { in FreeAuthStatus()
232 free(authStatus->softwareResultDetail); in FreeAuthStatus()
234 free(authStatus); in FreeAuthStatus()
406 (authResult->authStatus != nullptr));
/test/xts/device_attest_lite/services/core/include/dfx/
Dattest_dfx.h41 void PrintAuthStatus(AuthStatus* authStatus);
/test/xts/device_attest/services/core/include/dfx/
Dattest_dfx.h41 void PrintAuthStatus(AuthStatus* authStatus);
/test/xts/device_attest_lite/services/core/include/
Dattest_type.h77 char* authStatus; member
/test/xts/device_attest/services/core/include/
Dattest_type.h90 char* authStatus; member
/test/xts/device_attest/services/devattest_ability/test/tdd/gtest/src/
Dattest_tdd_test.cpp330 (authResult->authStatus != nullptr));
/test/xts/dcts/communication/softbus_standard/dsoftbusTest/
DdsoftbusTest.cpp480 LOG("[cb]StatusChanged id: %s,status: %d", status->basicInfo.networkId, status->authStatus); in onDefNodeStatusChanged()
/test/xts/dcts/communication/softbus_standard/common/
Dnet_trans_common.c320 LOG("[cb]StatusChanged id: %s,status: %d", status->basicInfo.networkId, status->authStatus); in onDefNodeStatusChanged()