Comments (6)
So managed to make it work on Windows, here is a short instruction
https://github.com/luc-lynx/go-ykpiv#running-on-windows
and you must also add the following lines to the ykpiv.go
:
#cgo windows CFLAGS: -I./win/include/ykpiv/
#cgo windows LDFLAGS: ./win/lib/libykpiv.dll.a
from go-ykpiv.
Hey, I've not. I don't have any Windows machines handy, and I don't have a ton of time. If someone can track down why this is happening, I'd take patches, but I've never spent time getting this working on Windows.
FWIW, the #cgo
directives in slot.go
like the #cgo linux
or osx
may need to be set for Windows, or maybe it's something with regards to not having the Windows .dll
files. Not sure.
I don't know much about the Windows build toolchains, nor how well cgo cross-compiles work when you're targeting Windows :)
from go-ykpiv.
Scratch that I see your Windows commit. I pushed that as 3d7808f
from go-ykpiv.
hey @paultag are you able follow up on this at all? I'm also trying to compile for windows and get the same error. it looks like the cgo don't include anything for windows. I could maybe help address that
from go-ykpiv.
I'm still interested solving this. Now I use Node+Graphene(Electron) for my solution, but it had also some problems with Windows. Better solution for my project would be Golang. Haven't had time to play with this, so @ryandeivert if you have some ideas ...
from go-ykpiv.
@luc-lynx awsome! I have the change locally; do you want to send a PR I can merge for this or should I just push the lines as is? Thank you for your help!
from go-ykpiv.
Related Issues (16)
- Release! HOT 8
- Add a helper to initialize the token HOT 5
- Error building: could not determine kind of name for C.ykpiv_attest HOT 2
- SSL cert expired HOT 5
- Tag v1.2.0? HOT 3
- Doing ECDH using Decrypt
- More flexible PIN entry
- Well, I've *only* pinged you like 100 times... HOT 1
- Question on attestation.. HOT 4
- Support for centos HOT 1
- Options.Verbose is a bool but libykpiv has levels >1
- How to use
- how to check is yubikey still plugged
- ykls panics when a non-YubiKey smartcard reader is present HOT 2
- Add the ability to write a new pivman config object to the token
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-ykpiv.