Home
last modified time | relevance | path

Searched refs:tmp_pk (Results 1 – 2 of 2) sorted by relevance

/AliOS-Things-master/components/linksdk/components/shadow/
A Daiot_shadow_api.c25 char *tmp_pk = NULL, *tmp_dn = NULL; in _shadow_get_pk_dn() local
39 tmp_pk = sysdep->core_sysdep_malloc(pk_len + 1, SHADOW_MODULE_NAME); in _shadow_get_pk_dn()
40 if (tmp_pk == NULL) { in _shadow_get_pk_dn()
43 memset(tmp_pk, 0, pk_len + 1); in _shadow_get_pk_dn()
44 memcpy(tmp_pk, pk_pos, pk_len); in _shadow_get_pk_dn()
48 sysdep->core_sysdep_free(tmp_pk); in _shadow_get_pk_dn()
54 *product_key = tmp_pk; in _shadow_get_pk_dn()
/AliOS-Things-master/components/linksdk/components/devinfo/
A Daiot_devinfo_api.c33 char *pk_pos = NULL, *dn_pos = NULL, *tmp_pk = NULL, *tmp_dn = NULL; in _devinfo_find_pk_dn() local
56 tmp_pk = devinfo_handle->sysdep->core_sysdep_malloc(pk_len + 1, DEVINFO_MODULE_NAME); in _devinfo_find_pk_dn()
57 if (tmp_pk == NULL) { in _devinfo_find_pk_dn()
60 memset(tmp_pk, 0, pk_len + 1); in _devinfo_find_pk_dn()
61 memcpy(tmp_pk, pk_pos, pk_len); in _devinfo_find_pk_dn()
65 devinfo_handle->sysdep->core_sysdep_free(tmp_pk); in _devinfo_find_pk_dn()
71 *product_key = tmp_pk; in _devinfo_find_pk_dn()

Completed in 4 milliseconds