fido_nofido.go 629 B

123456789101112131415161718192021222324252627282930
  1. //go:build nofido
  2. package fido
  3. import (
  4. "fmt"
  5. )
  6. type Device struct {
  7. Info struct {
  8. AAGUID []byte
  9. }
  10. }
  11. func Setup(rpID, pin string, cdh []byte, device Device) ([]byte, error) {
  12. return []byte{}, fmt.Errorf("Compiled without FIDO2 support")
  13. }
  14. func GetHmacSecret(rpID, pin string, cdh, credentialID, salt []byte, device Device) ([]byte, error) {
  15. return []byte{}, fmt.Errorf("Compiled without FIDO2 support")
  16. }
  17. func GetPluggedDevices() ([]Device, error) {
  18. return []Device{}, fmt.Errorf("Compiled without FIDO2 support")
  19. }
  20. func GetUUID() ([]byte, error) {
  21. return []byte{}, fmt.Errorf("Compiled without FIDO2 support")
  22. }