Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBalasankar "Balu" C <balasankar@gitlab.com>2022-05-23 08:32:36 +0300
committerBalasankar "Balu" C <balasankar@gitlab.com>2022-05-23 08:32:36 +0300
commit7134e8aff565146f15fb55bb1a965c83238f0af1 (patch)
tree16aefa6716a27af7623285bcc6e184276db9e50b
parent2ea9ab62df044733714466e84140663fa883a9cb (diff)
Make Git build with SHA256 routines in FIPS mode
Changelog: added Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com>
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b7215f276..531ccaea0 100644
--- a/Makefile
+++ b/Makefile
@@ -74,6 +74,9 @@ GIT2GO_BUILD_TAGS := static,system_libgit2
ifeq (${FIPS_MODE}, 1)
SERVER_BUILD_TAGS := ${SERVER_BUILD_TAGS},fips
GIT2GO_BUILD_TAGS := ${GIT2GO_BUILD_TAGS},fips
+
+ GIT_FIPS_BUILD_OPTIONS ?=
+ GIT_FIPS_BUILD_OPTIONS += OPENSSL_SHA256=1
endif
# Dependency versions
@@ -170,6 +173,10 @@ ifdef GIT_APPEND_BUILD_OPTIONS
GIT_BUILD_OPTIONS += ${GIT_APPEND_BUILD_OPTIONS}
endif
+ifdef GIT_FIPS_BUILD_OPTIONS
+ GIT_BUILD_OPTIONS += ${GIT_FIPS_BUILD_OPTIONS}
+endif
+
# libgit2 target
LIBGIT2_REPO_URL ?= https://gitlab.com/libgit2/libgit2
LIBGIT2_SOURCE_DIR ?= ${DEPENDENCY_DIR}/libgit2/source