Page MenuHomeFreeBSD

D16860.diff
No OneTemporary

D16860.diff

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

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)

Event Timeline