Bugzilla – Attachment 2372 Details for
Bug 2168
Fails to build after arc4random API change in OpenBSD
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Detect arc4random_stir() availability
openssh-portable-arc4random_stir.diff (text/plain), 1.35 KB, created by
Jeremie Courreges-Anglas
on 2013-11-06 23:56:52 AEDT
(
hide
)
Description:
Detect arc4random_stir() availability
Filename:
MIME Type:
Creator:
Jeremie Courreges-Anglas
Created:
2013-11-06 23:56:52 AEDT
Size:
1.35 KB
patch
obsolete
>Index: configure.ac >=================================================================== >RCS file: /cvs/openssh/configure.ac,v >retrieving revision 1.536 >diff -u -p -r1.536 configure.ac >--- configure.ac 4 Aug 2013 11:48:41 -0000 1.536 >+++ configure.ac 6 Nov 2013 12:51:02 -0000 >@@ -1528,6 +1528,7 @@ dnl Checks for library functions. Ple > AC_CHECK_FUNCS([ \ > arc4random \ > arc4random_buf \ >+ arc4random_stir \ > arc4random_uniform \ > asprintf \ > b64_ntop \ >Index: openbsd-compat/openbsd-compat.h >=================================================================== >RCS file: /cvs/openssh/openbsd-compat/openbsd-compat.h,v >retrieving revision 1.58 >diff -u -p -r1.58 openbsd-compat.h >--- openbsd-compat/openbsd-compat.h 5 Jun 2013 22:30:21 -0000 1.58 >+++ openbsd-compat/openbsd-compat.h 6 Nov 2013 12:51:02 -0000 >@@ -163,10 +163,16 @@ int writev(int, struct iovec *, int); > int getpeereid(int , uid_t *, gid_t *); > #endif > >-#ifndef HAVE_ARC4RANDOM >+#ifdef HAVE_ARC4RANDOM >+/* If the platform doesn't provide arc4random_stir() then its >+ arc4random implementation does not need manual reseeding. */ >+# ifndef HAVE_ARC4RANDOM_STIR >+# define arc4random_stir() ((void)0) >+# endif >+#else > unsigned int arc4random(void); > void arc4random_stir(void); >-#endif /* !HAVE_ARC4RANDOM */ >+#endif /* HAVE_ARC4RANDOM */ > > #ifndef HAVE_ARC4RANDOM_BUF > void arc4random_buf(void *, size_t);
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 2168
: 2372