Home
last modified time | relevance | path

Searched refs:pubkey (Results 1 – 5 of 5) sorted by relevance

/developtools/hdc/hdc_rust/src/daemon/
Dauth.rs353 if let Some((hostname, pubkey)) = buf.split_once(HDC_HOST_DAEMON_BUF_SEPARATOR) { in get_host_pubkey_info()
354 (hostname.to_string(), pubkey.to_string()) in get_host_pubkey_info()
396 let (hostname, pubkey) = get_host_pubkey_info(buf.trim()); in handshake_deal_pubkey()
397 if pubkey.is_empty() { in handshake_deal_pubkey()
419 if known_hosts.contains(&pubkey) { in handshake_deal_pubkey()
423 AuthStatus::Pubk(token.clone(), pubkey, "".to_string()), in handshake_deal_pubkey()
441 AuthStatus::Pubk(token.clone(), pubkey.clone(), confirmmsg.to_string()), in handshake_deal_pubkey()
462 if write_known_hosts_pubkey(&pubkey).is_err() { in handshake_deal_pubkey()
475 AuthStatus::Pubk(token.clone(), pubkey, "".to_string()), in handshake_deal_pubkey()
488 AuthStatus::Pubk(token.clone(), pubkey, "".to_string()), in handshake_deal_pubkey()
[all …]
/developtools/hdc/src/daemon/
Ddaemon.cpp318 bool HdcDaemon::GetHostPubkeyInfo(const string& buf, string& hostname, string& pubkey) in InitMod() argument
324 pubkey = buf.substr(buf.find(separator) + 1); in InitMod()
325 WRITE_LOG(LOG_INFO, "hostname is [%s], pubkey is [%s]", hostname.c_str(), pubkey.c_str()); in InitMod()
327 return (!hostname.empty() && !pubkey.empty()); in InitMod()
425 string hostname, pubkey; in InitMod() local
428 if (!GetHostPubkeyInfo(handshake.buf, hostname, pubkey)) { in InitMod()
432 if (AlreadyInKnownHosts(pubkey)) { in InitMod()
451 UpdateKnownHosts(pubkey); in InitMod()
460 SendAuthSignMsg(handshake, channelId, hSession->sessionId, pubkey, hSession->tokenRSA); in InitMod()
474 string pubkey = GetSessionAuthPubkey(hSession->sessionId); in InitMod() local
[all …]
Ddaemon.h28 string pubkey; member
73 bool GetHostPubkeyInfo(const string& buf, string& hostname, string& pubkey);
94 uint32_t channelId, uint32_t sessionid, string pubkey, string token);
103 void UpdateSessionAuthPubkey(uint32_t sessionid, string pubkey);
/developtools/hdc/src/common/
Dauth.cpp591 bool LoadPublicKey(const string& pubkey_filename, string &pubkey) in LoadPublicKey() argument
624 pubkey = string(buf, len); in LoadPublicKey()
644 bool TryLoadPublicKey(string &pubkey) in TryLoadPublicKey() argument
659 if (!LoadPublicKey(pubkey_filename, pubkey)) { in TryLoadPublicKey()
695 string pubkey; in GetPublicKeyinfo() local
696 if (!HdcAuth::TryLoadPublicKey(pubkey)) { in GetPublicKeyinfo()
702 pubkey_info.append(pubkey); in GetPublicKeyinfo()
/developtools/hdc/hdc_rust/src/host/
Dauth.rs187 if let Ok(pubkey) = rsa.public_key_to_pem() { in get_pubkey_pem()
188 if let Ok(buf) = String::from_utf8(pubkey) { in get_pubkey_pem()