aboutsummaryrefslogtreecommitdiff
path: root/crypto/secret.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2020-11-30 11:56:12 +0100
committerDaniel P. Berrangé <berrange@redhat.com>2021-01-29 17:07:53 +0000
commit31b6aefdbd9d2fe45c25e5236e1cc363229cb96c (patch)
treee32fd4218d5c65dbb1bd40f8b104b1a7679cceb5 /crypto/secret.c
parent8573431b9c83a18a35d69e74d14f5055a07b23fc (diff)
downloadqemu-31b6aefdbd9d2fe45c25e5236e1cc363229cb96c.zip
qemu-31b6aefdbd9d2fe45c25e5236e1cc363229cb96c.tar.gz
qemu-31b6aefdbd9d2fe45c25e5236e1cc363229cb96c.tar.bz2
crypto: Move USER_CREATABLE to secret_common base class
Instead of duplicating the code for user creatable objects in secret and secret_keyring, move it to the common base clase secret_common. As the base class is abstract, it won't become user creatable itself. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'crypto/secret.c')
-rw-r--r--crypto/secret.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/crypto/secret.c b/crypto/secret.c
index 281cb81..44eaff1 100644
--- a/crypto/secret.c
+++ b/crypto/secret.c
@@ -108,13 +108,6 @@ qcrypto_secret_prop_get_file(Object *obj,
static void
-qcrypto_secret_complete(UserCreatable *uc, Error **errp)
-{
- object_property_set_bool(OBJECT(uc), "loaded", true, errp);
-}
-
-
-static void
qcrypto_secret_finalize(Object *obj)
{
QCryptoSecret *secret = QCRYPTO_SECRET(obj);
@@ -129,9 +122,6 @@ qcrypto_secret_class_init(ObjectClass *oc, void *data)
QCryptoSecretCommonClass *sic = QCRYPTO_SECRET_COMMON_CLASS(oc);
sic->load_data = qcrypto_secret_load_data;
- UserCreatableClass *ucc = USER_CREATABLE_CLASS(oc);
- ucc->complete = qcrypto_secret_complete;
-
object_class_property_add_str(oc, "data",
qcrypto_secret_prop_get_data,
qcrypto_secret_prop_set_data);
@@ -148,10 +138,6 @@ static const TypeInfo qcrypto_secret_info = {
.instance_finalize = qcrypto_secret_finalize,
.class_size = sizeof(QCryptoSecretClass),
.class_init = qcrypto_secret_class_init,
- .interfaces = (InterfaceInfo[]) {
- { TYPE_USER_CREATABLE },
- { }
- }
};