mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
Convert all the secret/storage encryption APIs / wire format to handle UUIDs in raw format instead of non-canonical printable format. Guarentees data format correctness. * docs/schemas/storageencryption.rng: Make UUID mandatory for a secret and validate fully * docs/schemas/secret.rng: Fully validate UUID * include/libvirt/libvirt.h, include/libvirt/libvirt.h.in, Add virSecretLookupByUUID and virSecretGetUUID. Make virSecretGetUUIDString follow normal API design pattern * python/generator.py: Skip generation of virSecretGetUUID, virSecretGetUUIDString and virSecretLookupByUUID * python/libvir.c, python/libvirt-python-api.xml: Manual impl of virSecretGetUUID,virSecretGetUUIDString and virSecretLookupByUUID * qemud/remote.c: s/virSecretLookupByUUIDString/virSecretLookupByUUID/ Fix get_nonnull_secret/make_nonnull_secret to use unsigned char * qemud/remote_protocol.x: Fix remote_nonnull_secret to use a remote_uuid instead of remote_nonnull_string for UUID field. Rename REMOTE_PROC_SECRET_LOOKUP_BY_UUID_STRING to REMOTE_PROC_SECRET_LOOKUP_BY_UUID_STRING and make it take an remote_uuid value * qemud/remote_dispatch_args.h, qemud/remote_dispatch_prototypes.h, qemud/remote_dispatch_ret.h, qemud/remote_dispatch_table.h, qemud/remote_protocol.c, qemud/remote_protocol.h: Re-generate * src/datatypes.h, src/datatypes.c: Store UUID in raw format instead of printable. Change virGetSecret to use raw format UUID * src/driver.h: Rename virDrvSecretLookupByUUIDString to virDrvSecretLookupByUUID and use raw format UUID * src/libvirt.c: Add virSecretLookupByUUID and virSecretGetUUID and re-implement virSecretLookupByUUIDString and virSecretGetUUIDString in terms of those * src/libvirt_public.syms: Add virSecretLookupByUUID and virSecretGetUUID * src/remote_internal.c: Rename remoteSecretLookupByUUIDString to remoteSecretLookupByUUID. Fix typo in args for remoteSecretDefineXML impl. Use raw UUID format for get_nonnull_secret and make_nonnull_secret * src/storage_encryption_conf.c, src/storage_encryption_conf.h: Storage UUID in raw format, and require it to be present in XML. Use UUID parser to validate. * secret_conf.h, secret_conf.c: Generate a UUID if none is provided. Storage UUID in raw format. * src/secret_driver.c: Adjust to deal with raw UUIDs. Save secrets in a filed with printable UUID, instead of base64 UUID. * src/virsh.c: Adjust for changed public API contract of virSecretGetUUIDString. * src/storage_Backend.c: DOn't undefine secret we just generated upon successful volume creation. Fix to handle raw UUIDs. Generate a non-clashing UUID * src/qemu_driver.c: Change to use lookupByUUID instead of lookupByUUIDString
127 lines
9.0 KiB
C
127 lines
9.0 KiB
C
/* Automatically generated by remote_generate_stubs.pl.
|
|
* Do not edit this file. Any changes you make will be lost.
|
|
*/
|
|
|
|
remote_open_args val_remote_open_args;
|
|
remote_get_max_vcpus_args val_remote_get_max_vcpus_args;
|
|
remote_domain_attach_device_args val_remote_domain_attach_device_args;
|
|
remote_domain_create_args val_remote_domain_create_args;
|
|
remote_domain_create_xml_args val_remote_domain_create_xml_args;
|
|
remote_domain_define_xml_args val_remote_domain_define_xml_args;
|
|
remote_domain_destroy_args val_remote_domain_destroy_args;
|
|
remote_domain_detach_device_args val_remote_domain_detach_device_args;
|
|
remote_domain_dump_xml_args val_remote_domain_dump_xml_args;
|
|
remote_domain_get_autostart_args val_remote_domain_get_autostart_args;
|
|
remote_domain_get_info_args val_remote_domain_get_info_args;
|
|
remote_domain_get_max_memory_args val_remote_domain_get_max_memory_args;
|
|
remote_domain_get_max_vcpus_args val_remote_domain_get_max_vcpus_args;
|
|
remote_domain_get_os_type_args val_remote_domain_get_os_type_args;
|
|
remote_domain_get_vcpus_args val_remote_domain_get_vcpus_args;
|
|
remote_list_defined_domains_args val_remote_list_defined_domains_args;
|
|
remote_domain_lookup_by_id_args val_remote_domain_lookup_by_id_args;
|
|
remote_domain_lookup_by_name_args val_remote_domain_lookup_by_name_args;
|
|
remote_domain_lookup_by_uuid_args val_remote_domain_lookup_by_uuid_args;
|
|
remote_domain_pin_vcpu_args val_remote_domain_pin_vcpu_args;
|
|
remote_domain_reboot_args val_remote_domain_reboot_args;
|
|
remote_domain_resume_args val_remote_domain_resume_args;
|
|
remote_domain_set_autostart_args val_remote_domain_set_autostart_args;
|
|
remote_domain_set_max_memory_args val_remote_domain_set_max_memory_args;
|
|
remote_domain_set_memory_args val_remote_domain_set_memory_args;
|
|
remote_domain_set_vcpus_args val_remote_domain_set_vcpus_args;
|
|
remote_domain_shutdown_args val_remote_domain_shutdown_args;
|
|
remote_domain_suspend_args val_remote_domain_suspend_args;
|
|
remote_domain_undefine_args val_remote_domain_undefine_args;
|
|
remote_list_defined_networks_args val_remote_list_defined_networks_args;
|
|
remote_list_domains_args val_remote_list_domains_args;
|
|
remote_list_networks_args val_remote_list_networks_args;
|
|
remote_network_create_args val_remote_network_create_args;
|
|
remote_network_create_xml_args val_remote_network_create_xml_args;
|
|
remote_network_define_xml_args val_remote_network_define_xml_args;
|
|
remote_network_destroy_args val_remote_network_destroy_args;
|
|
remote_network_dump_xml_args val_remote_network_dump_xml_args;
|
|
remote_network_get_autostart_args val_remote_network_get_autostart_args;
|
|
remote_network_get_bridge_name_args val_remote_network_get_bridge_name_args;
|
|
remote_network_lookup_by_name_args val_remote_network_lookup_by_name_args;
|
|
remote_network_lookup_by_uuid_args val_remote_network_lookup_by_uuid_args;
|
|
remote_network_set_autostart_args val_remote_network_set_autostart_args;
|
|
remote_network_undefine_args val_remote_network_undefine_args;
|
|
remote_domain_core_dump_args val_remote_domain_core_dump_args;
|
|
remote_domain_restore_args val_remote_domain_restore_args;
|
|
remote_domain_save_args val_remote_domain_save_args;
|
|
remote_domain_get_scheduler_type_args val_remote_domain_get_scheduler_type_args;
|
|
remote_domain_get_scheduler_parameters_args val_remote_domain_get_scheduler_parameters_args;
|
|
remote_domain_set_scheduler_parameters_args val_remote_domain_set_scheduler_parameters_args;
|
|
remote_supports_feature_args val_remote_supports_feature_args;
|
|
remote_domain_migrate_prepare_args val_remote_domain_migrate_prepare_args;
|
|
remote_domain_migrate_perform_args val_remote_domain_migrate_perform_args;
|
|
remote_domain_migrate_finish_args val_remote_domain_migrate_finish_args;
|
|
remote_domain_block_stats_args val_remote_domain_block_stats_args;
|
|
remote_domain_interface_stats_args val_remote_domain_interface_stats_args;
|
|
remote_auth_sasl_start_args val_remote_auth_sasl_start_args;
|
|
remote_auth_sasl_step_args val_remote_auth_sasl_step_args;
|
|
remote_list_storage_pools_args val_remote_list_storage_pools_args;
|
|
remote_list_defined_storage_pools_args val_remote_list_defined_storage_pools_args;
|
|
remote_find_storage_pool_sources_args val_remote_find_storage_pool_sources_args;
|
|
remote_storage_pool_create_xml_args val_remote_storage_pool_create_xml_args;
|
|
remote_storage_pool_define_xml_args val_remote_storage_pool_define_xml_args;
|
|
remote_storage_pool_create_args val_remote_storage_pool_create_args;
|
|
remote_storage_pool_build_args val_remote_storage_pool_build_args;
|
|
remote_storage_pool_destroy_args val_remote_storage_pool_destroy_args;
|
|
remote_storage_pool_delete_args val_remote_storage_pool_delete_args;
|
|
remote_storage_pool_undefine_args val_remote_storage_pool_undefine_args;
|
|
remote_storage_pool_refresh_args val_remote_storage_pool_refresh_args;
|
|
remote_storage_pool_lookup_by_name_args val_remote_storage_pool_lookup_by_name_args;
|
|
remote_storage_pool_lookup_by_uuid_args val_remote_storage_pool_lookup_by_uuid_args;
|
|
remote_storage_pool_lookup_by_volume_args val_remote_storage_pool_lookup_by_volume_args;
|
|
remote_storage_pool_get_info_args val_remote_storage_pool_get_info_args;
|
|
remote_storage_pool_dump_xml_args val_remote_storage_pool_dump_xml_args;
|
|
remote_storage_pool_get_autostart_args val_remote_storage_pool_get_autostart_args;
|
|
remote_storage_pool_set_autostart_args val_remote_storage_pool_set_autostart_args;
|
|
remote_storage_pool_num_of_volumes_args val_remote_storage_pool_num_of_volumes_args;
|
|
remote_storage_pool_list_volumes_args val_remote_storage_pool_list_volumes_args;
|
|
remote_storage_vol_create_xml_args val_remote_storage_vol_create_xml_args;
|
|
remote_storage_vol_delete_args val_remote_storage_vol_delete_args;
|
|
remote_storage_vol_lookup_by_name_args val_remote_storage_vol_lookup_by_name_args;
|
|
remote_storage_vol_lookup_by_key_args val_remote_storage_vol_lookup_by_key_args;
|
|
remote_storage_vol_lookup_by_path_args val_remote_storage_vol_lookup_by_path_args;
|
|
remote_storage_vol_get_info_args val_remote_storage_vol_get_info_args;
|
|
remote_storage_vol_dump_xml_args val_remote_storage_vol_dump_xml_args;
|
|
remote_storage_vol_get_path_args val_remote_storage_vol_get_path_args;
|
|
remote_node_get_cells_free_memory_args val_remote_node_get_cells_free_memory_args;
|
|
remote_domain_block_peek_args val_remote_domain_block_peek_args;
|
|
remote_domain_memory_peek_args val_remote_domain_memory_peek_args;
|
|
remote_domain_migrate_prepare2_args val_remote_domain_migrate_prepare2_args;
|
|
remote_domain_migrate_finish2_args val_remote_domain_migrate_finish2_args;
|
|
remote_node_num_of_devices_args val_remote_node_num_of_devices_args;
|
|
remote_node_list_devices_args val_remote_node_list_devices_args;
|
|
remote_node_device_lookup_by_name_args val_remote_node_device_lookup_by_name_args;
|
|
remote_node_device_dump_xml_args val_remote_node_device_dump_xml_args;
|
|
remote_node_device_get_parent_args val_remote_node_device_get_parent_args;
|
|
remote_node_device_num_of_caps_args val_remote_node_device_num_of_caps_args;
|
|
remote_node_device_list_caps_args val_remote_node_device_list_caps_args;
|
|
remote_node_device_dettach_args val_remote_node_device_dettach_args;
|
|
remote_node_device_re_attach_args val_remote_node_device_re_attach_args;
|
|
remote_node_device_reset_args val_remote_node_device_reset_args;
|
|
remote_domain_get_security_label_args val_remote_domain_get_security_label_args;
|
|
remote_node_device_create_xml_args val_remote_node_device_create_xml_args;
|
|
remote_node_device_destroy_args val_remote_node_device_destroy_args;
|
|
remote_storage_vol_create_xml_from_args val_remote_storage_vol_create_xml_from_args;
|
|
remote_list_interfaces_args val_remote_list_interfaces_args;
|
|
remote_interface_lookup_by_name_args val_remote_interface_lookup_by_name_args;
|
|
remote_interface_lookup_by_mac_string_args val_remote_interface_lookup_by_mac_string_args;
|
|
remote_interface_get_xml_desc_args val_remote_interface_get_xml_desc_args;
|
|
remote_interface_define_xml_args val_remote_interface_define_xml_args;
|
|
remote_interface_undefine_args val_remote_interface_undefine_args;
|
|
remote_interface_create_args val_remote_interface_create_args;
|
|
remote_interface_destroy_args val_remote_interface_destroy_args;
|
|
remote_domain_xml_from_native_args val_remote_domain_xml_from_native_args;
|
|
remote_domain_xml_to_native_args val_remote_domain_xml_to_native_args;
|
|
remote_list_defined_interfaces_args val_remote_list_defined_interfaces_args;
|
|
remote_list_secrets_args val_remote_list_secrets_args;
|
|
remote_secret_lookup_by_uuid_args val_remote_secret_lookup_by_uuid_args;
|
|
remote_secret_define_xml_args val_remote_secret_define_xml_args;
|
|
remote_secret_get_xml_desc_args val_remote_secret_get_xml_desc_args;
|
|
remote_secret_set_value_args val_remote_secret_set_value_args;
|
|
remote_secret_get_value_args val_remote_secret_get_value_args;
|
|
remote_secret_undefine_args val_remote_secret_undefine_args;
|