MCPcopy Create free account
hub / github.com/amule-project/amule / SetSecureIdent

Method SetSecureIdent

src/ClientCredits.cpp:207–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205
206
207bool CClientCredits::SetSecureIdent(const uint8_t* pachIdent, uint8 nIdentLen)
208{ // verified Public key cannot change, use only if there is not public key yet
209 if (MAXPUBKEYSIZE < nIdentLen || m_pCredits->nKeySize != 0 ) {
210 return false;
211 }
212 memcpy(m_abyPublicKey,pachIdent, nIdentLen);
213 m_nPublicKeyLen = nIdentLen;
214 m_identState = IS_IDNEEDED;
215 return true;
216}
217
218
219EIdentState CClientCredits::GetCurrentIdentState(uint32 dwForIP) const

Callers 2

Debug_CheckCryptingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected