Commit 22f54262 authored by Ulrich Sibiller's avatar Ulrich Sibiller

os: add timingsafe_memcmp to Imake

There might be some library linking missing on platforms that deliver timingsafe_memcmp but I cannot test that here.
parent 65c5d8ad
...@@ -468,6 +468,9 @@ XCOMM the platform-specific parameters - edit site.def to change ...@@ -468,6 +468,9 @@ XCOMM the platform-specific parameters - edit site.def to change
#ifndef HasBasename #ifndef HasBasename
#define HasBasename YES #define HasBasename YES
#endif #endif
#ifndef HasTimingsafeMemcmp
#define HasTimingsafeMemcmp NO /* assume not */
#endif
#ifndef HasGetopt #ifndef HasGetopt
# if !defined(Win32Architecture) # if !defined(Win32Architecture)
# define HasGetopt YES # define HasGetopt YES
......
...@@ -115,17 +115,22 @@ GETPEER_DEFINES = -DHAS_GETPEEREID ...@@ -115,17 +115,22 @@ GETPEER_DEFINES = -DHAS_GETPEEREID
# endif # endif
#endif #endif
#if !HasTimingsafeMemcmp
TMEMCMP_SRCS = timingsafe_memcmp.c
TMEMCMP_OBJS = timingsafe_memcmp.o
#endif
BOOTSTRAPCFLAGS = BOOTSTRAPCFLAGS =
SRCS = WaitFor.c access.c connection.c io.c $(COLOR_SRCS) \ SRCS = WaitFor.c access.c connection.c io.c $(COLOR_SRCS) \
osinit.c utils.c log.c auth.c mitauth.c secauth.c \ osinit.c utils.c log.c auth.c mitauth.c secauth.c \
$(XDMAUTHSRCS) $(RPCSRCS) xdmcp.c OtherSources \ $(XDMAUTHSRCS) $(RPCSRCS) xdmcp.c OtherSources \
xstrans.c $(SNPRINTF_SRCS) $(STRLCAT_SRCS) \ xstrans.c $(SNPRINTF_SRCS) $(STRLCAT_SRCS) \
$(REALLOCARRAY_SRCS) xprintf.c timingsafe_memcmp.c $(REALLOCARRAY_SRCS) xprintf.c $(TMEMCMP_SRCS)
OBJS = WaitFor.o access.o connection.o io.o $(COLOR_OBJS) \ OBJS = WaitFor.o access.o connection.o io.o $(COLOR_OBJS) \
osinit.o utils.o log.o auth.o mitauth.o secauth.o \ osinit.o utils.o log.o auth.o mitauth.o secauth.o \
$(XDMAUTHOBJS) $(RPCOBJS) xdmcp.o OtherObjects \ $(XDMAUTHOBJS) $(RPCOBJS) xdmcp.o OtherObjects \
xstrans.o $(SNPRINTF_OBJS) $(STRLCAT_OBJS) \ xstrans.o $(SNPRINTF_OBJS) $(STRLCAT_OBJS) \
$(REALLOCARRAY_OBJS) xprintf.o timingsafe_memcmp.o $(REALLOCARRAY_OBJS) xprintf.o $(TMEMCMP_OBJS)
#if UseMemLeak #if UseMemLeak
MEM_DEFINES = -DMEMBUG MEM_DEFINES = -DMEMBUG
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment