Searched refs:handshake (Results 1 – 8 of 8) sorted by relevance
| /developtools/hdc/src/daemon/ |
| D | daemon.cpp | 201 …HdcDaemon::HandDaemonAuth(HSession hSession, const uint32_t channelId, SessionHandShake &handshake) in HandDaemonAuth() argument 204 switch (handshake.authType) { in HandDaemonAuth() 207 handshake.authType = AUTH_TOKEN; in HandDaemonAuth() 208 handshake.buf = hSession->tokenRSA; in HandDaemonAuth() 209 string bufString = SerialStruct::SerializeToString(handshake); in HandDaemonAuth() 225 … reinterpret_cast<uint8_t *>(const_cast<char *>(handshake.buf.c_str())), handshake.buf.size())) { in HandDaemonAuth() 227 handshake.authType = AUTH_TOKEN; in HandDaemonAuth() 228 handshake.buf = hSession->tokenRSA; in HandDaemonAuth() 229 string bufString = SerialStruct::SerializeToString(handshake); in HandDaemonAuth() 238 ret = HdcAuth::PostUIConfirm(handshake.buf); in HandDaemonAuth() [all …]
|
| D | daemon.h | 51 bool HandDaemonAuth(HSession hSession, const uint32_t channelId, SessionHandShake &handshake);
|
| /developtools/hdc/hdc_rust/src/host/ |
| D | auth.rs | 40 let mut handshake = SessionHandShake { in handshake_with_daemon() localVariable 48 send_handshake_to_daemon(&handshake, channel_id).await; in handshake_with_daemon() 64 handshake.auth_type = config::AuthType::Publickey as u8; in handshake_with_daemon() 65 handshake.buf = get_hostname()?; in handshake_with_daemon() 66 handshake.buf.push(char::from_u32(12).unwrap()); in handshake_with_daemon() 68 handshake.buf.push_str(pubkey_pem.as_str()); in handshake_with_daemon() 69 send_handshake_to_daemon(&handshake, channel_id).await; in handshake_with_daemon() 72 handshake.auth_type = config::AuthType::Signature as u8; in handshake_with_daemon() 73 handshake.buf = get_signature_b64(&rsa, recv.buf)?; in handshake_with_daemon() 74 send_handshake_to_daemon(&handshake, channel_id).await; in handshake_with_daemon() [all …]
|
| D | client.rs | 74 if let Err(e) = client.handshake().await { in run_client_mode() 129 pub async fn handshake(&mut self) -> io::Result<()> { in handshake() method
|
| /developtools/hdc/src/host/ |
| D | server.cpp | 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 [all …]
|
| D | server.h | 58 bool HandServerAuth(HSession hSession, SessionHandShake &handshake);
|
| /developtools/hdc/src/common/ |
| D | channel.cpp | 44 struct ChannelHandShake handshake = {}; in GetChannelHandshake() local 45 if (strcpy_s(handshake.banner, sizeof(handshake.banner), HANDSHAKE_MESSAGE.c_str()) != EOK) { in GetChannelHandshake() 48 if (strcpy_s(handshake.connectKey, sizeof(handshake.connectKey), connectKey.c_str()) != EOK) { in GetChannelHandshake() 51 … ret.insert(ret.begin(), (uint8_t *)&handshake, (uint8_t *)&handshake + sizeof(ChannelHandShake)); in GetChannelHandshake()
|
| D | session.cpp | 1081 SessionHandShake handshake = {}; in WorkThreadStartSession() local 1082 handshake.banner = HANDSHAKE_MESSAGE; in WorkThreadStartSession() 1083 handshake.sessionId = hSession->sessionId; in WorkThreadStartSession() 1084 handshake.connectKey = hSession->connectKey; in WorkThreadStartSession() 1086 handshake.version = Base::GetVersion() + HDC_MSG_HASH; in WorkThreadStartSession() 1087 WRITE_LOG(LOG_INFO, "set version = %s", handshake.version.c_str()); in WorkThreadStartSession() 1089 handshake.authType = AUTH_NONE; in WorkThreadStartSession() 1090 string hs = SerialStruct::SerializeToString(handshake); in WorkThreadStartSession() 1093 hSession->sessionId, handshake.authType, hs.c_str()); in WorkThreadStartSession()
|