An Xlib version of gpg's pinentry