Home
last modified time | relevance | path

Searched refs:offlineCode (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_session_json.c1715 char offlineCode[BASE64_OFFLINE_CODE_LEN] = {0}; in PackWiFi() local
1718 strlen(offlineCode), sizeof(info->offlineCode)); in PackWiFi()
1719 int32_t ret = SoftBusBase64Encode((unsigned char*)offlineCode, BASE64_OFFLINE_CODE_LEN, &len, in PackWiFi()
1720 (unsigned char*)info->offlineCode, sizeof(info->offlineCode)); in PackWiFi()
1725 (void)JSON_AddStringToObject(json, BLE_OFFLINE_CODE, offlineCode); in PackWiFi()
1763 char offlineCode[BASE64_OFFLINE_CODE_LEN] = {0}; in UnpackWiFi() local
1765 OptString(json, BLE_OFFLINE_CODE, offlineCode, BASE64_OFFLINE_CODE_LEN, ""); in UnpackWiFi()
1767 if (SoftBusBase64Decode(info->offlineCode, OFFLINE_CODE_BYTE_SIZE, in UnpackWiFi()
1768 &len, (const unsigned char *)offlineCode, strlen(offlineCode)) != 0) { in UnpackWiFi()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_sync_info_manager.c569 static char *PackWifiOfflineMsg(int32_t authPort, char *offlineCode) in PackWifiOfflineMsg() argument
578 !JSON_AddStringToObject(json, NETWORK_OFFLINE_CODE, offlineCode)) { in PackWifiOfflineMsg()
655 …ic bool CheckWifiOfflineMsgResult(const char *networkId, int32_t authPort, const char *offlineCode) in CheckWifiOfflineMsgResult() argument
679 if (strcmp(convertOfflineCode, offlineCode) != 0 || port != authPort) { in CheckWifiOfflineMsgResult()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/include/
H A Dlnn_node_info.h156 unsigned char offlineCode[OFFLINE_CODE_BYTE_SIZE]; member
/ohos5.0/foundation/communication/dsoftbus/tests/core/authentication/unittest/
H A Dauth_test_mock.cpp145 memset_s(g_localInfo.offlineCode, OFFLINE_CODE_BYTE_SIZE, 0, OFFLINE_CODE_BYTE_SIZE); in ClientFSMCreate()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/local_ledger/src/
H A Dlnn_local_net_ledger.c151 if (memcpy_s(buf, len, info->offlineCode, OFFLINE_CODE_BYTE_SIZE) != EOK) { in LlGetOffLineCode()
1011 if (memset_s(info->offlineCode, OFFLINE_CODE_BYTE_SIZE, 0, OFFLINE_CODE_BYTE_SIZE) != EOK) { in InitOfflineCode()
1015 if (SoftBusGenerateRandomArray(info->offlineCode, OFFLINE_CODE_BYTE_SIZE) != SOFTBUS_OK) { in InitOfflineCode()
1260 …return ModifyId((char *)g_localNetLedger.localInfo.offlineCode, OFFLINE_CODE_BYTE_SIZE, (char *)id… in LlUpdateLocalOffLineCode()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/
H A Dlnn_distributed_net_ledger.c238 if (memcpy_s(newInfo->offlineCode, OFFLINE_CODE_BYTE_SIZE, in RetainOfflineCode()
239 oldInfo->offlineCode, OFFLINE_CODE_BYTE_SIZE) != SOFTBUS_OK) { in RetainOfflineCode()
H A Dlnn_distributed_net_ledger_manager.c62 if (memcpy_s(buf, len, info->offlineCode, OFFLINE_CODE_BYTE_SIZE) != EOK) { in DlGetDeviceOfflineCode()