diff options
| author | Brent Cook <busterb@gmail.com> | 2023-02-28 08:34:39 -0600 |
|---|---|---|
| committer | Brent Cook <busterb@gmail.com> | 2023-05-27 01:20:54 -0500 |
| commit | 54b31ce5ec82248bba32f1a7c49e66e088cb1807 (patch) | |
| tree | 89dc3a1785668958ef41175a51e30735ff4227e6 | |
| parent | 605328314f266e01c4b670addcb2e5a2991d2f49 (diff) | |
| download | portable-54b31ce5ec82248bba32f1a7c49e66e088cb1807.tar.gz portable-54b31ce5ec82248bba32f1a7c49e66e088cb1807.tar.bz2 portable-54b31ce5ec82248bba32f1a7c49e66e088cb1807.zip | |
unexport internal compat symbols from libcrypto
| -rw-r--r-- | crypto/Makefile.am | 66 | ||||
| -rw-r--r-- | ssl/Makefile.am | 4 |
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 |
| 48 | if !HAVE_ARC4RANDOM_BUF | ||
| 49 | -echo arc4random >> crypto_portable.sym | ||
| 50 | -echo arc4random_buf >> crypto_portable.sym | ||
| 51 | -echo arc4random_uniform >> crypto_portable.sym | ||
| 52 | if !HAVE_GETENTROPY | ||
| 53 | -echo getentropy >> crypto_portable.sym | ||
| 54 | endif | ||
| 55 | endif | ||
| 56 | if !HAVE_ASPRINTF | ||
| 57 | -echo asprintf >> crypto_portable.sym | ||
| 58 | -echo vasprintf >> crypto_portable.sym | ||
| 59 | endif | ||
| 60 | if !HAVE_EXPLICIT_BZERO | ||
| 61 | -echo explicit_bzero >> crypto_portable.sym | ||
| 62 | endif | ||
| 63 | if !HAVE_FREEZERO | ||
| 64 | -echo freezero >> crypto_portable.sym | ||
| 65 | endif | ||
| 66 | if !HAVE_REALLOCARRAY | ||
| 67 | -echo reallocarray >> crypto_portable.sym | ||
| 68 | endif | ||
| 69 | if !HAVE_RECALLOCARRAY | ||
| 70 | -echo recallocarray >> crypto_portable.sym | ||
| 71 | endif | ||
| 72 | if !HAVE_STRLCAT | ||
| 73 | -echo strlcat >> crypto_portable.sym | ||
| 74 | endif | ||
| 75 | if !HAVE_STRLCPY | ||
| 76 | -echo strlcpy >> crypto_portable.sym | ||
| 77 | endif | ||
| 78 | if !HAVE_STRNDUP | ||
| 79 | -echo strndup >> crypto_portable.sym | ||
| 80 | endif | ||
| 81 | if !HAVE_STRNLEN | ||
| 82 | -echo strnlen >> crypto_portable.sym | ||
| 83 | endif | ||
| 84 | if !HAVE_STRSEP | ||
| 85 | -echo strsep >> crypto_portable.sym | ||
| 86 | endif | ||
| 87 | if !HAVE_STRTONUM | ||
| 88 | -echo strtonum >> crypto_portable.sym | ||
| 89 | endif | ||
| 90 | if !HAVE_TIMEGM | ||
| 91 | -echo timegm >> crypto_portable.sym | ||
| 92 | endif | ||
| 93 | if !HAVE_TIMINGSAFE_BCMP | ||
| 94 | -echo timingsafe_bcmp >> crypto_portable.sym | ||
| 95 | endif | ||
| 96 | if !HAVE_TIMINGSAFE_MEMCMP | ||
| 97 | -echo timingsafe_memcmp >> crypto_portable.sym | ||
| 98 | endif | ||
| 99 | if HOST_CPU_IS_INTEL | ||
| 100 | -echo OPENSSL_ia32cap_P >> crypto_portable.sym | ||
| 101 | endif | ||
| 102 | if HOST_WIN | 48 | if 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 |
| 117 | endif | 51 | endif |
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 @@ | |||
| 1 | include $(top_srcdir)/Makefile.am.common | 1 | include $(top_srcdir)/Makefile.am.common |
| 2 | 2 | ||
| 3 | -include $(abs_top_builddir)/crypto/libcrypto_la_objects.mk | ||
| 4 | |||
| 3 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/bio | 5 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/bio |
| 4 | 6 | ||
| 5 | noinst_LTLIBRARIES = libbs.la | 7 | noinst_LTLIBRARIES = libbs.la |
| @@ -34,6 +36,8 @@ remove_bs_objects: libssl.la | |||
| 34 | libssl_la_CPPFLAGS = -I$(top_srcdir)/ssl/hidden ${AM_CPPFLAGS} | 36 | libssl_la_CPPFLAGS = -I$(top_srcdir)/ssl/hidden ${AM_CPPFLAGS} |
| 35 | libssl_la_LDFLAGS = -version-info @LIBSSL_VERSION@ -no-undefined -export-symbols $(top_srcdir)/ssl/ssl.sym | 37 | libssl_la_LDFLAGS = -version-info @LIBSSL_VERSION@ -no-undefined -export-symbols $(top_srcdir)/ssl/ssl.sym |
| 36 | libssl_la_LIBADD = $(abs_top_builddir)/crypto/libcrypto.la $(PLATFORM_LDADD) | 38 | libssl_la_LIBADD = $(abs_top_builddir)/crypto/libcrypto.la $(PLATFORM_LDADD) |
| 39 | libssl_la_LIBADD += $(libcompat_la_objects) | ||
| 40 | libssl_la_LIBADD += $(libcompatnoopt_la_objects) | ||
| 37 | libssl_la_LIBADD += libbs.la | 41 | libssl_la_LIBADD += libbs.la |
| 38 | 42 | ||
| 39 | libbs_la_SOURCES = bs_ber.c | 43 | libbs_la_SOURCES = bs_ber.c |
