Lines Matching refs:hostname
283 UserPermit HdcDaemon::PostUIConfirm(string hostname, string pubkey)
292 if (!SystemDepend::SetDevItem("persist.hdc.client.hostname", hostname.c_str())) {
293 WRITE_LOG(LOG_FATAL, "set param(%s) failed", hostname.c_str());
316 WRITE_LOG(LOG_FATAL, "user refuse [%s] this developer [%s]", authResult.c_str(), hostname.c_str());
319 WRITE_LOG(LOG_FATAL, "user permit_result [%s] for this developer [%s]", authResult.c_str(), hostname.c_str());
331 bool HdcDaemon::GetHostPubkeyInfo(const string& buf, string& hostname, string& pubkey)
336 hostname = buf.substr(0, buf.find(separator));
338 WRITE_LOG(LOG_INFO, "hostname is [%s], pubkey is [%s]", hostname.c_str(),
341 return (!hostname.empty() && !pubkey.empty());
448 string hostname, pubkey;
451 if (!GetHostPubkeyInfo(handshake.buf, hostname, pubkey)) {
469 UserPermit permit = PostUIConfirm(hostname, pubkey);
1089 char hostname[BUF_SIZE_MEDIUM] = { 0 };
1090 if (gethostname(hostname, BUF_SIZE_MEDIUM) != 0) {
1091 WRITE_LOG(LOG_FATAL, "get hostname failed %s", strerror(errno));
1095 msg = hostname;
1101 Base::TlvAppend(emgmsg, TAG_DEVNAME, hostname);