28#define CERT_HEADER "-----BEGIN CERTIFICATE-----\r\n"
29#define ALT_CERT_HEADER "-----BEGIN This is some arbitrary text that goes on and on-----\r\n"
30#define CERT_TRAILER "-----END CERTIFICATE-----\r\n"
31#define ALT_CERT_TRAILER "-----END More arbitrary text------\r\n"
32#define CERT_REQUEST_HEADER "-----BEGIN NEW CERTIFICATE REQUEST-----\r\n"
33#define CERT_REQUEST_TRAILER "-----END NEW CERTIFICATE REQUEST-----\r\n"
34#define X509_HEADER "-----BEGIN X509 CRL-----\r\n"
35#define X509_TRAILER "-----END X509 CRL-----\r\n"
36#define CERT_HEADER_NOCR "-----BEGIN CERTIFICATE-----\n"
37#define CERT_TRAILER_NOCR "-----END CERTIFICATE-----\n"
38#define CERT_REQUEST_HEADER_NOCR "-----BEGIN NEW CERTIFICATE REQUEST-----\n"
39#define CERT_REQUEST_TRAILER_NOCR "-----END NEW CERTIFICATE REQUEST-----\n"
40#define X509_HEADER_NOCR "-----BEGIN X509 CRL-----\n"
41#define X509_TRAILER_NOCR "-----END X509 CRL-----\n"
54 "abcdefghijlkmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890"
55 "abcdefghijlkmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890"
56 "abcdefghijlkmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890";
58 "abcdefghijlkmnopqrstuvwxyz01234567890ABCDEFGHI";
60static const BYTE toEncode6[] =
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
67 "YWJjZGVmZ2hpamxrbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5MEFCQ0RFRkdISUpL\r\n"
68 "TE1OT1BRUlNUVVZXWFlaMDEyMzQ1Njc4OTBhYmNkZWZnaGlqbGttbm9wcXJzdHV2\r\n"
69 "d3h5ejAxMjM0NTY3ODkwQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVowMTIzNDU2\r\n"
70 "Nzg5MGFiY2RlZmdoaWpsa21ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OTBBQkNERUZH\r\n"
71 "SElKS0xNTk9QUVJTVFVWV1hZWjAxMjM0NTY3ODkwAA==\r\n" },
73 "YWJjZGVmZ2hpamxrbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5MEFCQ0RFRkdISQA=\r\n" },
75 "YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh\r\n"
84 "YWJjZGVmZ2hpamxrbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5MEFCQ0RFRkdISUpL\n"
85 "TE1OT1BRUlNUVVZXWFlaMDEyMzQ1Njc4OTBhYmNkZWZnaGlqbGttbm9wcXJzdHV2\n"
86 "d3h5ejAxMjM0NTY3ODkwQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVowMTIzNDU2\n"
87 "Nzg5MGFiY2RlZmdoaWpsa21ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OTBBQkNERUZH\n"
88 "SElKS0xNTk9QUVJTVFVWV1hZWjAxMjM0NTY3ODkwAA==\n" },
90 "YWJjZGVmZ2hpamxrbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5MEFCQ0RFRkdISQA=\n" },
92 "YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh\n"
112 DWORD strLen, strLen2, required;
121 required +=
strlen(trailer);
126 ok(strLen == required,
"Unexpected required length %lu, expected %lu.\n", required, strLen);
131 ok(strLen == strLen2,
"Unexpected required length %lu, expected %lu.\n", strLen2, strLen);
133 strLen2 = strLen - 1;
136 ok(strLen == strLen2,
"Unexpected required length %lu, expected %lu.\n", strLen2, strLen);
141 strLen2 = strLen - 1;
146 ok(strLen2 == strLen ||
broken(strLen2 == strLen - 1),
"Expected length %ld, got %ld\n", strLen, strLen2);
148 ok(
str[0] ==
header[0],
"Unexpected buffer contents %#x.\n",
str[0]);
154 ok(strLen2 == strLen - 1,
"Expected length %ld, got %ld\n", strLen - 1, strLen2);
173 WCHAR *headerW, *trailerW, required;
174 DWORD strLen, strLen2;
183 required +=
strlen(trailer);
188 ok(strLen == required,
"Unexpected required length %lu, expected %u.\n", strLen, required);
194 ok(strLen == strLen2,
"Unexpected required length.\n");
196 strLen2 = strLen - 1;
199 ok(strLen == strLen2,
"Unexpected required length.\n");
201 strLen2 = strLen - 1;
204 ok(strLen == strLen2,
"Unexpected required length.\n");
211 strLen2 = strLen - 1;
217 ok(
strW[0] == 0x1234,
"Unexpected buffer contents %#x.\n",
strW[0]);
219 ok(
strW[0] == 0x1234 ||
broken(
strW[0] != 0x1234) ,
"Unexpected buffer contents %#x.\n",
strW[0]);
225 ok(strLen2 == strLen - 1,
"Expected length %ld, got %ld\n", strLen - 1, strLen);
250 strLen2 = binary_len * 3;
254 strLen2 += (binary_len + 7) / 16;
259 strLen2 += (binary_len + 7) / 16;
260 strLen2 += binary_len / 16 + 1;
272 static const DWORD sizes[] = { 3, 4, 7, 8, 12, 15, 16, 17, 256 };
273 static const WCHAR hexdig[] =
L"0123456789abcdef";
282 "Expected ERROR_INVALID_PARAMETER, got %ld\n",
GetLastError());
287 "Expected ERROR_INVALID_PARAMETER, got %ld\n",
GetLastError());
288 ok(strLen == 123,
"Unexpected length.\n");
296 ok(strLen == 123,
"Unexpected length.\n");
313 ok(strLen == strLen2,
"Expected length %lu, got %lu\n", strLen, strLen2);
326 ok(strLen == strLen2,
"Expected length %lu, got %lu\n", strLen, strLen2);
367 ok(strLen == strLen2,
"Expected length %ld, got %ld\n", strLen, strLen2);
400 ok(
ret,
"Failed to get string length.\n");
401 ok(strLen == 9 ||
broken(strLen == 7),
"Unexpected string length %ld.\n", strLen);
404 win_skip(
"CryptBinaryToString(HEXRAW) not supported\n");
417 ok(strLen > 0,
"Unexpected string length.\n");
422 ok(strLen > 0,
"Unexpected string length.\n");
434 strLen2 +=
sizeof(
input) * 2 + 1;
435 ok(strLen == strLen2,
"Expected length %ld, got %ld\n", strLen2, strLen);
467 ok(strLen == strLen2,
"Expected length %ld, got %ld\n", strLen, strLen2);
474 ok(strLen == strLen2,
"Expected length %ld, got %ld.\n", strLen, strLen2);
475 ok(!
memcmp(hex_a, cmp_a, strLen),
"Unexpected value.\n");
482 ok(strLen == strLen2,
"Expected length %ld, got %ld\n", strLen, strLen2);
488 ok(strLen == strLen2,
"Expected length %ld, got %ld.\n", strLen, strLen2);
500 ok(strLen == strLen2,
"Expected length %ld, got %ld\n", strLen, strLen2);
504 memset(hex_a, 0xcc, strLen + 3);
508 ok(strLen == strLen2,
"Expected length %ld, got %ld.\n", strLen2, strLen);
510 strLen = (strLen - 1) & ~1;
511 ok(!
memcmp(hex_a, cmp_a, strLen),
"Unexpected value\n");
512 ok(!hex_a[strLen],
"got %#x.\n", (
unsigned char)hex_a[strLen]);
513 ok((
unsigned char)hex_a[strLen + 1] == 0xcc,
"got %#x.\n", (
unsigned char)hex_a[strLen + 1]);
517 memset(hex_a, 0xcc, strLen2);
520 ok(strLen == 1,
"got %ld.\n", strLen);
521 ok((
unsigned char)hex_a[0] == 0xcc,
"got %#x.\n", (
unsigned char)hex_a[strLen - 1]);
524 memset(hex_a, 0xcc, strLen2);
527 ok(strLen == 2,
"got %ld.\n", strLen);
528 ok((
unsigned char)hex_a[0] == 0xcc,
"got %#x.\n", (
unsigned char)hex_a[0]);
529 ok((
unsigned char)hex_a[1] == 0xcc,
"got %#x.\n", (
unsigned char)hex_a[1]);
532 memset(hex_a, 0xcc, strLen2);
535 ok(strLen == 3,
"got %ld.\n", strLen);
536 ok(hex_a[0] == 0x30,
"got %#x.\n", (
unsigned char)hex_a[0]);
537 ok(hex_a[1] == 0x30,
"got %#x.\n", (
unsigned char)hex_a[1]);
538 ok(!hex_a[2],
"got %#x.\n", (
unsigned char)hex_a[2]);
554 ok(strLen > 0,
"Unexpected string length.\n");
560 ok(strLen == strLen2,
"%lu: Expected length %ld, got %ld\n",
i, strLen2, strLen);
589 else if (!((
j + 1) % 8))
610 ok(strLen == strLen2,
"%lu: Expected length %ld, got %ld\n",
i, strLen, strLen2);
617 ok(strLen == strLen2,
"%lu: Expected length %ld, got %ld\n",
i, strLen, strLen2);
628 ok(strLen == strLen2,
"%lu: Expected length %ld, got %ld\n",
i, strLen, strLen2);
640 static const char garbage[] =
"garbage\r\n";
668 DWORD skipped, usedFormat;
674 ok(bufLen == expectedLen,
675 "Expected length %ld, got %ld\n", expectedLen, bufLen);
679 &skipped, &usedFormat);
681 ok(skipped == 0,
"Expected skipped 0, got %ld\n", skipped);
682 ok(usedFormat == expectedFormat,
"Expected format %ld, got %ld\n",
683 expectedFormat, usedFormat);
701 "Expected !ret and last error ERROR_INVALID_DATA, got ret=%d, error=%ld\n",
ret,
GetLastError());
707 DWORD skipped, usedFormat;
710 &skipped, &usedFormat);
713 "Expected %d characters of \"%s\" skipped when trying format %08lx, got %ld (used format is %08lx)\n",
714 lstrlenA(garbage),
str, useFormat, skipped, usedFormat);
726 DWORD bufLen =
sizeof(
buf)-1, fmtUsed = 0xdeadbeef;
732 ok(
ret == retA && bufLen == bufLenA &&
memcmp(bufA,
buf, bufLen) == 0
733 && fmtUsed == fmtUsedA,
"base64 \"%s\" len %d: W and A differ\n",
strA,
len);
739 DWORD bufLen =
sizeof(
buf)-1, fmtUsed = 0xdeadbeef;
747 "base64 \"%s\" len %d: expected \"%s\", got \"%s\" (ret %d, le %ld)\n",
750 ok(fmtUsed ==
fmt,
"base64 \"%s\" len %d: expected fmt %ld, used %ld\n",
754 "base64 \"%s\" len %d: expected failure, got \"%s\" (ret %d, le %ld)\n",
814 c = *(*(
const char **)
str)++;
816 return c ?
c : 0xffff;
821 if (
c >=
'0' &&
c <=
'9')
824 if (
c >=
'a' &&
c <=
'f')
825 return c -
'a' + 0xa;
832 unsigned int byte_idx = 0;
836 if (!
str || !hex_len)
862 if (
hex && byte_idx < *hex_len)
863 hex[byte_idx] = (d1 << 4) | d2;
870 }
while (
c ==
'-' ||
c ==
',');
884 if (
hex && byte_idx > *hex_len)
897 static const char *string_hex_tests[] =
917 "010203040506070809q",
920 DWORD skipped,
flags, expected_err, expected_len, expected_skipped, expected_flags;
928 "Expected ERROR_INVALID_PARAMETER, got ret=%d le=%lu\n",
ret,
GetLastError());
931 "Expected ERROR_INVALID_PARAMETER, got ret=%d le=%lu\n",
ret,
GetLastError());
936 "Expected ERROR_INVALID_DATA, got ret=%d le=%lu\n",
ret,
GetLastError());
941 "Expected ERROR_INVALID_DATA, got ret=%d le=%lu\n",
ret,
GetLastError());
949 "%ld: Expected ERROR_INVALID_DATA, got ret=%d le=%lu\n",
i,
ret,
GetLastError());
1005 ok(!
ret && bufLen == 4 &&
buf[0] == 0,
1006 "Expected ret 0, bufLen 4, buf[0] '\\0', got ret %d, bufLen %ld, buf[0] '%c'\n",
1118 ok(bufLen == 1,
"got length %lu.\n", bufLen);
1123 ok(bufLen == 8,
"got length %lu.\n", bufLen);
1128 ok(bufLen == 8,
"got length %lu.\n", bufLen);
1133 ok(!bufLen,
"got length %lu.\n", bufLen);
1139 ok(bufLen == 8,
"got length %lu.\n", bufLen);
1140 ok(
buf[0] == 1,
"got buf[0] %#x.\n",
buf[0]);
1146 ok(bufLen == 1,
"got length %lu.\n", bufLen);
1147 ok(
buf[0] == 1,
"got buf[0] %#x.\n",
buf[0]);
1153 ok(bufLen == 8,
"got length %lu.\n", bufLen);
1154 ok(
buf[0] == 1,
"got buf[0] %#x.\n",
buf[0]);
1155 ok(
buf[1] == 0xcc,
"got buf[1] %#x.\n",
buf[1]);
1161 ok(bufLen == 8,
"got length %lu.\n", bufLen);
1162 ok(
buf[0] == 1,
"got buf[0] %#x.\n",
buf[0]);
1163 ok(
buf[1] == 0xcc,
"got buf[1] %#x.\n",
buf[1]);
1167 skipped = 0xdeadbeef;
1171 ok(bufLen == 1,
"got length %lu.\n", bufLen);
1172 ok(
buf[0] == 1,
"got buf[0] %#x.\n",
buf[0]);
1174 ok(!skipped,
"got skipped %lu.\n", skipped);
1178 for (wide = 0; wide < 2; ++wide)
1184 while ((str_w[
j] = string_hex_tests[
i][
j]))
1190 expected_len = 0xdeadbeef;
1191 expected_skipped = 0xdeadbeef;
1192 expected_flags = 0xdeadbeef;
1193 expected_err =
string_to_hex(wide ? (
void *)str_w : (
void *)string_hex_tests[
i], wide, 0,
NULL,
1194 &expected_len, &expected_skipped, &expected_flags);
1196 bufLen = 0xdeadbeef;
1197 skipped = 0xdeadbeef;
1205 ok(bufLen == expected_len,
"got length %lu.\n", bufLen);
1206 ok(skipped == expected_skipped,
"got skipped %lu.\n", skipped);
1207 ok(
flags == expected_flags,
"got flags %lu.\n",
flags);
1216 expected_skipped = 0xdeadbeef;
1217 expected_flags = 0xdeadbeef;
1219 &expected_len, &expected_skipped, &expected_flags);
1223 skipped = 0xdeadbeef;
1232 ok(bufLen == expected_len,
"got length %lu.\n", bufLen);
1238 ok(bufLen == expected_len,
"got length %lu.\n", bufLen);
1239 ok(skipped == expected_skipped,
"got skipped %lu.\n", skipped);
1240 ok(
flags == expected_flags,
"got flags %lu.\n",
flags);
1248 skipped = 0xdeadbeef;
1253 ok(bufLen == 1,
"got length %lu.\n", bufLen);
1254 ok(!skipped,
"got skipped %lu.\n", skipped);
1256 ok(
buf[0] == 1,
"got buf[0] %#x.\n",
buf[0]);
1257 ok(
buf[1] == 0xcc,
"got buf[1] %#x.\n",
buf[1]);
1261 skipped = 0xdeadbeef;
1266 ok(bufLen == 1,
"got length %lu.\n", bufLen);
1267 ok(!skipped,
"got skipped %lu.\n", skipped);
1269 ok(
buf[0] == 1,
"got buf[0] %#x.\n",
buf[0]);
1270 ok(
buf[1] == 0xcc,
"got buf[1] %#x.\n",
buf[1]);
1274 skipped = 0xdeadbeef;
1279 ok(bufLen == 1,
"got length %lu.\n", bufLen);
1280 ok(!skipped,
"got skipped %lu.\n", skipped);
1282 ok(
buf[0] == 1,
"got buf[0] %#x.\n",
buf[0]);
1283 ok(
buf[1] == 0xcc,
"got buf[1] %#x.\n",
buf[1]);
1287 skipped = 0xdeadbeef;
1291 ok(bufLen == 1,
"got length %lu.\n", bufLen);
1293 ok(
buf[0] == 1,
"got buf[0] %#x.\n",
buf[0]);
1294 ok(
buf[1] == 0xcc,
"got buf[1] %#x.\n",
buf[1]);
1299 for (
i = 1;
i < 128; ++
i)
1303 for (wide = 0; wide < 2; ++wide)
1325 ok(bufLen == 1,
"got length %lu.\n", bufLen);
1329 ok(!
buf[0],
"got buf[0] %#x.\n",
buf[0]);
1330 ok(
buf[1] == 0xcc,
"got buf[1] %#x.\n",
buf[1]);
1338 ok(
buf[1] == 0xcc,
"got buf[0] %#x.\n",
buf[1]);
1342 ok(
buf[0] == 0xcc,
"got buf[0] %#x.\n",
buf[0]);
int strcmp(const char *String1, const char *String2)
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
ACPI_SIZE strlen(const char *String)
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
BOOL WINAPI CryptBinaryToStringW(const BYTE *pbBinary, DWORD cbBinary, DWORD dwFlags, LPWSTR pszString, DWORD *pcchString)
BOOL WINAPI CryptStringToBinaryW(LPCWSTR pszString, DWORD cchString, DWORD dwFlags, BYTE *pbBinary, DWORD *pcbBinary, DWORD *pdwSkip, DWORD *pdwFlags)
BOOL WINAPI CryptStringToBinaryA(LPCSTR pszString, DWORD cchString, DWORD dwFlags, BYTE *pbBinary, DWORD *pcbBinary, DWORD *pdwSkip, DWORD *pdwFlags)
#define CERT_REQUEST_HEADER
BOOL WINAPI CryptBinaryToStringA(const BYTE *pbBinary, DWORD cbBinary, DWORD dwFlags, LPSTR pszString, DWORD *pcchString)
#define CERT_REQUEST_TRAILER
#define ERROR_INVALID_PARAMETER
#define MultiByteToWideChar
GLenum GLuint GLenum GLsizei const GLchar * buf
GLenum GLenum GLenum input
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
int WINAPI lstrlenA(LPCSTR lpString)
void __cdecl void __cdecl void __cdecl void __cdecl void __cdecl winetest_push_context(const char *fmt,...) __WINE_PRINTF_ATTR(1
void __cdecl void __cdecl void __cdecl void __cdecl void __cdecl void winetest_pop_context(void)
static const BYTE toEncode4[]
static void decodeBase64WithLen(LPCSTR str, int len, LPCSTR expected, int le)
static void encodeAndCompareBase64_A(const BYTE *toEncode, DWORD toEncodeLen, DWORD format, const char *expected, const char *header, const char *trailer)
static void test_CryptStringToBinary(void)
static const struct BinTests tests[]
#define CERT_REQUEST_HEADER_NOCR
static DWORD binary_to_hex_len(DWORD binary_len, DWORD flags)
static const BYTE toEncode6[]
static void decodeBase64WithFmt(LPCSTR str, DWORD fmt, LPCSTR expected, int le)
#define CERT_TRAILER_NOCR
static const BYTE toEncode1[]
static void encode_compare_base64_W(const BYTE *toEncode, DWORD toEncodeLen, DWORD format, const WCHAR *expected, const char *header, const char *trailer)
static const struct BadString badStrings[]
static void decodeBase64WithLenFmt(LPCSTR str, int len, DWORD fmt, LPCSTR expected, int le, BOOL isBroken)
static const BYTE toEncode2[]
static const BYTE toEncode5[]
static void decodeAndCompareBase64_A(LPCSTR toDecode, LPCSTR header, LPCSTR trailer, DWORD useFormat, DWORD expectedFormat, const BYTE *expected, DWORD expectedLen)
static BOOL is_hex_string_special_char(WCHAR c)
static BYTE digit_from_char(WCHAR c)
static void decodeBase64WithLenFmtW(LPCSTR strA, int len, DWORD fmt, BOOL retA, const BYTE *bufA, DWORD bufLenA, DWORD fmtUsedA)
static WCHAR * strdupAtoW(const char *str)
static const struct BinTests testsNoCR[]
static LONG string_to_hex(const void *str, BOOL wide, DWORD len, BYTE *hex, DWORD *hex_len, DWORD *skipped, DWORD *ret_flags)
static void decodeBase64WithLenBroken(LPCSTR str, int len, LPCSTR expected, int le)
#define CERT_REQUEST_TRAILER_NOCR
static WCHAR wchar_from_str(BOOL wide, const void **str, DWORD *len)
static void test_CryptBinaryToString(void)
#define X509_TRAILER_NOCR
#define cmp(status, error)
static const struct @594 sizes[]
DWORD WINAPI GetLastError(void)
#define CRYPT_STRING_BINARY
#define CRYPT_STRING_BASE64X509CRLHEADER
#define CRYPT_STRING_BASE64REQUESTHEADER
#define CRYPT_STRING_BASE64HEADER
#define CRYPT_STRING_BASE64
#define CRYPT_STRING_BASE64_ANY
#define CRYPT_STRING_HEXRAW
#define CRYPT_STRING_NOCRLF
#define CRYPT_STRING_NOCR
#define ERROR_INVALID_DATA