summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PICA_client.c12
-rw-r--r--PICA_node.c12
2 files changed, 12 insertions, 12 deletions
diff --git a/PICA_client.c b/PICA_client.c
index 7e7dce5..fa52e63 100644
--- a/PICA_client.c
+++ b/PICA_client.c
@@ -720,7 +720,7 @@ static unsigned int procmsg_MSGUTF8(unsigned char* buf, unsigned int nb, void* p
if (mp)
{
- RAND_bytes( mp->tail, 2);
+ RAND_pseudo_bytes( mp->tail, 2);
}
else
return 0;
@@ -745,7 +745,7 @@ unsigned int procmsg_PINGREQ(unsigned char* buf, unsigned int nb, void* p)
if (mp)
{
- RAND_bytes(mp->tail, 2);
+ RAND_pseudo_bytes(mp->tail, 2);
}
else
return 0;
@@ -766,7 +766,7 @@ int PICA_deny_file(struct PICA_c2c *chan)
if (mp)
{
- RAND_bytes(mp->tail, 2);
+ RAND_pseudo_bytes(mp->tail, 2);
}
else
return PICA_ERRNOMEM;
@@ -792,7 +792,7 @@ int PICA_accept_file(struct PICA_c2c *chan, char *filename, unsigned int filenam
if (mp)
{
- RAND_bytes(mp->tail, 2);
+ RAND_pseudo_bytes(mp->tail, 2);
}
else
return PICA_ERRNOMEM;
@@ -1371,7 +1371,7 @@ static int c2n_stage4_nodelistrequest(struct PICA_c2n *c2n)
if (mp)
{
- RAND_bytes(mp->tail, 2);
+ RAND_pseudo_bytes(mp->tail, 2);
}
else
return PICA_ERRNOMEM;
@@ -1558,7 +1558,7 @@ mp = c2n_writebuf_push( cid, PICA_PROTO_CLNODELISTREQ, PICA_PROTO_CLNODELISTREQ_
if (mp)
{
- RAND_bytes(mp->tail, 2);
+ RAND_pseudo_bytes(mp->tail, 2);
}
}
*/
diff --git a/PICA_node.c b/PICA_node.c
index 6b63b71..1d04f4c 100644
--- a/PICA_node.c
+++ b/PICA_node.c
@@ -353,7 +353,7 @@ unsigned int procmsg_NODECONNREQ(unsigned char* buf, unsigned int size, void* pt
return 0;
}
- return 1;
+ return ;
}
@@ -522,7 +522,7 @@ unsigned int procmsg_PINGREQ_client(unsigned char* buf, unsigned int size, void*
if ((mp = client_wbuf_push(c, PICA_PROTO_PINGREP, PICA_PROTO_PINGREP_SIZE)))
{
- RAND_bytes(mp->tail, 2);
+ RAND_pseudo_bytes(mp->tail, 2);
}
else
return 0;
@@ -551,7 +551,7 @@ unsigned int procmsg_PINGREQ_node(unsigned char* buf, unsigned int size, void* p
if ((mp = nodelink_wbuf_push(n, PICA_PROTO_PINGREP, PICA_PROTO_PINGREP_SIZE)))
{
- RAND_bytes(mp->tail, 2);
+ RAND_pseudo_bytes(mp->tail, 2);
}
else
return 0;
@@ -597,7 +597,7 @@ unsigned int procmsg_NODERESP(unsigned char* buf, unsigned int size, void* ptr)
mp = nodelink_wbuf_push(n, PICA_PROTO_NODELISTREQ, PICA_PROTO_NODELISTREQ_SIZE);
if (mp)
{
- RAND_bytes(mp->tail, 2);
+ RAND_pseudo_bytes(mp->tail, 2);
}
else
return 0;
@@ -2002,7 +2002,7 @@ void process_timeouts_c2n()
if ((mp = client_wbuf_push(i_ptr, PICA_PROTO_PINGREQ, PICA_PROTO_PINGREQ_SIZE)))
{
PICA_debug3("sending PINGREQ to %p", i_ptr);
- RAND_bytes(mp->tail, 2);
+ RAND_pseudo_bytes(mp->tail, 2);
i_ptr->tmst = time(0);
i_ptr->disconnect_ticking = 1;
@@ -2061,7 +2061,7 @@ void process_timeouts_n2n()
if ((mp = nodelink_wbuf_push(i_ptr, PICA_PROTO_PINGREQ, PICA_PROTO_PINGREQ_SIZE)))
{
PICA_debug3("sending PINGREQ to node %p", i_ptr);
- RAND_bytes(mp->tail, 2);
+ RAND_pseudo_bytes(mp->tail, 2);
i_ptr->tmst = time(0);
i_ptr->disconnect_ticking = 1;