aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorTheo Buehler <tb@openbsd.org>2023-12-12 08:19:39 +0100
committerTheo Buehler <tb@openbsd.org>2023-12-12 08:19:52 +0100
commitf7bed14f22b70198b4ec56af6d489f69b3df805a (patch)
tree72c325e78e9636222920bf0a0259092d8a5861b7 /crypto
parent2e88c74329938b5af441736645e795289660aa38 (diff)
parentc54bd8ba318dec4b4fbf4df1d92acbe2c032f3fd (diff)
downloadportable-f7bed14f22b70198b4ec56af6d489f69b3df805a.tar.gz
portable-f7bed14f22b70198b4ec56af6d489f69b3df805a.tar.bz2
portable-f7bed14f22b70198b4ec56af6d489f69b3df805a.zip
Land #961
Diffstat (limited to 'crypto')
-rw-r--r--crypto/CMakeLists.txt37
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
768if(NOT HAVE_ASPRINTF) 768if(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)
772endif() 772endif()
773 773
774if(NOT HAVE_FREEZERO) 774if(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)
777endif() 777endif()
778 778
779if(NOT HAVE_GETOPT) 779if(NOT HAVE_GETOPT)
@@ -799,46 +799,46 @@ endif()
799 799
800if(NOT HAVE_REALLOCARRAY) 800if(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)
803endif() 803endif()
804 804
805if(NOT HAVE_RECALLOCARRAY) 805if(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)
808endif() 808endif()
809 809
810if(NOT HAVE_STRCASECMP) 810if(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)
813endif() 813endif()
814 814
815if(NOT HAVE_STRLCAT) 815if(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)
818endif() 818endif()
819 819
820if(NOT HAVE_STRLCPY) 820if(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)
823endif() 823endif()
824 824
825if(NOT HAVE_STRNDUP) 825if(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()
832endif() 832endif()
833 833
834if(NOT HAVE_STRSEP) 834if(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)
837endif() 837endif()
838 838
839if(NOT HAVE_STRTONUM) 839if(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)
842endif() 842endif()
843 843
844if(NOT HAVE_SYSLOG_R) 844if(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)
861endif() 861endif()
862 862
863if(NOT HAVE_ARC4RANDOM_BUF) 863if(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
892if(NOT HAVE_TIMINGSAFE_BCMP) 892if(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)
895endif() 895endif()
896 896
897if(NOT HAVE_TIMINGSAFE_MEMCMP) 897if(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)
900endif() 900endif()
901 901
902if(NOT ENABLE_ASM) 902if(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})
920endforeach() 920endforeach()
921file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/crypto_p.sym ${SYMS}) 921file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/crypto_p.sym ${SYMS})
922# XXX should we still be doing this?
922if(EXTRA_EXPORT) 923if(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)