diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2018-08-22 08:43:53 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-08-22 08:54:59 +0200 |
commit | 64a354159f0ca4bfe64876b70a1b2941a934cf98 (patch) | |
tree | e5c3c9f1ccd6215f200b5ab5251eefcfa1323d3b /src | |
parent | 0a46690eca88af92e24c4e659dd3066734794f6d (diff) | |
download | libssh-64a354159f0ca4bfe64876b70a1b2941a934cf98.tar.gz libssh-64a354159f0ca4bfe64876b70a1b2941a934cf98.tar.xz libssh-64a354159f0ca4bfe64876b70a1b2941a934cf98.zip |
gssapi: Fix size types
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/gssapi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gssapi.c b/src/gssapi.c index 8e62f6a9..9473fef2 100644 --- a/src/gssapi.c +++ b/src/gssapi.c @@ -188,13 +188,13 @@ int ssh_gssapi_handle_userauth(ssh_session session, const char *user, uint32_t n gss_buffer_desc name_buf; gss_name_t server_name; /* local server fqdn */ OM_uint32 maj_stat, min_stat; - unsigned int i; + size_t i; char *ptr; gss_OID_set supported; /* oids supported by server */ gss_OID_set both_supported; /* oids supported by both client and server */ gss_OID_set selected; /* oid selected for authentication */ int present=0; - int oid_count=0; + size_t oid_count=0; struct gss_OID_desc_struct oid; int rc; @@ -218,7 +218,7 @@ int ssh_gssapi_handle_userauth(ssh_session session, const char *user, uint32_t n maj_stat = gss_indicate_mechs(&min_stat, &supported); for (i=0; i < supported->count; ++i){ ptr = ssh_get_hexa(supported->elements[i].elements, supported->elements[i].length); - SSH_LOG(SSH_LOG_DEBUG, "Supported mech %d: %s", i, ptr); + SSH_LOG(SSH_LOG_DEBUG, "Supported mech %zu: %s", i, ptr); free(ptr); } @@ -291,7 +291,7 @@ int ssh_gssapi_handle_userauth(ssh_session session, const char *user, uint32_t n oid.length = len - 2; gss_test_oid_set_member(&min_stat,&oid,selected,&present); if(present){ - SSH_LOG(SSH_LOG_PACKET, "Selected oid %d", i); + SSH_LOG(SSH_LOG_PACKET, "Selected oid %zu", i); break; } } |