Searched refs:devKey (Results 1 – 5 of 5) sorted by relevance
/AliOS-Things-master/components/linkkit/dev_model/alcs/ |
A D | alcs_client.c | 249 AlcsDeviceKey devKey; in auth_cb() local 255 devKey.pk = auth_param->productKey; in auth_cb() 256 devKey.dn = auth_param->deviceName; in auth_cb() 261 devKey.dn); in auth_cb() 342 AlcsDeviceKey devKey; in do_auth() local 350 devKey.pk = ctl_item->productKey; in do_auth() 351 devKey.dn = ctl_item->deviceName; in do_auth() 375 COAP_INFO("pk:%s, dn:%s, checksum:%s", devKey.pk, devKey.dn, in do_auth() 466 devKey->dn, accesskeys); in alcs_auth_nego_key() 477 devKey->dn); in alcs_auth_nego_key() [all …]
|
A D | alcs_api.c | 92 AlcsDeviceKey *devKey) in get_session() argument 96 if (!sessions || !devKey || !devKey->pk || !devKey->dn) { in get_session() 99 HAL_Snprintf(path, sizeof(path), "%s%s", devKey->pk, devKey->dn); in get_session() 110 return get_session(sessions, devKey); in get_ctl_session() 119 return get_session(sessions, devKey); in get_svr_session() 126 session_item *node = get_ctl_session(ctx, devKey); in get_auth_session() 404 return get_auth_session(ctx, devKey) != NULL; in alcs_is_auth() 554 if (!ctx || !devKey || !message) { in alcs_sendmsg_secure() 558 session = get_auth_session(ctx, devKey); in alcs_sendmsg_secure() 575 if (!ctx || !devKey || !message) { in alcs_sendrsp_secure() [all …]
|
A D | alcs_adapter.c | 593 AlcsDeviceKey devKey; in iotx_alcs_send() local 632 memset(&devKey, 0, sizeof(AlcsDeviceKey)); in iotx_alcs_send() 633 memcpy(&devKey.addr, &network_addr, sizeof(NetworkAddr)); in iotx_alcs_send() 646 devKey.pk = productKey; in iotx_alcs_send() 647 devKey.dn = deviceName; in iotx_alcs_send() 649 res = alcs_sendmsg_secure(adapter->coap_ctx, &devKey, &coap_msg, 2, in iotx_alcs_send() 706 AlcsDeviceKey devKey; in iotx_alcs_send_Response() local 752 memset(&devKey, 0, sizeof(AlcsDeviceKey)); in iotx_alcs_send_Response() 753 memcpy(&devKey.addr, &network_addr, sizeof(NetworkAddr)); in iotx_alcs_send_Response() 766 devKey.pk = productKey; in iotx_alcs_send_Response() [all …]
|
A D | alcs_server.c | 216 AlcsDeviceKey devKey; in alcs_rec_auth() local 290 memset(&devKey, 0x00, sizeof(AlcsDeviceKey)); in alcs_rec_auth() 291 memcpy(&devKey.addr, from, sizeof(NetworkAddr)); in alcs_rec_auth() 292 devKey.pk = pk; in alcs_rec_auth() 293 devKey.dn = dn; in alcs_rec_auth() 294 session = get_svr_session(ctx, &devKey); in alcs_rec_auth()
|
/AliOS-Things-master/components/linkkit/include/linkkit/ |
A D | alcs_api.h | 82 bool alcs_is_auth(CoAPContext *ctx, AlcsDeviceKey *devKey); 83 int alcs_sendmsg_secure(CoAPContext *ctx, AlcsDeviceKey *devKey, 86 int alcs_sendrsp_secure(CoAPContext *ctx, AlcsDeviceKey *devKey, 109 void alcs_auth_nego_key(CoAPContext *ctx, AlcsDeviceKey *devKey, 124 bool alcs_device_online(CoAPContext *context, AlcsDeviceKey *devKey);
|
Completed in 10 milliseconds