Silence compiler warning.
Reported by Steven Van Ingelgem <steven@vaningelgem.be> in <http://thread.gmane.org/gmane.network.ssh.libssh2.devel/2566>.
This commit is contained in:
parent
1f0d47fa92
commit
b78f854d8b
@ -201,16 +201,15 @@ crypt_init_arcfour128(LIBSSH2_SESSION * session,
|
|||||||
unsigned char *secret, int *free_secret,
|
unsigned char *secret, int *free_secret,
|
||||||
int encrypt, void **abstract)
|
int encrypt, void **abstract)
|
||||||
{
|
{
|
||||||
struct crypt_ctx *cctx;
|
|
||||||
char block[8];
|
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
rc = crypt_init (session, method, iv, free_iv, secret, free_secret,
|
rc = crypt_init (session, method, iv, free_iv, secret, free_secret,
|
||||||
encrypt, abstract);
|
encrypt, abstract);
|
||||||
if (rc == 0) {
|
if (rc == 0) {
|
||||||
size_t discard = 1536;
|
struct crypt_ctx *cctx = *(struct crypt_ctx **) abstract;
|
||||||
cctx = *(struct crypt_ctx **) abstract;
|
unsigned char block[8];
|
||||||
for (; discard; discard -= 8)
|
size_t discard = 1536;
|
||||||
|
for (; discard; discard -= 8)
|
||||||
_libssh2_cipher_crypt(&cctx->h, cctx->algo, cctx->encrypt, block);
|
_libssh2_cipher_crypt(&cctx->h, cctx->algo, cctx->encrypt, block);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user