Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106017998
D16860.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D16860.diff
View Options
Index: head/sys/netinet/sctp_os_bsd.h
===================================================================
--- head/sys/netinet/sctp_os_bsd.h
+++ head/sys/netinet/sctp_os_bsd.h
@@ -445,7 +445,7 @@
/*
* SCTP AUTH
*/
-#define SCTP_READ_RANDOM(buf, len) read_random(buf, len)
+#define SCTP_READ_RANDOM(buf, len) arc4rand(buf, len, 0)
/* map standard crypto API names */
#define SCTP_SHA1_CTX SHA1_CTX
Index: head/sys/netinet/tcp_subr.c
===================================================================
--- head/sys/netinet/tcp_subr.c
+++ head/sys/netinet/tcp_subr.c
@@ -1096,7 +1096,7 @@
/* Initialize the TCP logging data. */
tcp_log_init();
#endif
- read_random(&V_ts_offset_secret, sizeof(V_ts_offset_secret));
+ arc4rand(&V_ts_offset_secret, sizeof(V_ts_offset_secret), 0);
if (tcp_soreceive_stream) {
#ifdef INET
@@ -2716,7 +2716,7 @@
if ((V_isn_last_reseed == 0) || ((V_tcp_isn_reseed_interval > 0) &&
(((u_int)V_isn_last_reseed + (u_int)V_tcp_isn_reseed_interval*hz)
< (u_int)ticks))) {
- read_random(&V_isn_secret, sizeof(V_isn_secret));
+ arc4rand(&V_isn_secret, sizeof(V_isn_secret), 0);
V_isn_last_reseed = ticks;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 24, 11:57 PM (4 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15591928
Default Alt Text
D16860.diff (1 KB)
Attached To
Mode
D16860: Use arc4rand() instead of read_random()
Attached
Detach File
Event Timeline
Log In to Comment