projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9101cd
)
PR: 2778(part)
author
Dr. Stephen Henson
<steve@openssl.org>
Sat, 31 Mar 2012 18:02:23 +0000
(18:02 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Sat, 31 Mar 2012 18:02:23 +0000
(18:02 +0000)
Submitted by: John Fitzgibbon <john_fitzgibbon@yahoo.com>
Time is always encoded as 4 bytes, not sizeof(Time).
ssl/d1_srvr.c
patch
|
blob
|
history
diff --git
a/ssl/d1_srvr.c
b/ssl/d1_srvr.c
index f7bb18e703a859c7dc2b2460e69c4d9032542cc7..2efaa19ddc503aa2447e3a672c36f1571e22879a 100644
(file)
--- a/
ssl/d1_srvr.c
+++ b/
ssl/d1_srvr.c
@@
-748,7
+748,7
@@
int dtls1_send_server_hello(SSL *s)
p=s->s3->server_random;
Time=(unsigned long)time(NULL); /* Time */
l2n(Time,p);
- RAND_pseudo_bytes(p,SSL3_RANDOM_SIZE-
sizeof(Time)
);
+ RAND_pseudo_bytes(p,SSL3_RANDOM_SIZE-
4
);
/* Do the message type and length last */
d=p= &(buf[DTLS1_HM_HEADER_LENGTH]);