File: use-map-file.patch

package info (click to toggle)
libxeddsa 2.0.0%2B20231128.d725c81-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,104 kB
  • sloc: ansic: 5,683; makefile: 20; python: 19; javascript: 15
file content (47 lines) | stat: -rw-r--r-- 1,077 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Description: use a map file
Author: Martin <debacle@debian.org>
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*;
+};