search for: compute_code

Displaying 1 result from an estimated 1 matches for "compute_code".

Did you mean: compile_code
2013 Jun 27
0
CentOS 5.9 and google-authenticator
...tion code make: *** [test] Error 1 Playing with the code... // Test TIME_SKEW option puts("Testing TIME_SKEW"); for (int i = 0; i < 4; ++i) { set_time((12000 + i)*30); char buf[7]; response = buf; sprintf(response, "%06d", compute_code(binary_secret, binary_secret_len, 11000 + i)); assert(pam_sm_open_session(NULL, 0, targc, targv) == (i >= 2 ? PAM_SUCCESS : PAM_SESSION_ERR)); verify_prompts_shown(expected_good_prompts_shown); } Up to here works fine... set_time(12010 * 30); char buf[7];...