summaryrefslogtreecommitdiff
path: root/openbsd-compat/openbsd-compat.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2022-11-01 19:10:30 +1100
committerDarren Tucker <dtucker@dtucker.net>2022-11-02 12:20:50 +1100
commitda6038bd5cd55eb212eb2aec1fc8ae79bbf76156 (patch)
tree0be5b5fd8106a45c789a9a474c639d4cc2432b4e /openbsd-compat/openbsd-compat.h
parent5ebe18cab6be3247b44c807ac145164010465b82 (diff)
downloadopenssh-git-da6038bd5cd55eb212eb2aec1fc8ae79bbf76156.tar.gz
Always use compat getentropy.
Have it call native getentropy and fall back as required. Should fix issues of platforms where libc has getentropy but it is not implemented in the kernel. Based on github PR#354 from simsergey.
Diffstat (limited to 'openbsd-compat/openbsd-compat.h')
-rw-r--r--openbsd-compat/openbsd-compat.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h
index 4af207cd..8f815090 100644
--- a/openbsd-compat/openbsd-compat.h
+++ b/openbsd-compat/openbsd-compat.h
@@ -69,10 +69,6 @@ void closefrom(int);
int ftruncate(int filedes, off_t length);
#endif
-#if defined(HAVE_DECL_GETENTROPY) && HAVE_DECL_GETENTROPY == 0
-int _ssh_compat_getentropy(void *, size_t);
-#endif
-
#ifndef HAVE_GETLINE
#include <stdio.h>
ssize_t getline(char **, size_t *, FILE *);