Searched refs:offlineCode (Results 1 – 7 of 7) sorted by relevance
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/ |
H A D | auth_session_json.c | 1715 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 D | lnn_sync_info_manager.c | 569 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 D | lnn_node_info.h | 156 unsigned char offlineCode[OFFLINE_CODE_BYTE_SIZE]; member
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/authentication/unittest/ |
H A D | auth_test_mock.cpp | 145 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 D | lnn_local_net_ledger.c | 151 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 D | lnn_distributed_net_ledger.c | 238 if (memcpy_s(newInfo->offlineCode, OFFLINE_CODE_BYTE_SIZE, in RetainOfflineCode() 239 oldInfo->offlineCode, OFFLINE_CODE_BYTE_SIZE) != SOFTBUS_OK) { in RetainOfflineCode()
|
H A D | lnn_distributed_net_ledger_manager.c | 62 if (memcpy_s(buf, len, info->offlineCode, OFFLINE_CODE_BYTE_SIZE) != EOK) { in DlGetDeviceOfflineCode()
|