Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect PINENTRY_USER_DATA=USE_CURSES=1 #26

Open
jgresty opened this issue Apr 22, 2022 · 3 comments
Open

Respect PINENTRY_USER_DATA=USE_CURSES=1 #26

jgresty opened this issue Apr 22, 2022 · 3 comments

Comments

@jgresty
Copy link

jgresty commented Apr 22, 2022

pinentry-mac falls back to pinentry-curses if the env var PINENTRY_USER_DATA=USE_CURSES=1 is set, however pinentry-touchid does not respect this and will always prompt for touchid.

This is needed when pinentry is requested over a remote connection where the user has no physical access to the system, ie ssh sessions.

@jorgelbg
Copy link
Owner

jorgelbg commented Aug 4, 2022

Oh, interesting I hadn't considered this use case TBH 😅.

@Myridium
Copy link

Myridium commented Aug 7, 2022

Is this option unique to pinentry-mac or is it something which is respected by other pinentry programs too?

@jgresty
Copy link
Author

jgresty commented Aug 8, 2022

PINENTRY_USER_DATA is used by gpg-agent to pass data to the underlying pinentry process, however USE_CURSES is unique to macos as pinentry normally uses the DISPLAY variable on other platforms.

https://github.com/GPGTools/pinentry/blob/b7195e9d4c098ea315e18ade3b4dab210492fadf/macosx/main.m#L67

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants