From db86ffbca98a6718f4fbe1a07d5a648fc4b2da10 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 8 Jan 2012 19:10:55 +0900 Subject: [PATCH] Fixed compile error without libnettle, libgcrypt and openssl --- src/RequestGroup.cc | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/RequestGroup.cc b/src/RequestGroup.cc index 931bf552..96cdf090 100644 --- a/src/RequestGroup.cc +++ b/src/RequestGroup.cc @@ -253,21 +253,22 @@ SharedHandle 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; }