obsoleted wait_encrypt_prompt() in testapi