Skip to content

Commit 6a8f3d7

Browse files
server: Add support of InternalUnsupportedGuiltRiddenInterface
As it is used seahorse, so support it till we have a better way of handling this in the spec itself.
1 parent 541e427 commit 6a8f3d7

7 files changed

Lines changed: 610 additions & 17 deletions

File tree

client/src/dbus/api/secret.rs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,7 @@ impl DBusSecret {
5656
})
5757
}
5858

59-
pub(crate) async fn from_inner(
60-
cnx: &zbus::Connection,
61-
inner: DBusSecretInner,
62-
) -> Result<Self, Error> {
59+
pub async fn from_inner(cnx: &zbus::Connection, inner: DBusSecretInner) -> Result<Self, Error> {
6360
Ok(Self {
6461
session: Arc::new(Session::new(cnx, inner.0).await?),
6562
parameters: inner.1,
@@ -97,6 +94,17 @@ impl DBusSecret {
9794
}
9895
}
9996

97+
impl From<DBusSecret> for DBusSecretInner {
98+
fn from(secret: DBusSecret) -> Self {
99+
Self(
100+
secret.session().inner().path().to_owned().into(),
101+
secret.parameters().to_vec(),
102+
secret.value().to_vec(),
103+
secret.content_type(),
104+
)
105+
}
106+
}
107+
100108
impl Serialize for DBusSecret {
101109
fn serialize<S>(&self, serializer: S) -> std::result::Result<S::Ok, S::Error>
102110
where

0 commit comments

Comments
 (0)