From 109d1edac765d04c6c0e6a8e720d65fbe118564c Mon Sep 17 00:00:00 2001 From: Rebecca Mahany-Horton Date: Mon, 23 Sep 2024 11:34:08 -0400 Subject: [PATCH] Add documentation, comment out unused func --- ee/presencedetection/presencedetection_windows.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ee/presencedetection/presencedetection_windows.go b/ee/presencedetection/presencedetection_windows.go index 68fc6066f..b864d6a61 100644 --- a/ee/presencedetection/presencedetection_windows.go +++ b/ee/presencedetection/presencedetection_windows.go @@ -90,6 +90,8 @@ type KeyCredentialVTable struct { GetAttestationAsync uintptr } +// KeyCredentialAttestationResult is defined here: +// https://learn.microsoft.com/en-us/uwp/api/windows.security.credentials.keycredentialattestationresult?view=winrt-26100 type KeyCredentialAttestationResult struct { ole.IInspectable } @@ -303,7 +305,6 @@ func requestCreate(keyCredentialManager *KeyCredentialManager, credentialName st } return pubkeyBytes, keyCredentialObj, nil - } // getAttestationAsync calls Windows.Security.Credentials.KeyCredential.GetAttestationAsync. @@ -392,6 +393,7 @@ func getAttestationAsync(credential *KeyCredential) ([]byte, error) { return attestationBytes, nil } +/* // waitForAsyncOperation should allow us to abstract away the details of waiting for an async operation, // but right now it only works for IsSupportedAsync; it results in an error 3 being returned from RequestCreateAsync. // TODO RM -- fix. @@ -417,3 +419,4 @@ func waitForAsyncOperation(signature string, timeout time.Duration, asyncOperati return asyncOperation.GetResults() } +*/