mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-29 00:34:33 +02:00
add windows preprocessor definition in key_lookup
This commit is contained in:
parent
eb2f6238fb
commit
302dc2f2b4
@ -791,11 +791,12 @@ key_lookup(fido_dev_t *dev, const char *application, const uint8_t *user_id,
|
||||
skdebug(__func__, "fido_assert_new failed");
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* generate an invalid signature on FIDO2 tokens */
|
||||
if ((r = fido_assert_set_clientdata(assert, message,
|
||||
sizeof(message))) != FIDO_OK) {
|
||||
sizeof(message))) != FIDO_OK) {
|
||||
skdebug(__func__, "fido_assert_set_clientdata: %s",
|
||||
fido_strerr(r));
|
||||
fido_strerr(r));
|
||||
goto out;
|
||||
}
|
||||
if ((r = fido_assert_set_rp(assert, application)) != FIDO_OK) {
|
||||
@ -814,10 +815,12 @@ key_lookup(fido_dev_t *dev, const char *application, const uint8_t *user_id,
|
||||
skdebug(__func__, "fido_assert_set_uv: %s", fido_strerr(r));
|
||||
goto out;
|
||||
}
|
||||
#ifndef WINDOWS
|
||||
if ((r = fido_dev_get_assert(dev, assert, pin)) != FIDO_OK) {
|
||||
skdebug(__func__, "fido_dev_get_assert: %s", fido_strerr(r));
|
||||
goto out;
|
||||
}
|
||||
#endif
|
||||
r = FIDO_ERR_NO_CREDENTIALS;
|
||||
skdebug(__func__, "%zu signatures returned", fido_assert_count(assert));
|
||||
for (i = 0; i < fido_assert_count(assert); i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user