projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8537943
)
comments
author
Bodo Möller
<bodo@openssl.org>
Wed, 12 Feb 2003 14:17:41 +0000
(14:17 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Wed, 12 Feb 2003 14:17:41 +0000
(14:17 +0000)
ssl/s3_enc.c
patch
|
blob
|
history
diff --git
a/ssl/s3_enc.c
b/ssl/s3_enc.c
index
35fde29
..
559924d
100644
(file)
--- a/
ssl/s3_enc.c
+++ b/
ssl/s3_enc.c
@@
-474,6
+474,7
@@
int ssl3_enc(SSL *s, int send)
ssl3_send_alert(s,SSL3_AL_FATAL,SSL_AD_DECRYPTION_FAILED);
return 0;
}
ssl3_send_alert(s,SSL3_AL_FATAL,SSL_AD_DECRYPTION_FAILED);
return 0;
}
+ /* otherwise, rec->length >= bs */
}
EVP_Cipher(ds,rec->data,rec->input,l);
}
EVP_Cipher(ds,rec->data,rec->input,l);
@@
-482,7
+483,7
@@
int ssl3_enc(SSL *s, int send)
{
i=rec->data[l-1]+1;
/* SSL 3.0 bounds the number of padding bytes by the block size;
{
i=rec->data[l-1]+1;
/* SSL 3.0 bounds the number of padding bytes by the block size;
- * padding bytes (except th
at last
) are arbitrary */
+ * padding bytes (except th
e last one
) are arbitrary */
if (i > bs)
{
/* Incorrect padding. SSLerr() and ssl3_alert are done
if (i > bs)
{
/* Incorrect padding. SSLerr() and ssl3_alert are done
@@
-491,6
+492,7
@@
int ssl3_enc(SSL *s, int send)
* (see http://www.openssl.org/~bodo/tls-cbc.txt) */
return -1;
}
* (see http://www.openssl.org/~bodo/tls-cbc.txt) */
return -1;
}
+ /* now i <= bs <= rec->length */
rec->length-=i;
}
}
rec->length-=i;
}
}