pam: add helper function for `interactive` prompt
pam: add helper function for `interactive` prompt

Reduces scope of helper variable required to free the user response.

Yubico/pam-u2f,Yubico/pam-u2f,Yubico/pam-u2f