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
a371a8ae
Commit
a371a8ae
authored
Feb 24, 2017
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hash: rename implementation selection constants
parent
ba2bc491
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
CMakeLists.txt
+3
-3
src/hash.h
+3
-3
No files found.
CMakeLists.txt
View file @
a371a8ae
...
...
@@ -293,12 +293,12 @@ ENDIF()
# Specify sha1 implementation
IF
(
WIN32 AND NOT MINGW AND NOT SHA1_TYPE STREQUAL
"builtin"
)
ADD_DEFINITIONS
(
-D
WIN32_SHA1
)
ADD_DEFINITIONS
(
-D
GIT_SHA1_WIN32
)
FILE
(
GLOB SRC_SHA1 src/hash/hash_win32.c
)
ELSEIF
(
${
CMAKE_SYSTEM_NAME
}
MATCHES
"Darwin"
)
ADD_DEFINITIONS
(
-DGIT_COMMON_CRYPTO
)
ADD_DEFINITIONS
(
-DGIT_
SHA1_
COMMON_CRYPTO
)
ELSEIF
(
OPENSSL_FOUND AND NOT SHA1_TYPE STREQUAL
"builtin"
)
ADD_DEFINITIONS
(
-D
OPENSSL_SHA1
)
ADD_DEFINITIONS
(
-D
GIT_SHA1_OPENSSL
)
IF
(
CMAKE_SYSTEM_NAME MATCHES
"FreeBSD"
)
LIST
(
APPEND LIBGIT2_PC_LIBS
"-lssl"
)
ELSE
()
...
...
src/hash.h
View file @
a371a8ae
...
...
@@ -16,11 +16,11 @@ int git_hash_global_init(void);
int
git_hash_ctx_init
(
git_hash_ctx
*
ctx
);
void
git_hash_ctx_cleanup
(
git_hash_ctx
*
ctx
);
#if defined(GIT_COMMON_CRYPTO)
#if defined(GIT_
SHA1_
COMMON_CRYPTO)
# include "hash/hash_common_crypto.h"
#elif defined(
OPENSSL_SHA1
)
#elif defined(
GIT_SHA1_OPENSSL
)
# include "hash/hash_openssl.h"
#elif defined(
WIN32_SHA1
)
#elif defined(
GIT_SHA1_WIN32
)
# include "hash/hash_win32.h"
#else
# include "hash/hash_generic.h"
...
...
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