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:
0b7545b
)
We should check the eight bytes starting at p[-9] for rollback attack
author
Bodo Möller
<bodo@openssl.org>
Thu, 17 Jul 2008 22:11:24 +0000
(22:11 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Thu, 17 Jul 2008 22:11:24 +0000
(22:11 +0000)
detection, or the probability for an erroneous RSA_R_SSLV3_ROLLBACK_ATTACK
will be larger than necessary.
PR: 1695
crypto/rsa/rsa_ssl.c
patch
|
blob
|
history
diff --git
a/crypto/rsa/rsa_ssl.c
b/crypto/rsa/rsa_ssl.c
index ea72629494cffd952d15eff4098b3f554c9ff723..cfeff15bc9c125c30e418a2e5351f019eba40236 100644
(file)
--- a/
crypto/rsa/rsa_ssl.c
+++ b/
crypto/rsa/rsa_ssl.c
@@
-130,7
+130,7
@@
int RSA_padding_check_SSLv23(unsigned char *to, int tlen,
RSAerr(RSA_F_RSA_PADDING_CHECK_SSLV23,RSA_R_NULL_BEFORE_BLOCK_MISSING);
return(-1);
}
- for (k
= -8; k<0
; k++)
+ for (k
= -9; k<-1
; k++)
{
if (p[k] != 0x03) break;
}