summaryrefslogtreecommitdiff
path: root/chromium/device/fido/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/device/fido/BUILD.gn')
-rw-r--r--chromium/device/fido/BUILD.gn234
1 files changed, 120 insertions, 114 deletions
diff --git a/chromium/device/fido/BUILD.gn b/chromium/device/fido/BUILD.gn
index b1867a8b1b6..686c8bab4ac 100644
--- a/chromium/device/fido/BUILD.gn
+++ b/chromium/device/fido/BUILD.gn
@@ -8,114 +8,29 @@ import("//third_party/protobuf/proto_library.gni")
component("fido") {
sources = [
- "attestation_object.cc",
- "attestation_object.h",
- "attestation_statement.cc",
- "attestation_statement.h",
- "attestation_statement_formats.cc",
- "attestation_statement_formats.h",
"attested_credential_data.cc",
"attested_credential_data.h",
- "authenticator_data.cc",
- "authenticator_data.h",
- "authenticator_get_assertion_response.cc",
- "authenticator_get_assertion_response.h",
- "authenticator_get_info_response.cc",
- "authenticator_get_info_response.h",
- "authenticator_make_credential_response.cc",
- "authenticator_make_credential_response.h",
"authenticator_selection_criteria.cc",
"authenticator_selection_criteria.h",
- "authenticator_supported_options.cc",
- "authenticator_supported_options.h",
- "bio/enroller.cc",
- "bio/enroller.h",
- "bio/enrollment.cc",
- "bio/enrollment.h",
- "bio/enrollment_handler.cc",
- "bio/enrollment_handler.h",
- "ble_adapter_manager.cc",
- "ble_adapter_manager.h",
+ "cable/cable_discovery_data.cc",
"cable/cable_discovery_data.h",
- "cable/fido_ble_connection.cc",
- "cable/fido_ble_connection.h",
- "cable/fido_ble_frames.cc",
- "cable/fido_ble_frames.h",
- "cable/fido_ble_transaction.cc",
- "cable/fido_ble_transaction.h",
- "cable/fido_ble_uuids.cc",
- "cable/fido_ble_uuids.h",
- "cable/fido_cable_device.cc",
- "cable/fido_cable_device.h",
- "cable/fido_cable_discovery.cc",
- "cable/fido_cable_discovery.h",
- "cable/fido_cable_handshake_handler.cc",
- "cable/fido_cable_handshake_handler.h",
"cable/noise.cc",
"cable/noise.h",
"cable/v2_handshake.cc",
"cable/v2_handshake.h",
"cbor_extract.cc",
- "client_data.cc",
- "client_data.h",
- "credential_management.cc",
- "credential_management.h",
- "credential_management_handler.cc",
- "credential_management_handler.h",
- "ctap2_device_operation.h",
- "ctap_empty_authenticator_request.cc",
- "ctap_empty_authenticator_request.h",
- "ctap_get_assertion_request.cc",
- "ctap_get_assertion_request.h",
- "ctap_make_credential_request.cc",
- "ctap_make_credential_request.h",
- "device_operation.h",
- "device_response_converter.cc",
- "device_response_converter.h",
+ "ed25519_public_key.cc",
+ "ed25519_public_key.h",
"features.cc",
"features.h",
- "fido_authenticator.cc",
- "fido_authenticator.h",
"fido_constants.cc",
"fido_constants.h",
- "fido_device.cc",
- "fido_device.h",
- "fido_device_authenticator.cc",
- "fido_device_authenticator.h",
- "fido_device_discovery.cc",
- "fido_device_discovery.h",
- "fido_discovery_base.cc",
- "fido_discovery_base.h",
- "fido_discovery_factory.cc",
- "fido_discovery_factory.h",
"fido_parsing_utils.cc",
"fido_parsing_utils.h",
- "fido_request_handler_base.cc",
- "fido_request_handler_base.h",
- "fido_task.cc",
- "fido_task.h",
"fido_transport_protocol.cc",
"fido_transport_protocol.h",
- "fido_types.h",
- "get_assertion_request_handler.cc",
- "get_assertion_request_handler.h",
- "get_assertion_task.cc",
- "get_assertion_task.h",
- "hid/fido_hid_message.cc",
- "hid/fido_hid_message.h",
- "hid/fido_hid_packet.cc",
- "hid/fido_hid_packet.h",
- "make_credential_request_handler.cc",
- "make_credential_request_handler.h",
- "make_credential_task.cc",
- "make_credential_task.h",
- "opaque_attestation_statement.cc",
- "opaque_attestation_statement.h",
"p256_public_key.cc",
"p256_public_key.h",
- "pin.cc",
- "pin.h",
- "platform_credential_store.h",
"public_key.cc",
"public_key.h",
"public_key_credential_descriptor.cc",
@@ -126,26 +41,8 @@ component("fido") {
"public_key_credential_rp_entity.h",
"public_key_credential_user_entity.cc",
"public_key_credential_user_entity.h",
- "reset_request_handler.cc",
- "reset_request_handler.h",
- "response_data.cc",
- "response_data.h",
"rsa_public_key.cc",
"rsa_public_key.h",
- "set_pin_request_handler.cc",
- "set_pin_request_handler.h",
- "u2f_command_constructor.cc",
- "u2f_command_constructor.h",
- "u2f_register_operation.cc",
- "u2f_register_operation.h",
- "u2f_sign_operation.cc",
- "u2f_sign_operation.h",
- "virtual_ctap2_device.cc",
- "virtual_ctap2_device.h",
- "virtual_fido_device.cc",
- "virtual_fido_device.h",
- "virtual_u2f_device.cc",
- "virtual_u2f_device.h",
]
defines = [ "IS_DEVICE_FIDO_IMPL" ]
@@ -171,13 +68,119 @@ component("fido") {
libs = [] # Extended for mac.
- # HID is not supported on Android.
+ # Android implementation of FIDO is delegated to GMSCore.
if (!is_android) {
sources += [
+ "attestation_object.cc",
+ "attestation_object.h",
+ "attestation_statement.cc",
+ "attestation_statement.h",
+ "attestation_statement_formats.cc",
+ "attestation_statement_formats.h",
+ "authenticator_data.cc",
+ "authenticator_data.h",
+ "authenticator_get_assertion_response.cc",
+ "authenticator_get_assertion_response.h",
+ "authenticator_get_info_response.cc",
+ "authenticator_get_info_response.h",
+ "authenticator_make_credential_response.cc",
+ "authenticator_make_credential_response.h",
+ "authenticator_supported_options.cc",
+ "authenticator_supported_options.h",
+ "bio/enroller.cc",
+ "bio/enroller.h",
+ "bio/enrollment.cc",
+ "bio/enrollment.h",
+ "bio/enrollment_handler.cc",
+ "bio/enrollment_handler.h",
+ "ble_adapter_manager.cc",
+ "ble_adapter_manager.h",
+ "cable/fido_ble_connection.cc",
+ "cable/fido_ble_connection.h",
+ "cable/fido_ble_frames.cc",
+ "cable/fido_ble_frames.h",
+ "cable/fido_ble_transaction.cc",
+ "cable/fido_ble_transaction.h",
+ "cable/fido_ble_uuids.cc",
+ "cable/fido_ble_uuids.h",
+ "cable/fido_cable_device.cc",
+ "cable/fido_cable_device.h",
+ "cable/fido_cable_discovery.cc",
+ "cable/fido_cable_discovery.h",
+ "cable/fido_cable_handshake_handler.cc",
+ "cable/fido_cable_handshake_handler.h",
+ "client_data.cc",
+ "client_data.h",
+ "credential_management.cc",
+ "credential_management.h",
+ "credential_management_handler.cc",
+ "credential_management_handler.h",
+ "ctap2_device_operation.h",
+ "ctap_empty_authenticator_request.cc",
+ "ctap_empty_authenticator_request.h",
+ "ctap_get_assertion_request.cc",
+ "ctap_get_assertion_request.h",
+ "ctap_make_credential_request.cc",
+ "ctap_make_credential_request.h",
+ "device_operation.h",
+ "device_response_converter.cc",
+ "device_response_converter.h",
+ "fido_authenticator.cc",
+ "fido_authenticator.h",
+ "fido_device.cc",
+ "fido_device.h",
+ "fido_device_authenticator.cc",
+ "fido_device_authenticator.h",
+ "fido_device_discovery.cc",
+ "fido_device_discovery.h",
+ "fido_discovery_base.cc",
+ "fido_discovery_base.h",
+ "fido_discovery_factory.cc",
+ "fido_discovery_factory.h",
+ "fido_request_handler_base.cc",
+ "fido_request_handler_base.h",
+ "fido_task.cc",
+ "fido_task.h",
+ "fido_types.h",
+ "get_assertion_request_handler.cc",
+ "get_assertion_request_handler.h",
+ "get_assertion_task.cc",
+ "get_assertion_task.h",
"hid/fido_hid_device.cc",
"hid/fido_hid_device.h",
"hid/fido_hid_discovery.cc",
"hid/fido_hid_discovery.h",
+ "hid/fido_hid_message.cc",
+ "hid/fido_hid_message.h",
+ "hid/fido_hid_packet.cc",
+ "hid/fido_hid_packet.h",
+ "make_credential_request_handler.cc",
+ "make_credential_request_handler.h",
+ "make_credential_task.cc",
+ "make_credential_task.h",
+ "opaque_attestation_statement.cc",
+ "opaque_attestation_statement.h",
+ "pin.cc",
+ "pin.h",
+ "platform_credential_store.h",
+ "reset_request_handler.cc",
+ "reset_request_handler.h",
+ "response_data.cc",
+ "response_data.h",
+ "set_pin_request_handler.cc",
+ "set_pin_request_handler.h",
+ "u2f_command_constructor.cc",
+ "u2f_command_constructor.h",
+ "u2f_register_operation.cc",
+ "u2f_register_operation.h",
+ "u2f_sign_operation.cc",
+ "u2f_sign_operation.h",
+ "virtual_ctap2_device.cc",
+ "virtual_ctap2_device.h",
+ "virtual_fido_device.cc",
+ "virtual_fido_device.h",
+ "virtual_u2f_device.cc",
+ "virtual_u2f_device.h",
]
deps += [
@@ -336,13 +339,7 @@ is_linux_without_udev = is_linux && !use_udev
source_set("test_support") {
testonly = true
- sources = [
- "fake_fido_discovery.cc",
- "fake_fido_discovery.h",
- "test_callback_receiver.h",
- "virtual_fido_device_factory.cc",
- "virtual_fido_device_factory.h",
- ]
+ sources = [ "test_callback_receiver.h" ]
deps = [
"//base",
"//components/apdu",
@@ -356,11 +353,20 @@ source_set("test_support") {
# Android doesn't compile. Linux requires udev.
if (!is_linux_without_udev && !is_android) {
sources += [
+ "fake_fido_discovery.cc",
+ "fake_fido_discovery.h",
"hid/fake_hid_impl_for_testing.cc",
"hid/fake_hid_impl_for_testing.h",
]
}
+ if (!is_android) {
+ sources += [
+ "virtual_fido_device_factory.cc",
+ "virtual_fido_device_factory.h",
+ ]
+ }
+
if (is_mac) {
sources += [
"mac/fake_keychain.h",