Fixed compile error without libnettle, libgcrypt and openssl

pull/8/merge
Tatsuhiro Tsujikawa 2012-01-08 19:10:55 +09:00
parent 57b2336e58
commit db86ffbca9
1 changed files with 14 additions and 13 deletions

View File

@ -253,21 +253,22 @@ SharedHandle<CheckIntegrityEntry> RequestGroup::createCheckIntegrityEntry()
} else {
checkEntry.reset(new StreamCheckIntegrityEntry(this));
}
#ifdef ENABLE_MESSAGE_DIGEST
} else if(downloadFinishedByFileLength() &&
downloadContext_->isChecksumVerificationAvailable()) {
pieceStorage_->markAllPiecesDone();
loadAndOpenFile(infoFile);
ChecksumCheckIntegrityEntry* tempEntry =
new ChecksumCheckIntegrityEntry(this);
tempEntry->setRedownload(true);
checkEntry.reset(tempEntry);
} else
#endif // ENABLE_MESSAGE_DIGEST
{
#ifdef ENABLE_MESSAGE_DIGEST
if(downloadFinishedByFileLength() &&
downloadContext_->isChecksumVerificationAvailable()) {
pieceStorage_->markAllPiecesDone();
loadAndOpenFile(infoFile);
checkEntry.reset(new StreamCheckIntegrityEntry(this));
}
ChecksumCheckIntegrityEntry* tempEntry =
new ChecksumCheckIntegrityEntry(this);
tempEntry->setRedownload(true);
checkEntry.reset(tempEntry);
} else
#endif // ENABLE_MESSAGE_DIGEST
{
loadAndOpenFile(infoFile);
checkEntry.reset(new StreamCheckIntegrityEntry(this));
}
return checkEntry;
}