Bugzilla – Attachment 828 Details for
Bug 968
OpenSSH 3.8p1 PRNG seed extraction failed error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
provide seed_rng() and document why it's needed
openssh-rng-seed.patch (text/plain), 739 bytes, created by
Darren Tucker
on 2005-02-16 13:16:52 AEDT
(
hide
)
Description:
provide seed_rng() and document why it's needed
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2005-02-16 13:16:52 AEDT
Size:
739 bytes
patch
obsolete
>Index: ssh-rand-helper.c >=================================================================== >RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/ssh-rand-helper.c,v >retrieving revision 1.21 >diff -u -p -r1.21 ssh-rand-helper.c >--- ssh-rand-helper.c 16 Feb 2005 02:02:45 -0000 1.21 >+++ ssh-rand-helper.c 16 Feb 2005 02:14:16 -0000 >@@ -888,3 +888,15 @@ main(int argc, char **argv) > > return ret == bytes ? 0 : 1; > } >+ >+/* >+ * We may attempt to re-seed during mkstemp if we are using the one in the >+ * compat library (via mkstemp -> arc4random -> seed_rng) so we need >+ * our own seed_rng(). We must also check that we have enough entropy. >+ */ >+void >+seed_rng(void) >+{ >+ if (!RAND_status()) >+ fatal("Not enough entropy in RNG"); >+}
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 968
:
757
|
758
|
759
|
760
|
827
| 828