补充鉴权线程
authorp15692025051 <846603105@qq.com>
Thu, 8 May 2025 02:53:04 +0000 (10:53 +0800)
committerp15692025051 <846603105@qq.com>
Thu, 8 May 2025 02:53:04 +0000 (10:53 +0800)
2.code/aicos/app/AI_AMP_2_5/dev_authentication.c

index 7d3d58b..d83f70c 100644 (file)
@@ -19,6 +19,7 @@
 #include <string.h>
 #include "mbedtls/aes.h"
 #include "mbedtls/cipher.h"
+#include "dev_authentication.h"
 #define kb_malloc aic_malloc
 #define bk_free aic_free
 // static char * dev_key = "uKLrChwrxA1LklgBc3VwawYjUkbT3BgX" ;
@@ -348,13 +349,13 @@ static void dev_authentication_task(void *thread_input)//鉴权逻辑线程
             switch (dev_authentication_msg.MSG_Type)
             {
                 case AUT_ACTIVE://激活
-                    AI_VC_Close();
+                    aut_active();
                     break;
                 case AUT_LOGIN://登录
-                    AI_VC_start();
+                    aut_login();
                     break;
                 case AUT_CHACK_TOKEN://检查token
-                    AI_VC_start();
+                    aut_chack_token();
                     break;
             }
             if(dev_authentication_msg.data)
@@ -368,9 +369,9 @@ static void dev_authentication_task(void *thread_input)//鉴权逻辑线程
 void dev_authentication_init(void)
 {
     //创建设备激活队列
-    if(dev_authentication_queue == NULL)
+    if(dev_authentication_task_queue == NULL)
     {
-        dev_authentication_task_queue = aos_create_queue("dev_authentication_queue",
+        dev_authentication_task_queue = aos_create_queue("dev_authentication_task_queue",
             sizeof(dev_authentication_MSG_queue_t),
             200);
     }