• Home
  • Raw
  • Download

Lines Matching refs:handshake

429 bool HdcServer::HandServerAuth(HSession hSession, SessionHandShake &handshake)  in HandServerAuth()  argument
432 switch (handshake.authType) { in HandServerAuth()
435 if (!HdcAuth::GetPublicKeyinfo(handshake.buf)) { in HandServerAuth()
439 handshake.authType = AUTH_PUBLICKEY; in HandServerAuth()
440 bufString = SerialStruct::SerializeToString(handshake); in HandServerAuth()
449 if (!HdcAuth::RsaSignAndBase64(handshake.buf)) { in HandServerAuth()
453 handshake.authType = AUTH_SIGNATURE; in HandServerAuth()
454 bufString = SerialStruct::SerializeToString(handshake); in HandServerAuth()
461 WRITE_LOG(LOG_FATAL, "invalid auth type %d", handshake.authType); in HandServerAuth()
470 Hdc::HdcSessionBase::SessionHandShake handshake; in ServerSessionHandshake() local
471 SerialStruct::ParseFromString(handshake, s); in ServerSessionHandshake()
473 …WRITE_LOG(LOG_DEBUG, "handshake.banner:%s, payload:%s(%d)", handshake.banner.c_str(), s.c_str(), p… in ServerSessionHandshake()
476 if (handshake.banner == HANDSHAKE_FAILED.c_str()) { in ServerSessionHandshake()
481 if (handshake.banner != HANDSHAKE_MESSAGE.c_str()) { in ServerSessionHandshake()
485 if (handshake.authType != AUTH_OK) { in ServerSessionHandshake()
486 if (!HandServerAuth(hSession, handshake)) { in ServerSessionHandshake()
502 if (handshake.buf.size() > sizeof(hdiNew->devName) || !handshake.buf.size()) { in ServerSessionHandshake()
505 hdiNew->devName = handshake.buf; in ServerSessionHandshake()
507 WRITE_LOG(LOG_INFO, "handshake.version = %s", handshake.version.c_str()); in ServerSessionHandshake()
508 hdiNew->version = handshake.version; in ServerSessionHandshake()