MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / keyExchange

Method keyExchange

client/client.go:155–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153}
154
155func (c *QQClient) keyExchange() error {
156 data, err := wtlogin.BuildKexExchangeRequest(c.Uin, c.Device().GUID)
157 if err != nil {
158 return err
159 }
160 packet, err := c.sendUniPacketAndWait(
161 "trpc.login.ecdh.EcdhService.SsoKeyExchange",
162 data,
163 )
164 if err != nil {
165 return err
166 }
167 return wtlogin.ParseKeyExchangeResponse(packet, c.Sig())
168}
169
170func (c *QQClient) PasswordLogin() (*LoginResponse, error) {
171 if c.Online.Load() {

Callers 2

ReloginMethod · 0.95
PasswordLoginMethod · 0.95

Calls 5

DeviceMethod · 0.95
sendUniPacketAndWaitMethod · 0.95
SigMethod · 0.95
BuildKexExchangeRequestFunction · 0.92
ParseKeyExchangeResponseFunction · 0.92

Tested by

no test coverage detected