| 1 | Description: use a map file |
| 2 | Author: Martin <[email protected]> |
| 3 | Origin: vendor |
| 4 | Last-Update: 2022-12-04 |
| 5 | --- |
| 6 | This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ |
| 7 | --- a/CMakeLists.txt |
| 8 | +++ b/CMakeLists.txt |
| 9 | @@ -165,6 +165,12 @@ |
| 10 | target_link_libraries(xeddsa_test_dynamic xeddsa_dynamic sodium) |
| 11 | endif () |
| 12 | |
| 13 | +if(UNIX) |
| 14 | + if(NOT APPLE) |
| 15 | + set_target_properties(xeddsa_dynamic PROPERTIES LINK_FLAGS "-Wl,--version-script,\"${CMAKE_CURRENT_SOURCE_DIR}/xeddsa.map\"") |
| 16 | + endif() |
| 17 | +endif() |
| 18 | + |
| 19 | ################ |
| 20 | # DEPENDENCIES # |
| 21 | ################ |
| 22 | --- /dev/null |
| 23 | +++ b/xeddsa.map |
| 24 | @@ -0,0 +1,23 @@ |
| 25 | +{ |
| 26 | + global: |
| 27 | + ed25519_priv_sign; |
| 28 | + ed25519_seed_sign; |
| 29 | + ed25519_verify; |
| 30 | + curve25519_pub_to_ed25519_pub; |
| 31 | + ed25519_pub_to_curve25519_pub; |
| 32 | + priv_to_curve25519_pub; |
| 33 | + priv_to_ed25519_pub; |
| 34 | + seed_to_ed25519_pub; |
| 35 | + priv_force_sign; |
| 36 | + seed_to_priv; |
| 37 | + x25519; |
| 38 | + xeddsa_init; |
| 39 | + XEDDSA_VERSION_MAJOR; |
| 40 | + XEDDSA_VERSION_MINOR; |
| 41 | + XEDDSA_VERSION_REVISION; |
| 42 | + local: |
| 43 | + crypto_*; |
| 44 | + kernelrandombytes; |
| 45 | + pos; |
| 46 | + randombytes*; |
| 47 | +}; |