Commit 1b2047c5 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Don't round up partitioned premaster secret length if there is only one

digest in use: this caused the PRF to fail for an odd premaster secret
length.
parent eda3766b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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++) {