1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-27 13:21:11 +03:00

tests/torture_rekey: Do not mix integer types

In torture_rekey_time(), "long long" was used instead of uint32_t.  This
makes the test to fail in some architectures where the sizes don't match.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Anderson Toshiyuki Sasaki
2019-06-13 18:37:30 +02:00
committed by Andreas Schneider
parent 4fc37bb6fe
commit dc4d4cc8d4

View File

@@ -327,7 +327,7 @@ static void torture_rekey_time(void **state)
int rc;
char data[256];
unsigned int i;
long long time = 3; /* 3 seconds */
uint32_t time = 3; /* 3 seconds */
struct ssh_crypto_struct *c = NULL;
unsigned char *secret_hash = NULL;