update generated project files

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
5 files changed
tree: 200bad594909f36f927334b7b7bea09395a53da3
  1. .dockerignore
  2. .gitignore
  3. .travis.yml
  4. Dockerfile
  5. LICENSE
  6. Makefile
  7. README.md
  8. VERSION.txt
  9. cgo_helpers.go
  10. cgo_helpers.h
  11. const.go
  12. doc.go
  13. hack/
  14. internal.h
  15. types.go
  16. ykpiv-version.h
  17. ykpiv.go
  18. ykpiv.h
  19. ykpiv.yml
README.md

ykpiv

GoDoc Travis CI

Go bindings for ykpiv so you can write Go to interact with your yubikeys. The C library lives at yubico/yubico-piv-tool.

C Libraries Required for Compilation

Example

package main

import (
	"fmt"
	"log"

	"github.com/jessfraz/ykpiv"
)

func main() {
	s := ykpiv.NewState()
	defer s.Free()

	// Let's get the readers
	readers := make([]byte, 2048)
	len := []uint{2048}
	log.Println("list")
	err := ykpiv.ListReaders([]ykpiv.State{*s}, readers, len)
	if err != 0 {
		log.Fatalf("%s: %#v", ykpiv.Strerror(err), err)
	}

	fmt.Printf("readers: %s\n", string(readers))
}

Starting pcscd

Hopefully your operating system does this for you with a nice init script but if not here you go:

$ sudo LIBCCID_ifdLogLevel=0x000F /usr/sbin/pcscd --foreground --debug --apdu --color
$ sudo /usr/sbin/pcscd --hotplug