Silence compiler warning.
Reported by Steven Van Ingelgem <steven@vaningelgem.be> in <http://thread.gmane.org/gmane.network.ssh.libssh2.devel/2566>.
Этот коммит содержится в:
родитель
1f0d47fa92
Коммит
b78f854d8b
@ -201,16 +201,15 @@ crypt_init_arcfour128(LIBSSH2_SESSION * session,
|
||||
unsigned char *secret, int *free_secret,
|
||||
int encrypt, void **abstract)
|
||||
{
|
||||
struct crypt_ctx *cctx;
|
||||
char block[8];
|
||||
int rc;
|
||||
|
||||
rc = crypt_init (session, method, iv, free_iv, secret, free_secret,
|
||||
encrypt, abstract);
|
||||
if (rc == 0) {
|
||||
size_t discard = 1536;
|
||||
cctx = *(struct crypt_ctx **) abstract;
|
||||
for (; discard; discard -= 8)
|
||||
struct crypt_ctx *cctx = *(struct crypt_ctx **) abstract;
|
||||
unsigned char block[8];
|
||||
size_t discard = 1536;
|
||||
for (; discard; discard -= 8)
|
||||
_libssh2_cipher_crypt(&cctx->h, cctx->algo, cctx->encrypt, block);
|
||||
}
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user