Skip to content

Commit

Permalink
add non darwin files
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Pickett committed Dec 15, 2023
1 parent 308ab38 commit 8239d5d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build darwin
// +build darwin

package main

import (
Expand Down Expand Up @@ -31,7 +34,7 @@ func runSecureEnclave(args []string) error {
}
}

func createSecureEnclaveKey(challenge string) error {
func createSecureEnclaveKey(kryptoChallengeB64 string) error {
// TODO: verify challenge

pubKey, err := secureenclave.CreateKey()
Expand Down
12 changes: 12 additions & 0 deletions cmd/launcher/secure_enclave_other.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//go:build !darwin
// +build !darwin

package main

import (
"fmt"
)

func runSecureEnclave(args []string) error {
return fmt.Errorf("not implemented on non darwin platforms")
}
3 changes: 3 additions & 0 deletions ee/secureenclavesigner/secureenclavesigner.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build darwin

Check failure on line 1 in ee/secureenclavesigner/secureenclavesigner.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest)

: # github.com/kolide/launcher/ee/secureenclavesigner [github.com/kolide/launcher/ee/secureenclavesigner.test]

Check failure on line 1 in ee/secureenclavesigner/secureenclavesigner.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest)

: # github.com/kolide/launcher/ee/secureenclavesigner [github.com/kolide/launcher/ee/secureenclavesigner.test]
// +build darwin

package secureenclavesigner

import (
Expand Down
3 changes: 3 additions & 0 deletions ee/secureenclavesigner/secureenclavesigner_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build darwin
// +build darwin

package secureenclavesigner

import (
Expand Down

0 comments on commit 8239d5d

Please sign in to comment.