Tongsuo-Project / Tongsuo

铜锁/Tongsuo is a Modern Cryptographic Primitives and Protocols Library
https://www.tongsuo.net
Apache License 2.0
1.15k stars 184 forks source link

Net-SSLeay编译问题 #646

Open andylee521 opened 3 months ago

andylee521 commented 3 months ago

铜锁能否将hash算法ripemd160加回来,因为这个算法没有disable宏。 导致Net-SSLeay开源代码无法编译。 代码片段:

#ifndef OPENSSL_NO_MD5
#include <openssl/md5.h>     /* openssl-SNAP-20020227 does not automatically include this */
#endif
#include <openssl/ripemd.h>
#include <openssl/x509.h>
...
if (!k && !strcmp(type,"ripemd160")) {
    k = 1; digest_tp = EVP_ripemd160();
}
if (!k) /* Default digest */
    digest_tp = EVP_sha1();