Home
last modified time | relevance | path

Searched refs:handshake (Results 1 – 6 of 6) sorted by relevance

/developtools/hdc/src/daemon/
Ddaemon.cpp201 …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 …]
Ddaemon.h51 bool HandDaemonAuth(HSession hSession, const uint32_t channelId, SessionHandShake &handshake);
/developtools/hdc/src/host/
Dserver.cpp427 bool HdcServer::HandServerAuth(HSession hSession, SessionHandShake &handshake) in HandServerAuth() argument
432 switch (handshake.authType) { in HandServerAuth()
439 handshake.authType = AUTH_PUBLICKEY; in HandServerAuth()
440 ret = HandServerAuth(hSession, handshake); in HandServerAuth()
444 …ldForToken = HdcAuth::AuthSign(ptr, reinterpret_cast<const unsigned char *>(handshake.buf.c_str()), in HandServerAuth()
445 handshake.buf.size(), sign); in HandServerAuth()
449 handshake.buf = string(sign, retChildForToken); in HandServerAuth()
450 handshake.authType = AUTH_SIGNATURE; in HandServerAuth()
451 bufString = SerialStruct::SerializeToString(handshake); in HandServerAuth()
464 handshake.buf = string(bufPrivateKey, retChild); in HandServerAuth()
[all …]
Dserver.h58 bool HandServerAuth(HSession hSession, SessionHandShake &handshake);
/developtools/hdc/src/common/
Dchannel.cpp43 struct ChannelHandShake handshake = {}; in GetChannelHandshake() local
44 if (strcpy_s(handshake.banner, sizeof(handshake.banner), HANDSHAKE_MESSAGE.c_str()) != EOK) { in GetChannelHandshake()
47 if (strcpy_s(handshake.connectKey, sizeof(handshake.connectKey), connectKey.c_str()) != EOK) { in GetChannelHandshake()
50 … ret.insert(ret.begin(), (uint8_t *)&handshake, (uint8_t *)&handshake + sizeof(ChannelHandShake)); in GetChannelHandshake()
Dsession.cpp1060 SessionHandShake handshake = {}; in WorkThreadStartSession() local
1061 handshake.banner = HANDSHAKE_MESSAGE; in WorkThreadStartSession()
1062 handshake.sessionId = hSession->sessionId; in WorkThreadStartSession()
1063 handshake.connectKey = hSession->connectKey; in WorkThreadStartSession()
1065 handshake.version = Base::GetVersion() + HDC_MSG_HASH; in WorkThreadStartSession()
1066 WRITE_LOG(LOG_INFO, "set version = %s", handshake.version.c_str()); in WorkThreadStartSession()
1068 handshake.authType = AUTH_NONE; in WorkThreadStartSession()
1069 string hs = SerialStruct::SerializeToString(handshake); in WorkThreadStartSession()
1072 hSession->sessionId, handshake.authType, hs.c_str()); in WorkThreadStartSession()