| 205 | |
| 206 | |
| 207 | bool 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 | |
| 219 | EIdentState CClientCredits::GetCurrentIdentState(uint32 dwForIP) const |
no outgoing calls
no test coverage detected