Lines Matching refs:secret
98 const char *prefix, uint16_t prefix_len, const char *secret, in __alcs_mqtt_prefix_secret_save() argument
108 secret == NULL) { in __alcs_mqtt_prefix_secret_save()
139 prefix, secret_len, secret); in __alcs_mqtt_prefix_secret_save()
157 char *prefix, char *secret) in alcs_mqtt_prefix_secret_load() argument
167 secret == NULL) { in alcs_mqtt_prefix_secret_load()
195 memcpy(secret, &value[2 + value[0]], value[1]); in alcs_mqtt_prefix_secret_load()
289 char *data = NULL, *prefix = NULL, *secret = NULL, *productKey = NULL, in __alcs_mqtt_subscribe_callback() local
298 secret = json_get_value_by_name( in __alcs_mqtt_subscribe_callback()
310 if (NULL != alcs_mqtt_ctx->coap_ctx && prefix && secret) { in __alcs_mqtt_subscribe_callback()
313 back2 = secret[secret_len]; in __alcs_mqtt_subscribe_callback()
314 secret[secret_len] = 0; in __alcs_mqtt_subscribe_callback()
315 alcs_add_svr_key(alcs_mqtt_ctx->coap_ctx, prefix, secret, in __alcs_mqtt_subscribe_callback()
318 secret[secret_len] = back2; in __alcs_mqtt_subscribe_callback()
323 deviceName_len, prefix, prefix_len, secret, in __alcs_mqtt_subscribe_callback()
346 __alcs_mqtt_kv_set(ALCS_MQTT_JSON_KEY_SECRET, secret, in __alcs_mqtt_subscribe_callback()
357 __alcs_mqtt_kv_get(ALCS_MQTT_JSON_KEY_SECRET, secret, in __alcs_mqtt_subscribe_callback()
361 alcs_add_svr_key(alcs_mqtt_ctx->coap_ctx, prefix, secret, in __alcs_mqtt_subscribe_callback()
553 void alcs_mqtt_add_srv_key(const char *prefix, const char *secret) in alcs_mqtt_add_srv_key() argument
556 alcs_add_svr_key(alcs_mqtt_ctx->coap_ctx, prefix, secret, FROMCLOUDSVR); in alcs_mqtt_add_srv_key()
586 char secret[ALCS_MQTT_SECRET_MAX_LEN + 1] = { 0 }; in alcs_mqtt_prefixkey_update() local
603 secret) == ALCS_MQTT_STATUS_SUCCESS) { in alcs_mqtt_prefixkey_update()
604 alcs_add_svr_key(context, prefix, secret, FROMCLOUDSVR); in alcs_mqtt_prefixkey_update()