mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 04:10:04 +00:00
crypt32/tests: Win 10 accepts carriage returns within a base64 four character block.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6e7d370209
commit
30cdd1fb8c
@ -306,9 +306,6 @@ struct BadString
|
||||
};
|
||||
|
||||
static const struct BadString badStrings[] = {
|
||||
{ "A\r\nA\r\n=\r\n=\r\n", CRYPT_STRING_BASE64 },
|
||||
{ "AA\r\n=\r\n=\r\n", CRYPT_STRING_BASE64 },
|
||||
{ "AA=\r\n=\r\n", CRYPT_STRING_BASE64 },
|
||||
{ "-----BEGIN X509 CRL-----\r\nAA==\r\n", CRYPT_STRING_BASE64X509CRLHEADER },
|
||||
};
|
||||
|
||||
@ -340,7 +337,7 @@ static void testStringToBinaryA(void)
|
||||
ret = pCryptStringToBinaryA(badStrings[i].str, 0, badStrings[i].format,
|
||||
NULL, &bufLen, NULL, NULL);
|
||||
ok(!ret && GetLastError() == ERROR_INVALID_DATA,
|
||||
"Expected ERROR_INVALID_DATA, got ret=%d le=%u\n", ret, GetLastError());
|
||||
"%d: Expected ERROR_INVALID_DATA, got ret=%d le=%u\n", i, ret, GetLastError());
|
||||
}
|
||||
/* Good strings */
|
||||
for (i = 0; i < sizeof(tests) / sizeof(tests[0]); i++)
|
||||
|
Loading…
Reference in New Issue
Block a user