Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
d78a1b18
Unverified
Commit
d78a1b18
authored
Jul 20, 2019
by
Edward Thomson
Committed by
GitHub
Jul 20, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5174 from pks-t/pks/winhttp-hash
sha1: fix compilation of WinHTTP backend
parents
964c1c60
270fd807
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
azure-pipelines.yml
+1
-1
azure-pipelines/nightly.yml
+1
-1
cmake/Modules/SelectHashes.cmake
+6
-6
src/hash/sha1/win32.c
+1
-1
No files found.
azure-pipelines.yml
View file @
d78a1b18
...
...
@@ -90,7 +90,7 @@ jobs:
-
template
:
azure-pipelines/powershell.yml
parameters
:
environmentVariables
:
CMAKE_OPTIONS
:
-DMSVC_CRTDBG=ON -G"Visual Studio 12 2013" -DDEPRECATE_HARD=ON
CMAKE_OPTIONS
:
-DMSVC_CRTDBG=ON -G"Visual Studio 12 2013" -DDEPRECATE_HARD=ON
-DUSE_SHA1=HTTPS
-
job
:
windows_mingw_amd64
displayName
:
'
Windows
(amd64;
MinGW)'
...
...
azure-pipelines/nightly.yml
View file @
d78a1b18
...
...
@@ -92,7 +92,7 @@ jobs:
-
template
:
powershell.yml
parameters
:
environmentVariables
:
CMAKE_OPTIONS
:
-DMSVC_CRTDBG=ON -G"Visual Studio 12 2013" -DDEPRECATE_HARD=ON
CMAKE_OPTIONS
:
-DMSVC_CRTDBG=ON -G"Visual Studio 12 2013" -DDEPRECATE_HARD=ON
-DUSE_SHA1=HTTPS
RUN_INVASIVE_TESTS
:
true
-
job
:
windows_mingw_amd64
...
...
cmake/Modules/SelectHashes.cmake
View file @
d78a1b18
...
...
@@ -30,7 +30,7 @@ IF(SHA1_BACKEND STREQUAL "CollisionDetection")
ADD_DEFINITIONS
(
-DSHA1DC_NO_STANDARD_INCLUDES=1
)
ADD_DEFINITIONS
(
-DSHA1DC_CUSTOM_INCLUDE_SHA1_C=\
"common.h
\"
)
ADD_DEFINITIONS(-DSHA1DC_CUSTOM_INCLUDE_UBC_CHECK_C=
\"
common.h
\"
)
FILE(GLOB SRC_SHA1 hash/sha1/collisiondetect.
c
hash/sha1/sha1dc/*)
FILE(GLOB SRC_SHA1 hash/sha1/collisiondetect.
*
hash/sha1/sha1dc/*)
ELSEIF(SHA1_BACKEND STREQUAL "
OpenSSL
")
# OPENSSL_FOUND should already be set, we're checking HTTPS_BACKEND
...
...
@@ -40,13 +40,13 @@ ELSEIF(SHA1_BACKEND STREQUAL "OpenSSL")
ELSE()
LIST(APPEND LIBGIT2_PC_REQUIRES "
openssl
")
ENDIF()
FILE(GLOB SRC_SHA1 hash/sha1/openssl.
c
)
FILE(GLOB SRC_SHA1 hash/sha1/openssl.
*
)
ELSEIF(SHA1_BACKEND STREQUAL "
CommonCrypto
")
SET(GIT_SHA1_COMMON_CRYPTO 1)
FILE(GLOB SRC_SHA1 hash/sha1/common_crypto.
c
)
FILE(GLOB SRC_SHA1 hash/sha1/common_crypto.
*
)
ELSEIF(SHA1_BACKEND STREQUAL "
mbedTLS
")
SET(GIT_SHA1_MBEDTLS 1)
FILE(GLOB SRC_SHA1 hash/sha1/mbedtls.
c
)
FILE(GLOB SRC_SHA1 hash/sha1/mbedtls.
*
)
LIST(APPEND LIBGIT2_SYSTEM_INCLUDES
${
MBEDTLS_INCLUDE_DIR
}
)
LIST(APPEND LIBGIT2_LIBS
${
MBEDTLS_LIBRARIES
}
)
# mbedTLS has no pkgconfig file, hence we can't require it
...
...
@@ -55,9 +55,9 @@ ELSEIF(SHA1_BACKEND STREQUAL "mbedTLS")
LIST(APPEND LIBGIT2_PC_LIBS
${
MBEDTLS_LIBRARIES
}
)
ELSEIF(SHA1_BACKEND STREQUAL "
Win32
")
SET(GIT_SHA1_WIN32 1)
FILE(GLOB SRC_SHA1 hash/sha1/win32.
c
)
FILE(GLOB SRC_SHA1 hash/sha1/win32.
*
)
ELSEIF(SHA1_BACKEND STREQUAL "
Generic
")
FILE(GLOB SRC_SHA1 hash/sha1/generic.
c
)
FILE(GLOB SRC_SHA1 hash/sha1/generic.
*
)
# ELSEIF(NOT USE_SHA1)
ELSE()
MESSAGE(FATAL_ERROR "
Asked for unknown SHA1 backend:
${
SHA1_BACKEND
}
")
...
...
src/hash/sha1/win32.c
View file @
d78a1b18
...
...
@@ -23,7 +23,7 @@
/* BCRYPT_HASH_REUSEABLE_FLAGS */
#define GIT_HASH_CNG_HASH_REUSABLE 0x00000020
static
struct
git_hash_prov
hash_prov
=
{
0
};
static
git_hash_prov
hash_prov
=
{
0
};
/* Hash initialization */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment