Example #1
0
        private async void ButtonClientPINgetRetries_Click(object sender, RoutedEventArgs e)
        {
            GetFirstUSBDevice();
            var res = await con.ClientPINgetRetriesAsync();

            if (res.DeviceStatus == g.FIDO2.CTAP.DeviceStatus.Ok)
            {
                MessageBox.Show($"ClientPINgetRetriesAsync\r\n- Status = {res.CTAPResponse.Status}\r\n- StatusMsg = {res.CTAPResponse.StatusMsg}\r\n- PIN Retry Count = {res.CTAPResponse.RetryCount}");
            }
        }
Example #2
0
        private async void ButtonClientPINgetRetries_Click(object sender, RoutedEventArgs e)
        {
            {
                addLog("<ClientPIN getRetries>");
                var res = await con.ClientPINgetRetriesAsync();

                LogResponse(res.DeviceStatus, res.CTAPResponse);

                if (res?.CTAPResponse != null)
                {
                    addLog($"- RetryCount = {res.CTAPResponse.RetryCount}\r\n");
                }
            }

            /*
             * {
             *  string pin = this.textBoxPIN.Text;
             *  addLog("<ClientPIN getPINToken>");
             *  var res2 = await con.ClientPINgetPINTokenAsync(pin);
             *  LogResponse(res2.DeviceStatus,res2.CTAPResponse);
             * }
             */
        }