static int Check(const u_char *md5Seed) /* 客户端校验 */ { char final_str[129]; int value; printf("** 客户端版本:\t%d.%d\n", fillBuf[0x3B], fillBuf[0x3C]); printf("** MD5种子:\t%s\n", formatHex(md5Seed, 16)); value = check_init(dataFile); if (value == -1) { printf("!! 缺少8021x.exe信息,客户端校验无法继续!\n"); return 1; } V2_check(md5Seed, final_str); printf("** V2校验值:\t%s\n", final_str); setProperty(0x17, (u_char *)final_str, 32); check_free(); return 0; }
static int Check(const uint8_t *md5Seed) /* 客户端校验 */ { char final_str[129]; int value; printf("** Client version: \t%d.%d\n", fillBuf[0x3B], fillBuf[0x3C]); printf("** MD5 seed: \t%s\n", formatHex(md5Seed, 16)); value = check_init(dataFile); if (value == -1) { printf("!! 8021x.exe info is insufficient, cannot continue client authentication\n"); return 1; } V2_check(md5Seed, final_str); printf("** V2 checksum: \t%s\n", final_str); setProperty(0x17, (uint8_t *)final_str, 32); check_free(); return 0; }