1
1

knownhost.c: Fixed warning that pointer targets differ in signedness

Этот коммит содержится в:
Marc Hoersken 2014-05-18 11:51:19 +02:00
родитель b22b23703c
Коммит 200784c4e7

Просмотреть файл

@ -427,7 +427,8 @@ knownhost_check(LIBSSH2_KNOWNHOSTS *hosts,
we can't match it */
break;
}
libssh2_hmac_sha1_init(&ctx, node->salt, node->salt_len);
libssh2_hmac_sha1_init(&ctx, (unsigned char *)node->salt,
node->salt_len);
libssh2_hmac_update(ctx, (unsigned char *)host,
strlen(host));
libssh2_hmac_final(ctx, hash);