http://bugs.gentoo.org/327373 --- src/HashAlgorithm.cpp +++ src/HashAlgorithm.cpp @@ -9,7 +9,9 @@ #include "Public.h" #include +#ifndef no_md2_h #include +#endif #include #include #include @@ -66,10 +68,12 @@ MD4(UnicodePlain, nPlainLen * 2, pHash); } +#ifndef no_md2_h void HashMD2(unsigned char* pPlain, int nPlainLen, unsigned char* pHash) { MD2(pPlain, nPlainLen, pHash); } +#endif void HashMD4(unsigned char* pPlain, int nPlainLen, unsigned char* pHash) { --- src/HashAlgorithm.h +++ src/HashAlgorithm.h @@ -10,7 +10,9 @@ void HashLM(unsigned char* pPlain, int nPlainLen, unsigned char* pHash); void HashNTLM(unsigned char* pPlain, int nPlainLen, unsigned char* pHash); +#ifndef no_md2_h void HashMD2(unsigned char* pPlain, int nPlainLen, unsigned char* pHash); +#endif void HashMD4(unsigned char* pPlain, int nPlainLen, unsigned char* pHash); void HashMD5(unsigned char* pPlain, int nPlainLen, unsigned char* pHash); --- src/HashRoutine.cpp +++ src/HashRoutine.cpp @@ -19,7 +19,9 @@ AddHashRoutine("lm", HashLM, 8); AddHashRoutine("ntlm", HashNTLM, 16); + #ifndef no_md2_h AddHashRoutine("md2", HashMD2, 16); + #endif AddHashRoutine("md4", HashMD4, 16); AddHashRoutine("md5", HashMD5, 16); AddHashRoutine("sha1", HashSHA1, 20);