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
c4cd69b2
Unverified
Commit
c4cd69b2
authored
Apr 07, 2019
by
Edward Thomson
Committed by
GitHub
Apr 07, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5039 from libgit2/ethomson/win32_hash
sha1: don't inline `git_hash_global_init` for win32
parents
5a190ad3
e5aecaf6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
14 deletions
+16
-14
src/hash/hash_win32.c
+15
-0
src/hash/hash_win32.h
+1
-14
No files found.
src/hash/hash_win32.c
View file @
c4cd69b2
...
...
@@ -109,6 +109,21 @@ static void git_hash_global_shutdown(void)
hash_cryptoapi_prov_shutdown
();
}
int
git_hash_global_init
(
void
)
{
int
error
=
0
;
if
(
hash_prov
.
type
!=
INVALID
)
return
0
;
if
((
error
=
hash_cng_prov_init
())
<
0
)
error
=
hash_cryptoapi_prov_init
();
git__on_shutdown
(
git_hash_global_shutdown
);
return
error
;
}
/* CryptoAPI: available in Windows XP and newer */
GIT_INLINE
(
int
)
hash_ctx_cryptoapi_init
(
git_hash_ctx
*
ctx
)
...
...
src/hash/hash_win32.h
View file @
c4cd69b2
...
...
@@ -138,19 +138,6 @@ struct git_hash_ctx {
}
ctx
;
};
GIT_INLINE
(
int
)
git_hash_global_init
(
void
)
{
int
error
=
0
;
if
(
hash_prov
.
type
!=
INVALID
)
return
0
;
if
((
error
=
hash_cng_prov_init
())
<
0
)
error
=
hash_cryptoapi_prov_init
();
git__on_shutdown
(
git_hash_global_shutdown
);
return
error
;
}
extern
int
git_hash_global_init
(
void
);
#endif
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