Bugzilla – Attachment 2721 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]
unconditionally define prototypes for libressl
bz2465.diff (text/plain), 941 bytes, created by
Damien Miller
on 2015-10-06 07:27:21 AEDT
(
hide
)
Description:
unconditionally define prototypes for libressl
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2015-10-06 07:27:21 AEDT
Size:
941 bytes
patch
obsolete
>diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h >index 1ff7114..88c9742 100644 >--- a/openbsd-compat/openbsd-compat.h >+++ b/openbsd-compat/openbsd-compat.h >@@ -179,20 +179,19 @@ 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); >-void arc4random_stir(void); >-#endif /* !HAVE_ARC4RANDOM */ >+#endif >+ >+#ifndef HAVE_ARC4RANDOM_STIR >+# define arc4random_stir() >+#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