Change some "int" variables to "size_t" in ssl3_handshake_mac().
BUG=https://crbug.com/535039 Change-Id: I94d35ae5acee510b1e6874c37f35eddda9906e71 Reviewed-on: https://boringssl-review.googlesource.com/5974 Reviewed-by: David Benjamin <davidben@chromium.org> Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
f0e8d537de
commit
8c9b8783e2
@ -334,7 +334,7 @@ int ssl3_final_finish_mac(SSL *s, const char *sender, int len, uint8_t *p) {
|
|||||||
static int ssl3_handshake_mac(SSL *s, int md_nid, const char *sender, int len,
|
static int ssl3_handshake_mac(SSL *s, int md_nid, const char *sender, int len,
|
||||||
uint8_t *p) {
|
uint8_t *p) {
|
||||||
unsigned int ret;
|
unsigned int ret;
|
||||||
int npad, n;
|
size_t npad, n;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
uint8_t md_buf[EVP_MAX_MD_SIZE];
|
uint8_t md_buf[EVP_MAX_MD_SIZE];
|
||||||
EVP_MD_CTX ctx;
|
EVP_MD_CTX ctx;
|
||||||
@ -357,9 +357,6 @@ static int ssl3_handshake_mac(SSL *s, int md_nid, const char *sender, int len,
|
|||||||
}
|
}
|
||||||
|
|
||||||
n = EVP_MD_CTX_size(&ctx);
|
n = EVP_MD_CTX_size(&ctx);
|
||||||
if (n < 0) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
npad = (48 / n) * n;
|
npad = (48 / n) * n;
|
||||||
if (sender != NULL) {
|
if (sender != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user