/AliOS-Things-master/components/linkkit/dev_model/alcs/ |
A D | alcs_localsetup.c | 68 const char *dn, uint16_t dn_len, in __fill_key() argument 77 dn_len >= IOTX_DEVICE_NAME_LEN + 1) { in __fill_key() 83 HAL_Snprintf(key_source, sizeof(key_source), "%.*s%.*s", pk_len, pk, dn_len, in __fill_key() 92 const char *pk, uint16_t pk_len, const char *dn, uint16_t dn_len, in __alcs_localsetup_ac_as_save() argument 104 rt = __fill_key(pk, pk_len, dn, dn_len, key_md5_hexstr); in __alcs_localsetup_ac_as_save() 135 const char *dn, uint16_t dn_len, in alcs_localsetup_ac_as_load() argument 149 rt = __fill_key(pk, pk_len, dn, dn_len, key_md5_hexstr); in alcs_localsetup_ac_as_load() 176 uint16_t dn_len) in __alcs_localsetup_ac_as_del() argument 180 rt = __fill_key(pk, pk_len, dn, dn_len, key_md5_hexstr); in __alcs_localsetup_ac_as_del()
|
A D | alcs_mqtt.c | 97 const char *pk, uint16_t pk_len, const char *dn, uint16_t dn_len, in __alcs_mqtt_prefix_secret_save() argument 107 dn_len >= IOTX_DEVICE_NAME_LEN + 1 || prefix == NULL || in __alcs_mqtt_prefix_secret_save() 114 key_source = ALCS_ADAPTER_malloc(pk_len + dn_len + 1); in __alcs_mqtt_prefix_secret_save() 119 memset(key_source, 0, pk_len + dn_len + 1); in __alcs_mqtt_prefix_secret_save() 122 dn_len, dn); in __alcs_mqtt_prefix_secret_save() 173 key_source = ALCS_ADAPTER_malloc(pk_len + dn_len + 1); in alcs_mqtt_prefix_secret_load() 178 memset(key_source, 0, pk_len + dn_len + 1); in alcs_mqtt_prefix_secret_load() 181 dn_len, dn); in alcs_mqtt_prefix_secret_load() 215 key_source = ALCS_ADAPTER_malloc(pk_len + dn_len + 1); in alcs_mqtt_prefix_secret_del() 220 memset(key_source, 0, pk_len + dn_len + 1); in alcs_mqtt_prefix_secret_del() [all …]
|
A D | alcs_mqtt.h | 63 const char *dn, uint16_t dn_len, 66 const char *dn, uint16_t dn_len);
|
/AliOS-Things-master/components/ble_netconfig/ |
A D | blecfg_main.c | 96 int8_t pk_len, dn_len, ds_len; in BleCfg_cmd_parse() local 208 dn_len = cmd_merge[3]; in BleCfg_cmd_parse() 211 pk = malloc(pk_len + dn_len + ds_len + 3); in BleCfg_cmd_parse() 218 ds = dn + dn_len + 1; in BleCfg_cmd_parse() 223 memcpy(dn, cmd_merge + 5 + pk_len, dn_len); in BleCfg_cmd_parse() 224 dn[dn_len] = 0; in BleCfg_cmd_parse() 226 memcpy(ds, cmd_merge + 5 + pk_len + dn_len, ds_len); in BleCfg_cmd_parse()
|
/AliOS-Things-master/components/linksdk/components/shadow/ |
A D | aiot_shadow_api.c | 22 uint16_t pk_len = 0, dn_len = 0; in _shadow_get_pk_dn() local 31 dn_len = topic_len - idx - 1; in _shadow_get_pk_dn() 35 if (pk_len == 0 || dn_len == 0) { in _shadow_get_pk_dn() 46 tmp_dn = sysdep->core_sysdep_malloc(dn_len + 1, SHADOW_MODULE_NAME); in _shadow_get_pk_dn() 51 memset(tmp_dn, 0, dn_len + 1); in _shadow_get_pk_dn() 52 memcpy(tmp_dn, dn_pos, dn_len); in _shadow_get_pk_dn()
|
/AliOS-Things-master/components/linksdk/components/devinfo/ |
A D | aiot_devinfo_api.c | 32 uint16_t idx = 0, prev_slash = 0, slash = 0, pk_len = 0, dn_len = 0; in _devinfo_find_pk_dn() local 46 dn_len = idx - prev_slash - 1; in _devinfo_find_pk_dn() 52 if (pk_len == 0 || dn_len == 0) { in _devinfo_find_pk_dn() 63 tmp_dn = devinfo_handle->sysdep->core_sysdep_malloc(dn_len + 1, DEVINFO_MODULE_NAME); in _devinfo_find_pk_dn() 68 memset(tmp_dn, 0, dn_len + 1); in _devinfo_find_pk_dn() 69 memcpy(tmp_dn, dn_pos, dn_len); in _devinfo_find_pk_dn()
|
/AliOS-Things-master/components/linkkit/wifi_provision/zero_config/ |
A D | awss_enrollee.h | 40 uint8_t dn_len; /* device name length*/ member
|
/AliOS-Things-master/components/mbedtls/library/ |
A D | ssl_cli.c | 2695 size_t cert_type_len = 0, dn_len = 0; in ssl_parse_certificate_request() local 2835 dn_len = ( ( buf[mbedtls_ssl_hs_hdr_len( ssl ) + 1 + n] << 8 ) in ssl_parse_certificate_request() 2838 n += dn_len; in ssl_parse_certificate_request()
|