Skip to content

Commit

Permalink
use post to crate secure enclave key
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Pickett committed Dec 9, 2024
1 parent 257ce99 commit f2192ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ee/desktop/user/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (c *client) DetectPresence(reason string, interval time.Duration) (time.Dur
}

func (c *client) CreateSecureEnclaveKey() (*ecdsa.PublicKey, error) {
resp, err := c.base.Get("http://unix/create_secure_enclave_key")
resp, err := c.base.Post("http://unix/secure_enclave_key", "application/json", http.NoBody)
if err != nil {
return nil, fmt.Errorf("getting secure enclave key: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion ee/desktop/user/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func New(slogger *slog.Logger,
authedMux.HandleFunc("/refresh", userServer.refreshHandler)
authedMux.HandleFunc("/show", userServer.showDesktop)
authedMux.HandleFunc("/detect_presence", userServer.detectPresence)
authedMux.HandleFunc("/create_secure_enclave_key", userServer.createSecureEnclaveKey)
authedMux.HandleFunc("/secure_enclave_key", userServer.createSecureEnclaveKey)

userServer.server = &http.Server{
Handler: userServer.authMiddleware(authedMux),
Expand Down

0 comments on commit f2192ad

Please sign in to comment.