Change-Id: I267d77778d3d4fbce977a6f37e7c8fc64694e990
WAUTHN_ERROR_ACCESS_DENIED = -0x0A, /**< Socket access denied */
WAUTHN_ERROR_MEMORY = -0x0B, /**< Memory error */
WAUTHN_ERROR_CANCELLED = -0x0C, /**< Cancelled by cancel request */
+ WAUTHN_ERROR_TIMEOUT = -0x0D, /**< Timeout */
} wauthn_error_e;
/**
#define SOCKET_PATH_PREFIX "/run/"
inline constexpr auto SERVICE_SOCKET = SOCKET_PATH_PREFIX "webauthn.socket";
+const unsigned long WEBAUTHN_TIMEOUT = 1000 * 60 * 2; // 2 minutes
enum class WebAuthnCall
{
WAUTHN_CODE_DESCRIBE(WAUTHN_ERROR_ACCESS_DENIED);
WAUTHN_CODE_DESCRIBE(WAUTHN_ERROR_MEMORY);
WAUTHN_CODE_DESCRIBE(WAUTHN_ERROR_CANCELLED);
+ WAUTHN_CODE_DESCRIBE(WAUTHN_ERROR_TIMEOUT);
default: return "Code not defined";
}
}
LogDebug("Adjust qrcode_callback to nullptr");
callbacks.qrcode_callback = nullptr;
}
+ if (options->timeout == 0)
+ options->timeout = WEBAUTHN_TIMEOUT;
user_data_s userData;
userData.service = this;