1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

midltests: make it possible to allow downgrades to NDR32

metze
This commit is contained in:
Stefan Metzmacher 2010-09-29 02:35:54 +02:00
parent 115ad60125
commit 06108687e8

View File

@ -197,13 +197,17 @@ static void change_packet(const char *ctx, BOOL ndr64,
buf[24+0x48] = 0xFF;
printf("%s: disable NDR64\n\n", ctx);
} else if (buf[24] < 3 && ndr64) {
buf[24] = 0x00;
printf("\n%s: got NDR32 downgrade\n\n", ctx);
#ifndef DONOT_FORCE_NDR64
printf("\n\tERROR!!!\n\n");
printf("%s: disable NDR32\n", ctx);
printf("\n");
buf[24] = 0x00;
printf("You may need to run 'vcvarsall.bat amd64' before 'nmake tcp'\n");
} else {
#endif
printf("\n");
} else if (buf[24] == 3 && ndr64) {
printf("%s: got NDR64\n\n", ctx);
} else {
printf("%s: got NDR32\n\n", ctx);
}
//printf("%s: bind with %u pres\n", ctx, buf[24]);
fflush(stdout);