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/t1_lib.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/t1_lib.c')
-rw-r--r-- | ssl/t1_lib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 5993ffd7..a14ce5ad 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -894,7 +894,7 @@ unsigned char *ssl_add_clienthello_tlsext(SSL *s, unsigned char *buf, unsigned c int using_ecc = 0; if (s->version >= TLS1_VERSION || SSL_IS_DTLS(s)) { - int i; + size_t i; unsigned long alg_k, alg_a; STACK_OF(SSL_CIPHER) *cipher_stack = SSL_get_ciphers(s); @@ -2883,7 +2883,7 @@ static int tls1_check_sig_alg(CERT *c, X509 *x, int default_nid) static int ssl_check_ca_name(STACK_OF(X509_NAME) *names, X509 *x) { X509_NAME *nm; - int i; + size_t i; nm = X509_get_issuer_name(x); for (i = 0; i < sk_X509_NAME_num(names); i++) { @@ -2911,7 +2911,7 @@ static int ssl_check_ca_name(STACK_OF(X509_NAME) *names, X509 *x) int tls1_check_chain(SSL *s, X509 *x, EVP_PKEY *pk, STACK_OF(X509) *chain, int idx) { - int i; + size_t i; int rv = 0; int check_flags = 0, strict_mode; CERT_PKEY *cpk = NULL; |