libcrypto: Switch over to libc's reallocarray().
authorSascha Wildner <saw@online.de>
Sun, 13 Jan 2019 14:54:35 +0000 (15:54 +0100)
committerSascha Wildner <saw@online.de>
Sun, 13 Jan 2019 14:54:35 +0000 (15:54 +0100)
lib/librecrypto/Makefile
lib/librecrypto/Makefile.inc

index 8e4d29f..ecf8492 100644 (file)
@@ -259,6 +259,6 @@ SRCS=               ${ASM_X86_64_ELF} ${SRC_TOP} ${SRC_AES} ${SRC_ASN1} \
        ${LIBRESSL_SRC}/include/openssl
 
 # compat/
-SRCS+= explicit_bzero.c reallocarray.c timingsafe_bcmp.c timingsafe_memcmp.c
+SRCS+= explicit_bzero.c timingsafe_bcmp.c timingsafe_memcmp.c
 
 .include <bsd.lib.mk>
index 563696e..8e0fbf9 100644 (file)
@@ -28,6 +28,7 @@ CFLAGS+=      -DSTDC_HEADERS=1 \
                -DHAVE_INET_PTON=1 \
                -DHAVE_MEMMEM=1 \
                -DHAVE_READPASSPHRASE=1 \
+               -DHAVE_REALLOCARRAY=1 \
                -DHAVE_STRLCAT=1 \
                -DHAVE_STRLCPY=1 \
                -DHAVE_STRCASECMP=1 \