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

Support for LibAssuan file sockets #1

NZSmartie opened this issue Dec 28, 2017 · 0 comments · May be fixed by #6 or #2

Support for LibAssuan file sockets #1

NZSmartie opened this issue Dec 28, 2017 · 0 comments · May be fixed by #6 or #2


Copy link

LibAssuan is used in GnuPG to abstract away file sockets on multiple platforms.
On systems that do not support file sockets (i.e. Windows) they instead create a TCP socket on, saving the human readable port number to the file along with a newline (0x0A) and 16 byte nonce.

nzsmartie@Laptop:~$ xxd /mnt/c/Users/nzsmartie/AppData/Roaming/gnupg/S.gpg-agent
00000000: 3234 3534 340a 50bb 0b13 a7c5 c6c4 da2d  24544.P........-
00000010: 4505 9648 b3da                           E..H..

The nonce is required to be sent as the first payload to the socket when once connected before any messages may be received or sent. (Observations based on source code)

Adding support for LibAssuan would allow windows users to relay their gpg-agent to WSL for example to be used with signing git commits, or SSH keys if configured correctly.

This issue is more informative and I may take up this challenge myself.

NZSmartie referenced this issue in NZSmartie/npiperelay Dec 28, 2017
d0b3rm4n pushed a commit to d0b3rm4n/npiperelay that referenced this issue Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
1 participant