/AliOS-Things-master/components/ble_netconfig/ |
A D | blecfg_netmgr.c | 20 uint8_t passwd[LIMIT_WIFI_PASSWD]; member 25 static int32_t BleCfg_wifi_kv_save(char *ssid, char *passwd) in BleCfg_wifi_kv_save() argument 33 || passwd == NULL || strlen(passwd) >= LIMIT_WIFI_PASSWD ) { in BleCfg_wifi_kv_save() 50 && strcmp(wifi_passwd, passwd) == 0 ) { in BleCfg_wifi_kv_save() 62 ret = aos_kv_set("wifi_passwd", passwd, strlen(passwd)+1, 1); in BleCfg_wifi_kv_save() 71 static int32_t BleCfg_wifi_kv_load(char *ssid, char *passwd) in BleCfg_wifi_kv_load() argument 85 ret = aos_kv_get("wifi_passwd", passwd, &len); in BleCfg_wifi_kv_load() 90 BLECFG_LOG_INFO("%s: wifi_passwd '%s'\r\n", __func__, passwd); in BleCfg_wifi_kv_load() 96 BLECFG_STATE BleCfg_wifi_set(char *ssid, char *passwd) in BleCfg_wifi_set() argument 101 || strlen(passwd) + 1 >= sizeof(wifi_info->passwd) ) { in BleCfg_wifi_set() [all …]
|
A D | blecfg_main.c | 98 char *ap_buf, *ssid, *passwd, *pk, *dn, *ds; in BleCfg_cmd_parse() local 186 passwd = ssid + ssid_len + 1; in BleCfg_cmd_parse() 191 memcpy(passwd, cmd_merge + 4 + ssid_len, pwd_len); in BleCfg_cmd_parse() 192 passwd[pwd_len] = 0; in BleCfg_cmd_parse() 194 ret = BleCfg_wifi_set(ssid, passwd); in BleCfg_cmd_parse() 202 BLECFG_LOG_INFO("%s: NetConf SSID = %s, PWD = %s\r\n", __func__, ssid, passwd); in BleCfg_cmd_parse()
|
A D | README.md | 142 BLE_NETCFG_STATE BLE_NetCfg_wifi_get(char **ssid, char **passwd) 150 | passwd | 用于存放返回Wi-Fi热点密码信息的存储空间 | 163 BLE_NETCFG_STATE BLE_NetCfg_wifi_set(char *ssid, char *passwd) 171 | passwd | 传入Wi-Fi热点密码信息 |
|
/AliOS-Things-master/components/uvoice/test/ |
A D | test_swid.c | 30 char *passwd; in lisen_freq_result() local 46 passwd = strchr(result, '\n'); in lisen_freq_result() 48 if (!passwd) { in lisen_freq_result() 56 *passwd = '\0'; in lisen_freq_result() 57 passwd++; in lisen_freq_result() 58 printf("ssid: %s, passwd: %s\n", ssid, passwd); in lisen_freq_result() 63 memcpy(config.pwd, passwd, strlen(passwd) + 1); in lisen_freq_result()
|
/AliOS-Things-master/components/py_engine/external/unzip/internal/ |
A D | crypt.h | 64 static void init_keys(const char* passwd, unsigned long* pkeys, const unsigned long* pcrc_32_tab) in init_keys() argument 69 while (*passwd != '\0') { in init_keys() 70 update_keys(pkeys, pcrc_32_tab, (int)*passwd); in init_keys() 71 passwd++; in init_keys() 89 static int crypthead(passwd, buf, bufSize, pkeys, pcrc_32_tab, crcForCrypting) in crypthead() argument 90 const char* passwd; /* password string */ in crypthead() 113 init_keys(passwd, pkeys, pcrc_32_tab); 119 init_keys(passwd, pkeys, pcrc_32_tab);
|
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/contrib/minizip/ |
A D | crypt.h | 65 static void init_keys(const char* passwd,unsigned long* pkeys,const z_crc_t* pcrc_32_tab) in init_keys() argument 70 while (*passwd != '\0') { in init_keys() 71 update_keys(pkeys,pcrc_32_tab,(int)*passwd); in init_keys() 72 passwd++; in init_keys() 90 static int crypthead(const char* passwd, /* password string */ in crypthead() argument 114 init_keys(passwd, pkeys, pcrc_32_tab); in crypthead() 121 init_keys(passwd, pkeys, pcrc_32_tab); in crypthead()
|
/AliOS-Things-master/components/linkkit/wifi_provision/frameworks/ |
A D | connect_ap.c | 10 int awss_complete_token(char passwd[HAL_MAX_PASSWD_LEN], uint8_t *bssid, in awss_complete_token() 20 uint8_t pwd_len = strlen(passwd); in awss_complete_token() 31 memcpy(buff + org_token_len, passwd, pwd_len); in awss_complete_token() 46 int awss_connect(char ssid[HAL_MAX_SSID_LEN], char passwd[HAL_MAX_PASSWD_LEN], in awss_connect() 57 ret = awss_complete_token(passwd, bssid, bssid_len, token, token_len, in awss_connect() 77 return HAL_Awss_Connect_Ap(WLAN_CONNECTION_TIMEOUT_MS, ssid, passwd, 0, 0, in awss_connect()
|
A D | awss_main.c | 15 passwd[OS_MAX_PASSWD_LEN + 1] = { 0 }; in __awss_start() local 31 ret = aws_get_ssid_passwd(&ssid[0], &passwd[0], &bssid[0], &token[0], NULL, in __awss_start() 69 ret = awss_connect(ssid, passwd, bssid, ETH_ALEN, in __awss_start()
|
A D | connect_ap.h | 15 int awss_complete_token(char passwd[HAL_MAX_PASSWD_LEN], uint8_t *bssid, 19 int awss_connect(char ssid[HAL_MAX_SSID_LEN], char passwd[HAL_MAX_PASSWD_LEN],
|
A D | zconfig_protocol.h | 114 uint8_t passwd[ZC_MAX_PASSWD_LEN]; member 146 #define zc_passwd (&zconfig_data->passwd[0]) 180 uint8_t zconfig_callback_over(uint8_t *ssid, uint8_t *passwd, uint8_t *bssid, 201 uint8_t *passwd; member
|
A D | zconfig_vendor_common.c | 93 void zconfig_got_ssid_passwd_callback(uint8_t *ssid, uint8_t *passwd, in zconfig_got_ssid_passwd_callback() argument 109 strncpy((char *)aws_result_passwd, (const char *)passwd, in zconfig_got_ssid_passwd_callback() 537 int aws_get_ssid_passwd(char *ssid, char *passwd, uint8_t *bssid, in aws_get_ssid_passwd() argument 548 if (passwd) { in aws_get_ssid_passwd() 549 strncpy((char *)passwd, (const char *)aws_result_passwd, in aws_get_ssid_passwd()
|
/AliOS-Things-master/components/linkkit/wrappers/os/ |
A D | HAL_AWSS_rhino.c | 132 int HAL_Awss_Open_Ap(const char *ssid, const char *passwd, int beacon_interval, in HAL_Awss_Open_Ap() argument 149 if (passwd != NULL) { in HAL_Awss_Open_Ap() 150 strncpy(config.password, passwd, HAL_MAX_PASSWD_LEN); in HAL_Awss_Open_Ap() 181 _IN_ char passwd[HAL_MAX_PASSWD_LEN], in HAL_Awss_Connect_Ap() 191 printf("%s-%d ssid:%s paaswd:%s\r\n", __func__, __LINE__, ssid, passwd); in HAL_Awss_Connect_Ap() 196 ret = aos_kv_set(WIFI_PASSWORD_KV_KEY, passwd, strlen(passwd), 1); in HAL_Awss_Connect_Ap() 200 netmgr_comp_enable(ssid, passwd); in HAL_Awss_Connect_Ap() 241 char passwd[HAL_MAX_PASSWD_LEN], in HAL_Wifi_Get_Ap_Info() 249 if (passwd) { in HAL_Wifi_Get_Ap_Info()
|
/AliOS-Things-master/components/linkkit/wrappers/platform/os/ |
A D | HAL_AWSS_yoc.c | 116 int HAL_Awss_Open_Ap(const char *ssid, const char *passwd, int beacon_interval, in HAL_Awss_Open_Ap() argument 133 if (passwd != NULL) { in HAL_Awss_Open_Ap() 134 strncpy(config.password, passwd, HAL_MAX_PASSWD_LEN); in HAL_Awss_Open_Ap() 165 _IN_ char passwd[HAL_MAX_PASSWD_LEN], in HAL_Awss_Connect_Ap() 212 char passwd[HAL_MAX_PASSWD_LEN], in HAL_Wifi_Get_Ap_Info() 220 if (passwd) { in HAL_Wifi_Get_Ap_Info()
|
/AliOS-Things-master/components/linkkit/wifi_provision/dev_ap/ |
A D | awss_dev_ap.c | 22 char passwd[PLATFORM_MAX_PASSWD_LEN + 1]; member 151 char passwd[PLATFORM_MAX_PASSWD_LEN + 1] = { 0 }; in awss_dev_ap_setup() local 168 ret = HAL_Awss_Open_Ap(ssid, passwd, 100, 0); in awss_dev_ap_setup() 188 if ((strlen(info->ssid) == 0) && (strlen(info->passwd) == 0)) { in try_to_do_connect_ap() 333 ret = awss_connect(info->ssid, info->passwd, info->bssid, ETH_ALEN, in start_connect_ap() 363 char *passwd; in wifimgr_process_dev_ap_switchap_request() local 382 passwd = info->passwd; in wifimgr_process_dev_ap_switchap_request() 473 aes_decrypt_string(encoded, passwd, str_len, 0, in wifimgr_process_dev_ap_switchap_request() 484 if (success && is_utf8(passwd, strlen(passwd)) == 0) { in wifimgr_process_dev_ap_switchap_request()
|
/AliOS-Things-master/components/lwip/lwip2.0.0/netif/ppp/ |
A D | auth.c | 370 { "password", o_string, passwd, 468 strlcpy(ppp_settings.passwd, p, sizeof(ppp_settings.passwd)); 1521 && (passwd[0] != 0 || 1525 passwd[0] != 0 || 1571 char passwd[256], user[256]; 1580 slprintf(ppp_settings.passwd, sizeof(ppp_settings.passwd), "%.*v", passwdlen, apasswd); 1598 BZERO(ppp_settings.passwd, sizeof(ppp_settings.passwd)); 1673 BZERO(ppp_settings.passwd, sizeof(ppp_settings.passwd)); 1735 get_pap_passwd(passwd) 1736 char *passwd; [all …]
|
/AliOS-Things-master/components/linkkit/wifi_provision/frameworks/utils/ |
A D | awss_crypt.c | 15 static const char *cal_passwd(void *key, void *random, void *passwd) in cal_passwd() argument 21 if (!passwd || !key || !random) in cal_passwd() 35 memcpy(passwd, digest, AES128_KEY_LEN); in cal_passwd() 37 return passwd; in cal_passwd()
|
/AliOS-Things-master/components/linkkit/include/linkkit/wrappers/ |
A D | wrappers_awss.h | 57 _IN_ char passwd[HAL_MAX_PASSWD_LEN], 136 _OU_ char passwd[HAL_MAX_PASSWD_LEN], 141 int HAL_Awss_Open_Ap(const char *ssid, const char *passwd, int beacon_interval,
|
/AliOS-Things-master/components/linkkit/wifi_provision/phone_ap/ |
A D | awss_wifimgr.c | 35 passwd[PLATFORM_MAX_PASSWD_LEN + in wifimgr_process_switch_ap_request() local 139 memcpy(passwd, str, str_len); in wifimgr_process_switch_ap_request() 149 aes_decrypt_string(encoded, passwd, str_len, 0, in wifimgr_process_switch_ap_request() 161 if (success && is_utf8(passwd, strlen(passwd)) == 0) { in wifimgr_process_switch_ap_request() 206 if (0 != awss_connect(ssid, passwd, (uint8_t *)bssid, ETH_ALEN, in wifimgr_process_switch_ap_request()
|
/AliOS-Things-master/components/py_engine/modules/network/ |
A D | modnetwork.h | 17 char passwd[NETWORK_PASSWD_MAX_LEN + 1]; member 33 int network_qrscan_result_process(const char *result, char *ssid, char *passwd);
|
A D | qrcode.c | 77 int network_qrscan_result_process(const char *result, char *ssid, char *passwd) in network_qrscan_result_process() argument 102 strncpy(passwd, passwd_elem->valuestring, NETWORK_PASSWD_MAX_LEN); in network_qrscan_result_process()
|
/AliOS-Things-master/components/linkkit/wifi_provision/p2p/ |
A D | awss_wps.c | 65 void passwd_check_utf8(uint8_t *passwd, int *passwd_len) in passwd_check_utf8() argument 69 if (!passwd || !passwd_len) { in passwd_check_utf8() 75 if (passwd[i] < 0x80) { /* [0x01 ~ 0x7F] */ in passwd_check_utf8() 78 passwd[i] = 0; /* resetore to 0x00 */ in passwd_check_utf8() 80 memmove(passwd + i + 1, passwd + i + 2, len - i - 2); in passwd_check_utf8()
|
/AliOS-Things-master/components/py_engine/engine/extmod/webrepl/ |
A D | webrepl_setup.py | 92 passwd = input_pass() 94 f.write("PASS = %r\n" % passwd)
|
/AliOS-Things-master/components/linkkit/wifi_provision/dev_bind/ |
A D | awss_report.c | 241 passwd[OS_MAX_PASSWD_LEN + 1] = { 0 }; in awss_online_switchap() local 242 HAL_Wifi_Get_Ap_Info(ssid, passwd, bssid); in awss_online_switchap() 248 strncmp(passwd, switchap_passwd, sizeof(passwd))) { in awss_online_switchap()
|
/AliOS-Things-master/components/amp_adapter/platform/aos/network/ |
A D | aos_wifi.c | 63 int aos_wifi_connect(const char *ssid, const char *passwd) in aos_wifi_connect() argument 76 strncpy(params.params.wifi_params.pwd, passwd, sizeof(params.params.wifi_params.pwd) - 1); in aos_wifi_connect()
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/wifi_app/ |
A D | beswifi.h | 15 int bes_wifi_connect(const char *ssid, const char *passwd, unsigned char *bssid);
|