qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

crypto: rename OUT to out in xts test to avoid clash on MinGW

On MinGW one of the system headers already has "OUT" defined
which causes a compile failure of the test suite. Rename the
test suite var to 'out' to avoid this clash

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

+9 -9
+9 -9
tests/test-crypto-xts.c
··· 340 340 static void test_xts(const void *opaque) 341 341 { 342 342 const QCryptoXTSTestData *data = opaque; 343 - unsigned char OUT[512], Torg[16], T[16]; 343 + unsigned char out[512], Torg[16], T[16]; 344 344 uint64_t seq; 345 345 int j; 346 346 unsigned long len; ··· 371 371 xts_encrypt(&aesdata, &aestweak, 372 372 test_xts_aes_encrypt, 373 373 test_xts_aes_decrypt, 374 - T, data->PTLEN, OUT, data->PTX); 374 + T, data->PTLEN, out, data->PTX); 375 375 } else { 376 376 xts_encrypt(&aesdata, &aestweak, 377 377 test_xts_aes_encrypt, 378 378 test_xts_aes_decrypt, 379 - T, len, OUT, data->PTX); 379 + T, len, out, data->PTX); 380 380 xts_encrypt(&aesdata, &aestweak, 381 381 test_xts_aes_encrypt, 382 382 test_xts_aes_decrypt, 383 - T, len, &OUT[len], &data->PTX[len]); 383 + T, len, &out[len], &data->PTX[len]); 384 384 } 385 385 386 - g_assert(memcmp(OUT, data->CTX, data->PTLEN) == 0); 386 + g_assert(memcmp(out, data->CTX, data->PTLEN) == 0); 387 387 388 388 memcpy(T, Torg, sizeof(T)); 389 389 if (j == 0) { 390 390 xts_decrypt(&aesdata, &aestweak, 391 391 test_xts_aes_encrypt, 392 392 test_xts_aes_decrypt, 393 - T, data->PTLEN, OUT, data->CTX); 393 + T, data->PTLEN, out, data->CTX); 394 394 } else { 395 395 xts_decrypt(&aesdata, &aestweak, 396 396 test_xts_aes_encrypt, 397 397 test_xts_aes_decrypt, 398 - T, len, OUT, data->CTX); 398 + T, len, out, data->CTX); 399 399 xts_decrypt(&aesdata, &aestweak, 400 400 test_xts_aes_encrypt, 401 401 test_xts_aes_decrypt, 402 - T, len, &OUT[len], &data->CTX[len]); 402 + T, len, &out[len], &data->CTX[len]); 403 403 } 404 404 405 - g_assert(memcmp(OUT, data->PTX, data->PTLEN) == 0); 405 + g_assert(memcmp(out, data->PTX, data->PTLEN) == 0); 406 406 } 407 407 } 408 408