diff options
author | Nils Larsch <nils@openssl.org> | 2006-03-11 12:18:11 +0000 |
---|---|---|
committer | Nils Larsch <nils@openssl.org> | 2006-03-11 12:18:11 +0000 |
commit | a0aa8b4b6116c186bf1ffbebc9cbd3fabcb429d4 (patch) | |
tree | 81650a394ceb2bdafdde6d68fd4c60f78ba8bcfc /apps | |
parent | 2c059d58d963bf713d33aa4a938133ddd9eecd41 (diff) |
fix signed vs. unsigned warning
Diffstat (limited to 'apps')
-rw-r--r-- | apps/s_client.c | 4 | ||||
-rw-r--r-- | apps/s_server.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/s_client.c b/apps/s_client.c index 138aa3126b..f9527ab5c7 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -224,7 +224,7 @@ static unsigned int psk_client_cb(SSL *ssl, const char *hint, char *identity, /* lookup PSK identity and PSK key based on the given identity hint here */ ret = snprintf(identity, max_identity_len, psk_identity); - if (ret < 0 || ret > max_identity_len) + if (ret < 0 || (unsigned int)ret > max_identity_len) goto out_err; if (c_debug) BIO_printf(bio_c_out, "created identity '%s' len=%d\n", identity, ret); @@ -237,7 +237,7 @@ static unsigned int psk_client_cb(SSL *ssl, const char *hint, char *identity, return 0; } - if (BN_num_bytes(bn) > max_psk_len) + if ((unsigned int)BN_num_bytes(bn) > max_psk_len) { BIO_printf(bio_err,"psk buffer of callback is too small (%d) for key (%d)\n", max_psk_len, BN_num_bytes(bn)); diff --git a/apps/s_server.c b/apps/s_server.c index aeec035c62..72d0b6cd4b 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -889,7 +889,7 @@ int MAIN(int argc, char *argv[]) } else if (strcmp(*argv,"-psk") == 0) { - int i; + size_t i; if (--argc < 1) goto bad; psk_key=*(++argv); |