summaryrefslogtreecommitdiff
path: root/src/hash/hash_openssl.h
Commit message (Collapse)AuthorAgeFilesLines
* git_error: use new names in internal APIs and usageEdward Thomson2019-01-221-3/+3
| | | | | Move to the `git_error` name in the internal API for error-related functions.
* hash: convert `global_init` macros to real functionPatrick Steinhardt2019-01-021-1/+5
| | | | | | | | | | | | | | | | | The `git_hash_global_init` function is simply defined as a macro to zero for most of the different hash implementations. This makes it impossible to treat it like a function pointer, which is required for a later commit where we want to improve the way global initialization works. Fix the issue by converting all no-op macros to an inline function returning zero. There's a small gotcha here, though: as most hash implementations only have a header file, but not a corresponding implementation file, we cannot declare the function as non-static. But declaring it as `static inline` fails, too, as there is a previous declaration as non-static. So we have to move the function declaration after the include that brings in the function definition, as it is allowed to have a non-static declaration after a static definition, but not the other way round.
* consistent header guardsethomson/header_guardsEdward Thomson2018-02-011-3/+3
| | | | use consistent names for the #include / #define header guard pattern.
* hash: openssl: check return values of SHA1_* functionsPatrick Steinhardt2018-01-031-3/+18
| | | | | | The OpenSSL functions `SHA1_Init`, `SHA1_Update` and `SHA1_Final` all return 1 for success and 0 otherwise, but we never check their return values. Do so.
* Add simple global shutdown hooksRussell Belfer2013-09-171-1/+0
| | | | | | | | | | Increasingly there are a number of components that want to do some cleanup at global shutdown time (at least if there are not going to be memory leaks). This creates a very simple system of shutdown hooks that will be invoked by git_threads_shutdown. Right now, the maximum number of hooks is hardcoded, but since adding a hook is not a public API, it should be fine and I thought it was better to start off with really simple code.
* update copyrightsEdward Thomson2013-01-081-1/+1
|
* unload dll / destroy hash ctxs at shutdownEdward Thomson2012-11-131-0/+1
|
* move hash library func ptrs to global globalEdward Thomson2012-11-131-0/+1
|
* Remove git_hash_ctx_new - callers now _ctx_init()Edward Thomson2012-11-131-17/+2
|
* Win32 CryptoAPI and CNG support for SHA1Edward Thomson2012-11-131-0/+58