| 359 | } |
| 360 | |
| 361 | bool CUpDownClient::ProcessHelloPacket(const uint8_t* pachPacket, uint32 nSize) |
| 362 | { |
| 363 | const CMemFile data(pachPacket,nSize); |
| 364 | uint8 hashsize = data.ReadUInt8(); |
| 365 | if ( 16 != hashsize ) { |
| 366 | /* |
| 367 | * Hint: We can not accept other sizes here because: |
| 368 | * - the magic number is spread all over the source |
| 369 | * - the answer packet lacks the size field |
| 370 | */ |
| 371 | throw wxString("Invalid Hello packet: Other userhash sizes than 16 are not implemented"); |
| 372 | } |
| 373 | // eMule 0.42: reset all client properties; a client may not send a particular emule tag any longer |
| 374 | ClearHelloProperties(); |
| 375 | |
| 376 | return ProcessHelloTypePacket(data); |
| 377 | } |
| 378 | |
| 379 | void CUpDownClient::Safe_Delete() |
| 380 | { |
no test coverage detected