Home
last modified time | relevance | path

Searched refs:TO_INT32 (Results 1 - 4 of 4) sorted by relevance

/foundation/communication/dsoftbus/core/authentication/include/
H A Dauth_common.h93 #define TO_INT32(value) ((int32_t)(((uint32_t)(value)) & INT32_MASK)) macro
/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_manager.c607 if (AddSessionKey(list, TO_INT32(*peerAuthSeq), key, info->connInfo.type, isOldKey) != SOFTBUS_OK) { in ProcessSessionKey()
611 AUTH_LOGI(AUTH_FSM, "add key index=%{public}d, new type=%{public}d", TO_INT32(*peerAuthSeq), info->connInfo.type); in ProcessSessionKey()
774 ret = SetSessionKeyAvailable(&auth->sessionKeyList, TO_INT32(sessionKeyIndex)); in AuthManagerSetSessionKey()
780 auth->authId, authSeq, TO_INT32(sessionKeyIndex), auth->lastVerifyTime); in AuthManagerSetSessionKey()
803 if (GetSessionKeyByIndex(&auth->sessionKeyList, TO_INT32(authSeq), info->connInfo.type, in AuthManagerGetSessionKey()
956 if (SetSessionKeyAvailable(&auth->sessionKeyList, TO_INT32(index)) != SOFTBUS_OK) { in AuthManagerSetAuthPassed()
957 AUTH_LOGE(AUTH_FSM, "set sessionKey available fail, index=%{public}d", TO_INT32(index)); in AuthManagerSetAuthPassed()
962 if (AuthProcessEmptySessionKey(info, TO_INT32(index)) != SOFTBUS_OK) { in AuthManagerSetAuthPassed()
963 AUTH_LOGE(AUTH_FSM, "process empty session key error, index=%{public}d", TO_INT32(index)); in AuthManagerSetAuthPassed()
975 AUTH_LOGE(AUTH_FSM, "set remote ptk error, index=%{public}d", TO_INT32(inde in AuthManagerSetAuthPassed()
[all...]
H A Dauth_session_message.c187 if (AddSessionKey(list, TO_INT32(index), &sessionKey, info->connInfo.type, false) != SOFTBUS_OK) { in GetDumpSessionKeyList()
193 if (SetSessionKeyAvailable(list, TO_INT32(index)) != SOFTBUS_OK) { in GetDumpSessionKeyList()
/foundation/communication/dsoftbus/tests/core/authentication/unittest/
H A Dauth_test.cpp422 ret = AddSessionKey(&list, TO_INT32(authSeq), &sessionKey, AUTH_LINK_TYPE_WIFI, false); in HWTEST_F()
464 ret = AddSessionKey(&list, TO_INT32(authSeq), &sessionKey, AUTH_LINK_TYPE_WIFI, false); in HWTEST_F()

Completed in 7 milliseconds