aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2023-02-28 08:34:39 -0600
committerBrent Cook <busterb@gmail.com>2023-05-27 01:20:54 -0500
commit54b31ce5ec82248bba32f1a7c49e66e088cb1807 (patch)
tree89dc3a1785668958ef41175a51e30735ff4227e6
parent605328314f266e01c4b670addcb2e5a2991d2f49 (diff)
downloadportable-54b31ce5ec82248bba32f1a7c49e66e088cb1807.tar.gz
portable-54b31ce5ec82248bba32f1a7c49e66e088cb1807.tar.bz2
portable-54b31ce5ec82248bba32f1a7c49e66e088cb1807.zip
unexport internal compat symbols from libcrypto
-rw-r--r--crypto/Makefile.am66
-rw-r--r--ssl/Makefile.am4
2 files changed, 4 insertions, 66 deletions
diff --git a/crypto/Makefile.am b/crypto/Makefile.am
index 8fcd4f7..b113850 100644
--- a/crypto/Makefile.am
+++ b/crypto/Makefile.am
@@ -45,73 +45,7 @@ crypto_portable.sym: crypto.sym Makefile
45 -echo "generating crypto_portable.sym ..." 45 -echo "generating crypto_portable.sym ..."
46 -cp $(top_srcdir)/crypto/crypto.sym crypto_portable.sym 46 -cp $(top_srcdir)/crypto/crypto.sym crypto_portable.sym
47 -chmod u+w crypto_portable.sym 47 -chmod u+w crypto_portable.sym
48if !HAVE_ARC4RANDOM_BUF
49 -echo arc4random >> crypto_portable.sym
50 -echo arc4random_buf >> crypto_portable.sym
51 -echo arc4random_uniform >> crypto_portable.sym
52if !HAVE_GETENTROPY
53 -echo getentropy >> crypto_portable.sym
54endif
55endif
56if !HAVE_ASPRINTF
57 -echo asprintf >> crypto_portable.sym
58 -echo vasprintf >> crypto_portable.sym
59endif
60if !HAVE_EXPLICIT_BZERO
61 -echo explicit_bzero >> crypto_portable.sym
62endif
63if !HAVE_FREEZERO
64 -echo freezero >> crypto_portable.sym
65endif
66if !HAVE_REALLOCARRAY
67 -echo reallocarray >> crypto_portable.sym
68endif
69if !HAVE_RECALLOCARRAY
70 -echo recallocarray >> crypto_portable.sym
71endif
72if !HAVE_STRLCAT
73 -echo strlcat >> crypto_portable.sym
74endif
75if !HAVE_STRLCPY
76 -echo strlcpy >> crypto_portable.sym
77endif
78if !HAVE_STRNDUP
79 -echo strndup >> crypto_portable.sym
80endif
81if !HAVE_STRNLEN
82 -echo strnlen >> crypto_portable.sym
83endif
84if !HAVE_STRSEP
85 -echo strsep >> crypto_portable.sym
86endif
87if !HAVE_STRTONUM
88 -echo strtonum >> crypto_portable.sym
89endif
90if !HAVE_TIMEGM
91 -echo timegm >> crypto_portable.sym
92endif
93if !HAVE_TIMINGSAFE_BCMP
94 -echo timingsafe_bcmp >> crypto_portable.sym
95endif
96if !HAVE_TIMINGSAFE_MEMCMP
97 -echo timingsafe_memcmp >> crypto_portable.sym
98endif
99if HOST_CPU_IS_INTEL
100 -echo OPENSSL_ia32cap_P >> crypto_portable.sym
101endif
102if HOST_WIN 48if HOST_WIN
103 -echo posix_perror >> crypto_portable.sym
104 -echo posix_fopen >> crypto_portable.sym
105 -echo posix_fgets >> crypto_portable.sym
106 -echo posix_open >> crypto_portable.sym
107 -echo posix_rename >> crypto_portable.sym
108 -echo posix_connect >> crypto_portable.sym
109 -echo posix_close >> crypto_portable.sym
110 -echo posix_read >> crypto_portable.sym
111 -echo posix_write >> crypto_portable.sym
112 -echo posix_getsockopt >> crypto_portable.sym
113 -echo posix_setsockopt >> crypto_portable.sym
114 -echo getuid >> crypto_portable.sym
115 -grep -v BIO_s_log crypto_portable.sym > crypto_portable.sym.tmp 49 -grep -v BIO_s_log crypto_portable.sym > crypto_portable.sym.tmp
116 -mv crypto_portable.sym.tmp crypto_portable.sym 50 -mv crypto_portable.sym.tmp crypto_portable.sym
117endif 51endif
diff --git a/ssl/Makefile.am b/ssl/Makefile.am
index d27e2af..002a266 100644
--- a/ssl/Makefile.am
+++ b/ssl/Makefile.am
@@ -1,5 +1,7 @@
1include $(top_srcdir)/Makefile.am.common 1include $(top_srcdir)/Makefile.am.common
2 2
3-include $(abs_top_builddir)/crypto/libcrypto_la_objects.mk
4
3AM_CPPFLAGS += -I$(top_srcdir)/crypto/bio 5AM_CPPFLAGS += -I$(top_srcdir)/crypto/bio
4 6
5noinst_LTLIBRARIES = libbs.la 7noinst_LTLIBRARIES = libbs.la
@@ -34,6 +36,8 @@ remove_bs_objects: libssl.la
34libssl_la_CPPFLAGS = -I$(top_srcdir)/ssl/hidden ${AM_CPPFLAGS} 36libssl_la_CPPFLAGS = -I$(top_srcdir)/ssl/hidden ${AM_CPPFLAGS}
35libssl_la_LDFLAGS = -version-info @LIBSSL_VERSION@ -no-undefined -export-symbols $(top_srcdir)/ssl/ssl.sym 37libssl_la_LDFLAGS = -version-info @LIBSSL_VERSION@ -no-undefined -export-symbols $(top_srcdir)/ssl/ssl.sym
36libssl_la_LIBADD = $(abs_top_builddir)/crypto/libcrypto.la $(PLATFORM_LDADD) 38libssl_la_LIBADD = $(abs_top_builddir)/crypto/libcrypto.la $(PLATFORM_LDADD)
39libssl_la_LIBADD += $(libcompat_la_objects)
40libssl_la_LIBADD += $(libcompatnoopt_la_objects)
37libssl_la_LIBADD += libbs.la 41libssl_la_LIBADD += libbs.la
38 42
39libbs_la_SOURCES = bs_ber.c 43libbs_la_SOURCES = bs_ber.c