When sm3 on openssl is not available, compile algorithms/sm3/sm3.c (#6615)

This commit is contained in:
Giovanni 2026-07-15 22:50:41 +08:00 committed by GitHub
parent 1c4bcf6ef7
commit 5349d34dcb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -184,6 +184,11 @@ else
'algorithms/md5/md5.c',
'algorithms/sha1/sha1.c',
'algorithms/sha2/sha2.c',
]
endif
if userconf.get('HAVE_OPENSSL_SM3', 0) == 0
rz_hash_sources += [
'algorithms/sm3/sm3.c',
]
endif

View file

@ -945,6 +945,7 @@ summary({
'System xxhash library': xxhash_dep.found() and xxhash_dep.type_name() != 'internal',
'System libmspack library': libmspack_dep.found() and libmspack_dep.type_name() != 'internal',
'System openssl library': sys_openssl.found() and sys_openssl.type_name() != 'internal',
'System openssl has SM3': userconf.get('HAVE_OPENSSL_SM3', 0) != 0,
'System capstone library': capstone_dep.found() and capstone_dep.type_name() != 'internal',
'System zydis library': zydis_dep.found() and zydis_dep.type_name() != 'internal',
'System tree-sitter library': tree_sitter_dep.found() and tree_sitter_dep.type_name() != 'internal',