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:
55a47cd
)
Don't round up partitioned premaster secret length if there is only one
author
Dr. Stephen Henson
<steve@openssl.org>
Tue, 31 May 2011 10:35:22 +0000
(10:35 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Tue, 31 May 2011 10:35:22 +0000
(10:35 +0000)
digest in use: this caused the PRF to fail for an odd premaster secret
length.
ssl/t1_enc.c
patch
|
blob
|
history
diff --git
a/ssl/t1_enc.c
b/ssl/t1_enc.c
index 36128dcf6b5e9d9c744b0b7e9f4807edc32eb81d..d180bfc95c4ba094f84223b1af8864cdd17c1a99 100644
(file)
--- a/
ssl/t1_enc.c
+++ b/
ssl/t1_enc.c
@@
-265,6
+265,8
@@
static int tls1_PRF(long digest_mask,
if ((m<<TLS1_PRF_DGST_SHIFT) & digest_mask) count++;
}
len=slen/count;
+ if (count == 1)
+ slen = 0;
S1=sec;
memset(out1,0,olen);
for (idx=0;ssl_get_handshake_digest(idx,&m,&md);idx++) {