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
108 lines
7.5 KiB
C
108 lines
7.5 KiB
C
/* Automatically generated by remote_generate_stubs.pl.
|
|
* Do not edit this file. Any changes you make will be lost.
|
|
*/
|
|
|
|
remote_get_type_ret val_remote_get_type_ret;
|
|
remote_get_version_ret val_remote_get_version_ret;
|
|
remote_get_max_vcpus_ret val_remote_get_max_vcpus_ret;
|
|
remote_node_get_info_ret val_remote_node_get_info_ret;
|
|
remote_get_capabilities_ret val_remote_get_capabilities_ret;
|
|
remote_domain_create_xml_ret val_remote_domain_create_xml_ret;
|
|
remote_domain_define_xml_ret val_remote_domain_define_xml_ret;
|
|
remote_domain_dump_xml_ret val_remote_domain_dump_xml_ret;
|
|
remote_domain_get_autostart_ret val_remote_domain_get_autostart_ret;
|
|
remote_domain_get_info_ret val_remote_domain_get_info_ret;
|
|
remote_domain_get_max_memory_ret val_remote_domain_get_max_memory_ret;
|
|
remote_domain_get_max_vcpus_ret val_remote_domain_get_max_vcpus_ret;
|
|
remote_domain_get_os_type_ret val_remote_domain_get_os_type_ret;
|
|
remote_domain_get_vcpus_ret val_remote_domain_get_vcpus_ret;
|
|
remote_list_defined_domains_ret val_remote_list_defined_domains_ret;
|
|
remote_domain_lookup_by_id_ret val_remote_domain_lookup_by_id_ret;
|
|
remote_domain_lookup_by_name_ret val_remote_domain_lookup_by_name_ret;
|
|
remote_domain_lookup_by_uuid_ret val_remote_domain_lookup_by_uuid_ret;
|
|
remote_num_of_defined_domains_ret val_remote_num_of_defined_domains_ret;
|
|
remote_list_defined_networks_ret val_remote_list_defined_networks_ret;
|
|
remote_list_domains_ret val_remote_list_domains_ret;
|
|
remote_list_networks_ret val_remote_list_networks_ret;
|
|
remote_network_create_xml_ret val_remote_network_create_xml_ret;
|
|
remote_network_define_xml_ret val_remote_network_define_xml_ret;
|
|
remote_network_dump_xml_ret val_remote_network_dump_xml_ret;
|
|
remote_network_get_autostart_ret val_remote_network_get_autostart_ret;
|
|
remote_network_get_bridge_name_ret val_remote_network_get_bridge_name_ret;
|
|
remote_network_lookup_by_name_ret val_remote_network_lookup_by_name_ret;
|
|
remote_network_lookup_by_uuid_ret val_remote_network_lookup_by_uuid_ret;
|
|
remote_num_of_defined_networks_ret val_remote_num_of_defined_networks_ret;
|
|
remote_num_of_domains_ret val_remote_num_of_domains_ret;
|
|
remote_num_of_networks_ret val_remote_num_of_networks_ret;
|
|
remote_domain_get_scheduler_type_ret val_remote_domain_get_scheduler_type_ret;
|
|
remote_domain_get_scheduler_parameters_ret val_remote_domain_get_scheduler_parameters_ret;
|
|
remote_get_hostname_ret val_remote_get_hostname_ret;
|
|
remote_supports_feature_ret val_remote_supports_feature_ret;
|
|
remote_domain_migrate_prepare_ret val_remote_domain_migrate_prepare_ret;
|
|
remote_domain_migrate_finish_ret val_remote_domain_migrate_finish_ret;
|
|
remote_domain_block_stats_ret val_remote_domain_block_stats_ret;
|
|
remote_domain_interface_stats_ret val_remote_domain_interface_stats_ret;
|
|
remote_auth_list_ret val_remote_auth_list_ret;
|
|
remote_auth_sasl_init_ret val_remote_auth_sasl_init_ret;
|
|
remote_auth_sasl_start_ret val_remote_auth_sasl_start_ret;
|
|
remote_auth_sasl_step_ret val_remote_auth_sasl_step_ret;
|
|
remote_auth_polkit_ret val_remote_auth_polkit_ret;
|
|
remote_num_of_storage_pools_ret val_remote_num_of_storage_pools_ret;
|
|
remote_list_storage_pools_ret val_remote_list_storage_pools_ret;
|
|
remote_num_of_defined_storage_pools_ret val_remote_num_of_defined_storage_pools_ret;
|
|
remote_list_defined_storage_pools_ret val_remote_list_defined_storage_pools_ret;
|
|
remote_find_storage_pool_sources_ret val_remote_find_storage_pool_sources_ret;
|
|
remote_storage_pool_create_xml_ret val_remote_storage_pool_create_xml_ret;
|
|
remote_storage_pool_define_xml_ret val_remote_storage_pool_define_xml_ret;
|
|
remote_storage_pool_lookup_by_name_ret val_remote_storage_pool_lookup_by_name_ret;
|
|
remote_storage_pool_lookup_by_uuid_ret val_remote_storage_pool_lookup_by_uuid_ret;
|
|
remote_storage_pool_lookup_by_volume_ret val_remote_storage_pool_lookup_by_volume_ret;
|
|
remote_storage_pool_get_info_ret val_remote_storage_pool_get_info_ret;
|
|
remote_storage_pool_dump_xml_ret val_remote_storage_pool_dump_xml_ret;
|
|
remote_storage_pool_get_autostart_ret val_remote_storage_pool_get_autostart_ret;
|
|
remote_storage_pool_num_of_volumes_ret val_remote_storage_pool_num_of_volumes_ret;
|
|
remote_storage_pool_list_volumes_ret val_remote_storage_pool_list_volumes_ret;
|
|
remote_storage_vol_create_xml_ret val_remote_storage_vol_create_xml_ret;
|
|
remote_storage_vol_lookup_by_name_ret val_remote_storage_vol_lookup_by_name_ret;
|
|
remote_storage_vol_lookup_by_key_ret val_remote_storage_vol_lookup_by_key_ret;
|
|
remote_storage_vol_lookup_by_path_ret val_remote_storage_vol_lookup_by_path_ret;
|
|
remote_storage_vol_get_info_ret val_remote_storage_vol_get_info_ret;
|
|
remote_storage_vol_dump_xml_ret val_remote_storage_vol_dump_xml_ret;
|
|
remote_storage_vol_get_path_ret val_remote_storage_vol_get_path_ret;
|
|
remote_node_get_cells_free_memory_ret val_remote_node_get_cells_free_memory_ret;
|
|
remote_node_get_free_memory_ret val_remote_node_get_free_memory_ret;
|
|
remote_domain_block_peek_ret val_remote_domain_block_peek_ret;
|
|
remote_domain_memory_peek_ret val_remote_domain_memory_peek_ret;
|
|
remote_domain_events_register_ret val_remote_domain_events_register_ret;
|
|
remote_domain_events_deregister_ret val_remote_domain_events_deregister_ret;
|
|
remote_domain_migrate_prepare2_ret val_remote_domain_migrate_prepare2_ret;
|
|
remote_domain_migrate_finish2_ret val_remote_domain_migrate_finish2_ret;
|
|
remote_get_uri_ret val_remote_get_uri_ret;
|
|
remote_node_num_of_devices_ret val_remote_node_num_of_devices_ret;
|
|
remote_node_list_devices_ret val_remote_node_list_devices_ret;
|
|
remote_node_device_lookup_by_name_ret val_remote_node_device_lookup_by_name_ret;
|
|
remote_node_device_dump_xml_ret val_remote_node_device_dump_xml_ret;
|
|
remote_node_device_get_parent_ret val_remote_node_device_get_parent_ret;
|
|
remote_node_device_num_of_caps_ret val_remote_node_device_num_of_caps_ret;
|
|
remote_node_device_list_caps_ret val_remote_node_device_list_caps_ret;
|
|
remote_domain_get_security_label_ret val_remote_domain_get_security_label_ret;
|
|
remote_node_get_security_model_ret val_remote_node_get_security_model_ret;
|
|
remote_node_device_create_xml_ret val_remote_node_device_create_xml_ret;
|
|
remote_storage_vol_create_xml_from_ret val_remote_storage_vol_create_xml_from_ret;
|
|
remote_num_of_interfaces_ret val_remote_num_of_interfaces_ret;
|
|
remote_list_interfaces_ret val_remote_list_interfaces_ret;
|
|
remote_interface_lookup_by_name_ret val_remote_interface_lookup_by_name_ret;
|
|
remote_interface_lookup_by_mac_string_ret val_remote_interface_lookup_by_mac_string_ret;
|
|
remote_interface_get_xml_desc_ret val_remote_interface_get_xml_desc_ret;
|
|
remote_interface_define_xml_ret val_remote_interface_define_xml_ret;
|
|
remote_domain_xml_from_native_ret val_remote_domain_xml_from_native_ret;
|
|
remote_domain_xml_to_native_ret val_remote_domain_xml_to_native_ret;
|
|
remote_num_of_defined_interfaces_ret val_remote_num_of_defined_interfaces_ret;
|
|
remote_list_defined_interfaces_ret val_remote_list_defined_interfaces_ret;
|
|
remote_num_of_secrets_ret val_remote_num_of_secrets_ret;
|
|
remote_list_secrets_ret val_remote_list_secrets_ret;
|
|
remote_secret_lookup_by_uuid_ret val_remote_secret_lookup_by_uuid_ret;
|
|
remote_secret_define_xml_ret val_remote_secret_define_xml_ret;
|
|
remote_secret_get_xml_desc_ret val_remote_secret_get_xml_desc_ret;
|
|
remote_secret_get_value_ret val_remote_secret_get_value_ret;
|