Description: use a map file Author: Martin Origin: vendor Last-Update: 2022-12-04 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -165,6 +165,12 @@ target_link_libraries(xeddsa_test_dynamic xeddsa_dynamic sodium) endif () +if(UNIX) + if(NOT APPLE) + set_target_properties(xeddsa_dynamic PROPERTIES LINK_FLAGS "-Wl,--version-script,\"${CMAKE_CURRENT_SOURCE_DIR}/xeddsa.map\"") + endif() +endif() + ################ # DEPENDENCIES # ################ --- /dev/null +++ b/xeddsa.map @@ -0,0 +1,23 @@ +{ + global: + ed25519_priv_sign; + ed25519_seed_sign; + ed25519_verify; + curve25519_pub_to_ed25519_pub; + ed25519_pub_to_curve25519_pub; + priv_to_curve25519_pub; + priv_to_ed25519_pub; + seed_to_ed25519_pub; + priv_force_sign; + seed_to_priv; + x25519; + xeddsa_init; + XEDDSA_VERSION_MAJOR; + XEDDSA_VERSION_MINOR; + XEDDSA_VERSION_REVISION; + local: + crypto_*; + kernelrandombytes; + pos; + randombytes*; +};