Lines Matching refs:hostname
182 let hostname = get_hostname();
184 handshake_msg = hostname;
186 handshake_msg = Base::tlv_append(handshake_msg, config::TAG_DEVNAME, hostname.as_str());
230 let hostname = get_hostname();
232 handshake_msg = Base::tlv_append(handshake_msg, config::TAG_DEVNAME, hostname.as_str());
258 let hostname = get_hostname();
260 handshake_msg = hostname;
262 handshake_msg = Base::tlv_append(handshake_msg, config::TAG_DEVNAME, hostname.as_str());
298 let hostname = get_hostname();
299 succmsg = Base::tlv_append(succmsg, config::TAG_DEVNAME, hostname.as_str());
367 if let Some((hostname, pubkey)) = buf.split_once(HDC_HOST_DAEMON_BUF_SEPARATOR) {
368 (hostname.to_string(), pubkey.to_string())
410 let (hostname, pubkey) = get_host_pubkey_info(buf.trim());
421 if hostname.is_empty() {
422 crate::error!("get hostname from host failed");
426 "no hostname, you may need update your hdc client".to_string(),
434 crate::info!("pubkey matches known host({})", hostname);
473 match require_user_permittion(&hostname).await {
788 async fn require_user_permittion(hostname: &str) -> UserPermit {
798 if !set_dev_item("persist.hdc.client.hostname", hostname) {
799 crate::error!("set param({}) failed.", hostname);
878 crate::error!("get hostname failed, {}.", std::io::Error::last_os_error());
887 crate::info!("get hostname is {}", output);