Bugzilla – Attachment 2722 Details for
Bug 2465
openssh portable does not check if arc4random_buf is declared in the system headers?
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fixed diff
bz2465.diff (text/plain), 1.16 KB, created by
Damien Miller
on 2015-10-06 08:52:59 AEDT
(
hide
)
Description:
fixed diff
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2015-10-06 08:52:59 AEDT
Size:
1.16 KB
patch
obsolete
>diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h >index 1ff7114..5304113 100644 >--- a/openbsd-compat/openbsd-compat.h >+++ b/openbsd-compat/openbsd-compat.h >@@ -179,20 +179,25 @@ int writev(int, struct iovec *, int); > int getpeereid(int , uid_t *, gid_t *); > #endif > >-#ifdef HAVE_ARC4RANDOM >-# ifndef HAVE_ARC4RANDOM_STIR >-# define arc4random_stir() >-# endif >-#else >+#if !defined(HAVE_ARC4RANDOM) || defined(LIBRESSL_VERSION_NUMBER) > unsigned int arc4random(void); >+#endif >+ >+#if defined(HAVE_ARC4RANDOM_STIR) > void arc4random_stir(void); >-#endif /* !HAVE_ARC4RANDOM */ >+#elif defined(HAVE_ARC4RANDOM) || defined(LIBRESSL_VERSION_NUMBER) >+/* Recent system/libressl implementation; no need for explicit stir */ >+# define arc4random_stir() >+#else >+/* openbsd-compat/arc4random.c provides arc4random_stir() */ >+void arc4random_stir(void); >+#endif > >-#ifndef HAVE_ARC4RANDOM_BUF >+#if !defined(HAVE_ARC4RANDOM_BUF) || defined(LIBRESSL_VERSION_NUMBER) > void arc4random_buf(void *, size_t); > #endif > >-#ifndef HAVE_ARC4RANDOM_UNIFORM >+#if !defined(HAVE_ARC4RANDOM_UNIFORM) || defined(LIBRESSL_VERSION_NUMBER) > u_int32_t arc4random_uniform(u_int32_t); > #endif >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2465
:
2721
| 2722