The Wayback Machine - https://web.archive.org/web/20220729051332/https://github.com/git-for-windows/git/commit/95acb13a550cbc07a5ef38ffceb5678fac61acff
Skip to content
Permalink
Browse files
Merge branch 'bc/csprng-mktemps'
Build fix.

* bc/csprng-mktemps:
  git-compat-util: really support openssl as a source of entropy
  • Loading branch information
gitster committed Apr 6, 2022
2 parents 327933f + 5b52d9f commit 95acb13a550cbc07a5ef38ffceb5678fac61acff
Showing 3 changed files with 6 additions and 1 deletion.
@@ -1972,6 +1972,7 @@ endif

ifneq ($(findstring openssl,$(CSPRNG_METHOD)),)
BASIC_CFLAGS += -DHAVE_OPENSSL_CSPRNG
EXTLIBS += -lcrypto -lssl
endif

ifneq ($(PROCFS_EXECUTABLE_PATH),)
@@ -525,6 +525,10 @@ void warning_errno(const char *err, ...) __attribute__((format (printf, 1, 2)));
#include <openssl/x509v3.h>
#endif /* NO_OPENSSL */

#ifdef HAVE_OPENSSL_CSPRNG
#include <openssl/rand.h>
#endif

/*
* Let callers be aware of the constant return value; this can help
* gcc with -Wuninitialized analysis. We restrict this trick to gcc, though,
@@ -27,7 +27,7 @@
#include "exec-cmd.h"
#include "run-command.h"
#include "parse-options.h"
#ifdef NO_OPENSSL
#if defined(NO_OPENSSL) && !defined(HAVE_OPENSSL_CSPRNG)
typedef void *SSL;
#endif
#ifdef USE_CURL_FOR_IMAP_SEND

0 comments on commit 95acb13

Please sign in to comment.