diff options
author | David Benjamin <davidben@chromium.org> | 2014-10-01 05:00:38 +0400 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2014-10-01 06:17:38 +0400 |
commit | fb3ff2c66cc873150022a4ab87ac72dd9d78b549 (patch) | |
tree | 1a1c9e5afda5354c6e3a4f0442699703c9141301 /ssl/s3_srvr.c | |
parent | 5e77bd449e9d7050d59271db157e3fc8957e23e9 (diff) |
Don't compare signed vs. unsigned.
This resolves a pile of MSVC warnings in Chromium.
Change-Id: Ib9a29cb88d8ed8ec4118d153260f775be059a803
Reviewed-on: https://boringssl-review.googlesource.com/1865
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'ssl/s3_srvr.c')
-rw-r--r-- | ssl/s3_srvr.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index b355f5bc..4b814f33 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -1001,12 +1001,13 @@ int ssl3_get_client_hello(SSL *s) /* If it is a hit, check that the cipher is in the list */ if (s->hit && CBS_len(&cipher_suites) > 0) { + size_t j; int found_cipher = 0; unsigned long id = s->session->cipher->id; - for (i=0; i<sk_SSL_CIPHER_num(ciphers); i++) + for (j = 0; j < sk_SSL_CIPHER_num(ciphers); j++) { - c=sk_SSL_CIPHER_value(ciphers,i); + c = sk_SSL_CIPHER_value(ciphers, j); if (c->id == id) { found_cipher = 1; @@ -1683,7 +1684,8 @@ err: int ssl3_send_certificate_request(SSL *s) { unsigned char *p,*d; - int i,j,nl,off,n; + size_t i; + int j,nl,off,n; STACK_OF(X509_NAME) *sk=NULL; X509_NAME *name; BUF_MEM *buf; |