/AliOS-Things-master/components/linkkit/wrappers/os/ |
A D | HAL_PRODUCT_rhino.c | 61 int HAL_SetProductSecret(char *product_secret) in HAL_SetProductSecret() argument 66 if (product_secret == NULL) { in HAL_SetProductSecret() 71 len = strlen(product_secret); in HAL_SetProductSecret() 76 strncpy(_product_secret, product_secret, len); in HAL_SetProductSecret() 111 int HAL_GetProductSecret(char product_secret[IOTX_PRODUCT_SECRET_LEN + 1]) in HAL_GetProductSecret() 124 memset(product_secret, 0x0, IOTX_PRODUCT_SECRET_LEN + 1); in HAL_GetProductSecret() 125 strncpy(product_secret, _product_secret, len); in HAL_GetProductSecret()
|
A D | HAL_TLS_itls.c | 171 const char *product_secret) in _TLSConnectNetwork() argument 238 ret = mbedtls_ssl_conf_auth_token(&(pTlsData->conf), product_secret, in _TLSConnectNetwork() 239 strlen(product_secret)); in _TLSConnectNetwork()
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/advanced/aiot/ |
A D | module_aiot_dynreg.c | 50 char product_secret[IOTX_PRODUCT_SECRET_LEN] = {0}; in aiot_dynreg_http() local 58 aos_kv_get(AMP_CUSTOMER_PRODUCTSECRET, product_secret, &productsecret_len); in aiot_dynreg_http() 60 amp_debug(MOD_STR, "dev info pk: %s, ps: %s, dn: %s", product_key, product_secret, device_name); in aiot_dynreg_http() 75 if (product_secret[0] == '\0' || product_secret[IOTX_PRODUCT_SECRET_LEN] != '\0') { in aiot_dynreg_http() 95 aiot_dynreg_setopt(dynreg_handle, AIOT_DYNREGOPT_PRODUCT_SECRET, (void *)product_secret); in aiot_dynreg_http()
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/advanced/aiot/ |
A D | module_aiot_dynreg.c | 58 char product_secret[IOTX_PRODUCT_SECRET_LEN] = {0}; in aiot_dynreg_http() local 68 aos_kv_get(AMP_CUSTOMER_PRODUCTSECRET, product_secret, &productsecret_len); in aiot_dynreg_http() 70 amp_debug(MOD_STR, "dev info pk: %s, ps: %s, dn: %s", product_key, product_secret, device_name); in aiot_dynreg_http() 90 if (product_secret[0] == '\0' || product_secret[IOTX_PRODUCT_SECRET_LEN] != '\0') in aiot_dynreg_http() 115 aiot_dynreg_setopt(dynreg_handle, AIOT_DYNREGOPT_PRODUCT_SECRET, (void *)product_secret); in aiot_dynreg_http()
|
/AliOS-Things-master/components/py_engine/modules/aliyunIoT/ |
A D | module_aiot_dynreg.c | 63 char product_secret[IOTX_PRODUCT_SECRET_LEN] = { 0 }; in pyamp_aiot_dynreg_http() local 73 aos_kv_get(AMP_CUSTOMER_PRODUCTSECRET, product_secret, &productsecret_len); in pyamp_aiot_dynreg_http() 76 product_secret, device_name); in pyamp_aiot_dynreg_http() 101 if (product_secret[0] == '\0') { in pyamp_aiot_dynreg_http() 128 (void *)product_secret); in pyamp_aiot_dynreg_http()
|
A D | module_aiot_gateway.c | 697 subdev[i].product_secret = __amp_strdup(productSecret); in aiot_topo_common() 739 if (subdev[i].product_secret) { in aiot_topo_common() 740 aos_free(subdev[i].product_secret); in aiot_topo_common()
|
/AliOS-Things-master/components/linkkit/wrappers/platform/os/ |
A D | HAL_OS_yoc.c | 307 int HAL_GetProductSecret(char *product_secret) in HAL_GetProductSecret() argument 320 memset(product_secret, 0x0, PRODUCT_SECRET_LEN + 1); in HAL_GetProductSecret() 321 strncpy(product_secret, _product_secret, len); in HAL_GetProductSecret() 391 int HAL_SetProductSecret(char *product_secret) in HAL_SetProductSecret() argument 395 if (product_secret == NULL) { in HAL_SetProductSecret() 400 len = strlen(product_secret); in HAL_SetProductSecret() 408 strncpy(_product_secret, product_secret, len); in HAL_SetProductSecret() 409 aos_kv_set(DEVINFO_PS, product_secret, len, 1); in HAL_SetProductSecret()
|
/AliOS-Things-master/components/linkkit/include/linkkit/wrappers/ |
A D | wrappers_os.h | 60 int HAL_SetProductSecret(char *product_secret); 66 int HAL_GetProductSecret(char product_secret[IOTX_PRODUCT_SECRET_LEN + 1]);
|
/AliOS-Things-master/components/linkkit/dynamic_register/ |
A D | dynreg.c | 126 char product_secret[IOTX_PRODUCT_SECRET_LEN], in _calc_dynreg_sign() 154 (uint8_t *)product_secret, strlen(product_secret), in _calc_dynreg_sign() 286 strlen(meta->product_secret) > IOTX_PRODUCT_SECRET_LEN || in _http_dynamic_register() 292 res = _calc_dynreg_sign(meta->product_key, meta->product_secret, in _http_dynamic_register() 367 (uint8_t *)meta_info->product_secret, in _mqtt_dynreg_sign_password() 368 strlen(meta_info->product_secret), sign_hex); in _mqtt_dynreg_sign_password()
|
/AliOS-Things-master/components/linksdk/components/dynreg-mqtt/ |
A D | aiot_dynregmq_api.c | 193 …res = core_strdup(dynregmq_handle->sysdep, &dynregmq_handle->product_secret, data, DYNREGMQ_MODULE… in aiot_dynregmq_setopt() 288 if (dynregmq_handle->product_secret != NULL) { in aiot_dynregmq_deinit() 289 sysdep->core_sysdep_free(dynregmq_handle->product_secret); in aiot_dynregmq_deinit() 336 if (dynregmq_handle->product_secret == NULL) { in aiot_dynregmq_send_request() 391 (const uint8_t *)dynregmq_handle->product_secret, in aiot_dynregmq_send_request() 392 (uint32_t)strlen(dynregmq_handle->product_secret), sign_output); in aiot_dynregmq_send_request()
|
A D | dynregmq_private.h | 39 char *product_secret; member
|
/AliOS-Things-master/components/linksdk/components/dynreg/ |
A D | aiot_dynreg_api.c | 42 …(const uint8_t *)dynreg_handle->product_secret, (uint32_t)strlen(dynreg_handle->product_secret), s… in _dynreg_sign() 200 …res = core_strdup(dynreg_handle->sysdep, &dynreg_handle->product_secret, data, DYNREG_MODULE_NAME); in aiot_dynreg_setopt() 292 if (dynreg_handle->product_secret != NULL) { in aiot_dynreg_deinit() 293 sysdep->core_sysdep_free(dynreg_handle->product_secret); in aiot_dynreg_deinit() 328 if (dynreg_handle->product_secret == NULL) { in aiot_dynreg_send_request()
|
A D | dynreg_private.h | 33 char *product_secret; member
|
/AliOS-Things-master/components/linkkit/dev_model/deprecated/ |
A D | iot_export_linkkit.h | 22 char product_secret[IOTX_PRODUCT_SECRET_LEN + 1]; member
|
/AliOS-Things-master/components/linkkit/include/linkkit/ |
A D | dev_model_api.h | 23 char product_secret[IOTX_PRODUCT_SECRET_LEN + 1]; member
|
/AliOS-Things-master/solutions/linksdk_gateway_demo/ |
A D | README.md | 128 "替换为上章节创建的子设备1的product_secret", 134 "替换为上章节创建的子设备2的product_secret",
|
/AliOS-Things-master/components/linkkit/mqtt/ |
A D | mqtt_api.c | 95 int HAL_GetProductSecret(char *product_secret); 221 HAL_GetProductSecret(meta_info.product_secret); in IOT_MQTT_Construct() 222 if (meta_info.product_secret[0] == '\0' || in IOT_MQTT_Construct() 223 meta_info.product_secret[IOTX_PRODUCT_SECRET_LEN] != '\0') { in IOT_MQTT_Construct()
|
/AliOS-Things-master/components/linksdk/components/subdev/ |
A D | aiot_subdev_api.h | 138 char *product_secret; member
|
A D | aiot_subdev_api.c | 327 …xt, (uint32_t)strlen(plain_text), (uint8_t *)dev->product_secret, (uint32_t)strlen(dev->product_se… in _subdev_calculate_product_register_sign() 928 if (dev[idx].product_secret == NULL) { in aiot_subdev_send_product_register()
|
/AliOS-Things-master/components/linkkit/dev_model/ |
A D | dm_manager.h | 18 char product_secret[IOTX_PRODUCT_SECRET_LEN + 1]; member 39 _IN_ char product_secret[IOTX_PRODUCT_SECRET_LEN + 1],
|
A D | dm_manager.c | 250 _IN_ char product_secret[IOTX_PRODUCT_SECRET_LEN + 1], in dm_mgr_device_create() 259 if (product_key == NULL || product_secret == NULL || device_name == NULL || in dm_mgr_device_create() 261 strlen(product_secret) >= IOTX_PRODUCT_SECRET_LEN + 1 || in dm_mgr_device_create() 292 memcpy(node->product_secret, product_secret, strlen(product_secret)); in dm_mgr_device_create() 715 node->product_key, node->product_secret, node->device_name, &request); in dm_mgr_upstream_thing_proxy_product_register()
|
A D | dm_message.h | 182 _IN_ char product_secret[IOTX_PRODUCT_SECRET_LEN + 1],
|
A D | iotx_dm.h | 239 _IN_ char product_secret[IOTX_PRODUCT_SECRET_LEN + 1],
|
/AliOS-Things-master/components/linkkit/include/linkkit/infra/ |
A D | infra_defs.h | 346 char product_secret[IOTX_PRODUCT_SECRET_LEN + 1]; member
|
/AliOS-Things-master/solutions/linkkit_genie_demo/ |
A D | genie_demo.c | 295 HAL_GetProductSecret(master_meta_info.product_secret); in linkkit_main()
|