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

Open
NZSmartie opened this issue Dec 28, 2017 · 0 comments

Comments

@NZSmartie
Copy link

commented Dec 28, 2017

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 127.0.0.1, 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

@NZSmartie NZSmartie referenced a pull request that will close this issue Dec 28, 2017

Lexicality added a commit to Lexicality/wsl-relay that referenced this issue Apr 18, 2019

@Lexicality Lexicality referenced a pull request that will close this issue Apr 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.