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

p11-kit-client.dll for Windows #405

Open
spfendtner opened this issue Jan 8, 2022 · 3 comments
Open

p11-kit-client.dll for Windows #405

spfendtner opened this issue Jan 8, 2022 · 3 comments

Comments

@spfendtner
Copy link

Hi,

I would like to use the p11-kit-client.dll with native Windows. it is included only in the Cygwin build but not within the native MSYS2 builds. As far as I can see, this is by intention. The p11-kit/meson.build skips it on line 90.
Is there any specific reason?
I would like to access a central Hardware Token containing several SSH Keys on a Windows Workstation. Microsofts own Windows SSH does support PKCS11 providers and this is working directly with native Windows Softhsm2 or Yubikey PKCS11 Dlls. It would be great to have it with p11-kit PKCS11 as well.

I've attached a patch file, I can compile the dll with a MSYS2 MinGW 64 environment: p11kitclient-win32-diff.txt

@vjardin
Copy link

vjardin commented Jan 8, 2022

You should have a look to some old pull requests I did few years ago:
#251
It was designed for native compilation with Microsoft C compiler to build the dll on Windows.

@ueno
Copy link
Member

ueno commented Jan 9, 2022

I've attached a patch file, I can compile the dll with a MSYS2 MinGW 64 environment: p11kitclient-win32-diff.txt

@spfendtner I'm in favor of applying this, assuming it works: could you confirm?

@spfendtner
Copy link
Author

I compiled it successfully on Win10 MSYS2 using to changes mentioned. To reproduce:
LDFLAGS+=" -lintl" meson _build
LDFLAGS+=" -lintl" meson compile -C _build

But I've not yet figured out yet how to use it correctly and if it works.

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

No branches or pull requests

3 participants