imtest.c: Handle interactive case where there is data pending in the SSL buffer