* misc.c (setup_pinentry_env): New.