+ if (spa_base64_to_bits ((char *)&challenge, sizeof(challenge),
+ (const char *)(challenge_str))<0)
+ {
+ printf("bad base64 data in challenge: %s\n", challenge_str);
+ exit (1);
+ }
+
spa_build_auth_response (&challenge, &response, username, password);
spa_bits_to_base64 (msgbuf, (unsigned char*)&response,
spa_request_length(&response));
spa_build_auth_response (&challenge, &response, username, password);
spa_bits_to_base64 (msgbuf, (unsigned char*)&response,
spa_request_length(&response));