Fixed compile error without message digest support.

pull/2/head
Tatsuhiro Tsujikawa 2011-10-25 21:59:10 +09:00
parent dfd214b3db
commit 33ba91fbc6
2 changed files with 4 additions and 0 deletions

View File

@ -349,6 +349,7 @@ std::string IndexOutOptionHandler::createPossibleValuesString() const
return "INDEX=PATH"; return "INDEX=PATH";
} }
#ifdef ENABLE_MESSAGE_DIGEST
ChecksumOptionHandler::ChecksumOptionHandler ChecksumOptionHandler::ChecksumOptionHandler
(const Pref* pref, (const Pref* pref,
const std::string& description, const std::string& description,
@ -375,6 +376,7 @@ std::string ChecksumOptionHandler::createPossibleValuesString() const
{ {
return "HASH_TYPE=HEX_DIGEST"; return "HASH_TYPE=HEX_DIGEST";
} }
#endif // ENABLE_MESSAGE_DIGEST
ParameterOptionHandler::ParameterOptionHandler ParameterOptionHandler::ParameterOptionHandler
(const Pref* pref, (const Pref* pref,

View File

@ -161,6 +161,7 @@ public:
virtual std::string createPossibleValuesString() const; virtual std::string createPossibleValuesString() const;
}; };
#ifdef ENABLE_MESSAGE_DIGEST
class ChecksumOptionHandler : public AbstractOptionHandler { class ChecksumOptionHandler : public AbstractOptionHandler {
public: public:
ChecksumOptionHandler(const Pref* pref, ChecksumOptionHandler(const Pref* pref,
@ -170,6 +171,7 @@ public:
virtual void parseArg(Option& option, const std::string& optarg); virtual void parseArg(Option& option, const std::string& optarg);
virtual std::string createPossibleValuesString() const; virtual std::string createPossibleValuesString() const;
}; };
#endif // ENABLE_MESSAGE_DIGEST
class ParameterOptionHandler : public AbstractOptionHandler { class ParameterOptionHandler : public AbstractOptionHandler {
private: private: