diff options
author | Theo Buehler <tb@openbsd.org> | 2023-12-12 08:19:39 +0100 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2023-12-12 08:19:52 +0100 |
commit | f7bed14f22b70198b4ec56af6d489f69b3df805a (patch) | |
tree | 72c325e78e9636222920bf0a0259092d8a5861b7 /crypto | |
parent | 2e88c74329938b5af441736645e795289660aa38 (diff) | |
parent | c54bd8ba318dec4b4fbf4df1d92acbe2c032f3fd (diff) | |
download | portable-f7bed14f22b70198b4ec56af6d489f69b3df805a.tar.gz portable-f7bed14f22b70198b4ec56af6d489f69b3df805a.tar.bz2 portable-f7bed14f22b70198b4ec56af6d489f69b3df805a.zip |
Land #961
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/CMakeLists.txt | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index 6056471..8046efe 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt | |||
@@ -767,13 +767,13 @@ endif() | |||
767 | 767 | ||
768 | if(NOT HAVE_ASPRINTF) | 768 | if(NOT HAVE_ASPRINTF) |
769 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/bsd-asprintf.c) | 769 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/bsd-asprintf.c) |
770 | set(EXTRA_EXPORT ${EXTRA_EXPORT} asprintf) | 770 | set(EXTRA_EXPORT ${EXTRA_EXPORT} libressl_asprintf) |
771 | set(EXTRA_EXPORT ${EXTRA_EXPORT} vasprintf) | 771 | set(EXTRA_EXPORT ${EXTRA_EXPORT} libressl_vasprintf) |
772 | endif() | 772 | endif() |
773 | 773 | ||
774 | if(NOT HAVE_FREEZERO) | 774 | if(NOT HAVE_FREEZERO) |
775 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/freezero.c) | 775 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/freezero.c) |
776 | set(EXTRA_EXPORT ${EXTRA_EXPORT} freezero) | 776 | set(EXTRA_EXPORT ${EXTRA_EXPORT} libressl_freezero) |
777 | endif() | 777 | endif() |
778 | 778 | ||
779 | if(NOT HAVE_GETOPT) | 779 | if(NOT HAVE_GETOPT) |
@@ -799,46 +799,46 @@ endif() | |||
799 | 799 | ||
800 | if(NOT HAVE_REALLOCARRAY) | 800 | if(NOT HAVE_REALLOCARRAY) |
801 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/reallocarray.c) | 801 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/reallocarray.c) |
802 | set(EXTRA_EXPORT ${EXTRA_EXPORT} reallocarray) | 802 | set(EXTRA_EXPORT ${EXTRA_EXPORT} libressl_reallocarray) |
803 | endif() | 803 | endif() |
804 | 804 | ||
805 | if(NOT HAVE_RECALLOCARRAY) | 805 | if(NOT HAVE_RECALLOCARRAY) |
806 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/recallocarray.c) | 806 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/recallocarray.c) |
807 | set(EXTRA_EXPORT ${EXTRA_EXPORT} recallocarray) | 807 | set(EXTRA_EXPORT ${EXTRA_EXPORT} libressl_recallocarray) |
808 | endif() | 808 | endif() |
809 | 809 | ||
810 | if(NOT HAVE_STRCASECMP) | 810 | if(NOT HAVE_STRCASECMP) |
811 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/strcasecmp.c) | 811 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/strcasecmp.c) |
812 | set(EXTRA_EXPORT ${EXTRA_EXPORT} strcasecmp) | 812 | set(EXTRA_EXPORT ${EXTRA_EXPORT} libressl_strcasecmp) |
813 | endif() | 813 | endif() |
814 | 814 | ||
815 | if(NOT HAVE_STRLCAT) | 815 | if(NOT HAVE_STRLCAT) |
816 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/strlcat.c) | 816 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/strlcat.c) |
817 | set(EXTRA_EXPORT ${EXTRA_EXPORT} strlcat) | 817 | set(EXTRA_EXPORT ${EXTRA_EXPORT} libressl_strlcat) |
818 | endif() | 818 | endif() |
819 | 819 | ||
820 | if(NOT HAVE_STRLCPY) | 820 | if(NOT HAVE_STRLCPY) |
821 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/strlcpy.c) | 821 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/strlcpy.c) |
822 | set(EXTRA_EXPORT ${EXTRA_EXPORT} strlcpy) | 822 | set(EXTRA_EXPORT ${EXTRA_EXPORT} libressl_strlcpy) |
823 | endif() | 823 | endif() |
824 | 824 | ||
825 | if(NOT HAVE_STRNDUP) | 825 | if(NOT HAVE_STRNDUP) |
826 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/strndup.c) | 826 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/strndup.c) |
827 | set(EXTRA_EXPORT ${EXTRA_EXPORT} strndup) | 827 | set(EXTRA_EXPORT ${EXTRA_EXPORT} libressl_strndup) |
828 | if(NOT HAVE_STRNLEN) | 828 | if(NOT HAVE_STRNLEN) |
829 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/strnlen.c) | 829 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/strnlen.c) |
830 | set(EXTRA_EXPORT ${EXTRA_EXPORT} strnlen) | 830 | set(EXTRA_EXPORT ${EXTRA_EXPORT} libressl_strnlen) |
831 | endif() | 831 | endif() |
832 | endif() | 832 | endif() |
833 | 833 | ||
834 | if(NOT HAVE_STRSEP) | 834 | if(NOT HAVE_STRSEP) |
835 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/strsep.c) | 835 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/strsep.c) |
836 | set(EXTRA_EXPORT ${EXTRA_EXPORT} strsep) | 836 | set(EXTRA_EXPORT ${EXTRA_EXPORT} libressl_strsep) |
837 | endif() | 837 | endif() |
838 | 838 | ||
839 | if(NOT HAVE_STRTONUM) | 839 | if(NOT HAVE_STRTONUM) |
840 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/strtonum.c) | 840 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/strtonum.c) |
841 | set(EXTRA_EXPORT ${EXTRA_EXPORT} strtonum) | 841 | set(EXTRA_EXPORT ${EXTRA_EXPORT} libressl_strtonum) |
842 | endif() | 842 | endif() |
843 | 843 | ||
844 | if(NOT HAVE_SYSLOG_R) | 844 | if(NOT HAVE_SYSLOG_R) |
@@ -857,15 +857,15 @@ if(NOT HAVE_EXPLICIT_BZERO) | |||
857 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/explicit_bzero.c) | 857 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/explicit_bzero.c) |
858 | set_source_files_properties(compat/explicit_bzero.c PROPERTIES COMPILE_FLAGS -O0) | 858 | set_source_files_properties(compat/explicit_bzero.c PROPERTIES COMPILE_FLAGS -O0) |
859 | endif() | 859 | endif() |
860 | set(EXTRA_EXPORT ${EXTRA_EXPORT} explicit_bzero) | 860 | set(EXTRA_EXPORT ${EXTRA_EXPORT} libressl_explicit_bzero) |
861 | endif() | 861 | endif() |
862 | 862 | ||
863 | if(NOT HAVE_ARC4RANDOM_BUF) | 863 | if(NOT HAVE_ARC4RANDOM_BUF) |
864 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/arc4random.c) | 864 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/arc4random.c) |
865 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/arc4random_uniform.c) | 865 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/arc4random_uniform.c) |
866 | set(EXTRA_EXPORT ${EXTRA_EXPORT} arc4random) | 866 | set(EXTRA_EXPORT ${EXTRA_EXPORT} libressl_arc4random) |
867 | set(EXTRA_EXPORT ${EXTRA_EXPORT} arc4random_buf) | 867 | set(EXTRA_EXPORT ${EXTRA_EXPORT} libressl_arc4random_buf) |
868 | set(EXTRA_EXPORT ${EXTRA_EXPORT} arc4random_uniform) | 868 | set(EXTRA_EXPORT ${EXTRA_EXPORT} libressl_arc4random_uniform) |
869 | 869 | ||
870 | if(NOT HAVE_GETENTROPY) | 870 | if(NOT HAVE_GETENTROPY) |
871 | if(WIN32) | 871 | if(WIN32) |
@@ -891,12 +891,12 @@ endif() | |||
891 | 891 | ||
892 | if(NOT HAVE_TIMINGSAFE_BCMP) | 892 | if(NOT HAVE_TIMINGSAFE_BCMP) |
893 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/timingsafe_bcmp.c) | 893 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/timingsafe_bcmp.c) |
894 | set(EXTRA_EXPORT ${EXTRA_EXPORT} timingsafe_bcmp) | 894 | set(EXTRA_EXPORT ${EXTRA_EXPORT} libressl_timingsafe_bcmp) |
895 | endif() | 895 | endif() |
896 | 896 | ||
897 | if(NOT HAVE_TIMINGSAFE_MEMCMP) | 897 | if(NOT HAVE_TIMINGSAFE_MEMCMP) |
898 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/timingsafe_memcmp.c) | 898 | set(CRYPTO_SRC ${CRYPTO_SRC} compat/timingsafe_memcmp.c) |
899 | set(EXTRA_EXPORT ${EXTRA_EXPORT} timingsafe_memcmp) | 899 | set(EXTRA_EXPORT ${EXTRA_EXPORT} libressl_timingsafe_memcmp) |
900 | endif() | 900 | endif() |
901 | 901 | ||
902 | if(NOT ENABLE_ASM) | 902 | if(NOT ENABLE_ASM) |
@@ -919,6 +919,7 @@ foreach(SYM IN LISTS CRYPTO_UNEXPORT) | |||
919 | string(REPLACE "${SYM}\n" "" SYMS ${SYMS}) | 919 | string(REPLACE "${SYM}\n" "" SYMS ${SYMS}) |
920 | endforeach() | 920 | endforeach() |
921 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/crypto_p.sym ${SYMS}) | 921 | file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/crypto_p.sym ${SYMS}) |
922 | # XXX should we still be doing this? | ||
922 | if(EXTRA_EXPORT) | 923 | if(EXTRA_EXPORT) |
923 | list(SORT EXTRA_EXPORT) | 924 | list(SORT EXTRA_EXPORT) |
924 | foreach(SYM IN LISTS EXTRA_EXPORT) | 925 | foreach(SYM IN LISTS EXTRA_EXPORT) |