Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,15 @@ uuid = { version = "1", features = ["v4", "serde"] }
url = "2"
percent-encoding = "2"
# The Windows Credential Manager, where the core keeps secrets on Windows, the
# owning process of a loopback connection, from GetExtendedTcpTable, and the
# MachineGuid the TablePro account derives the machine ID from.
# owning process of a loopback connection, from GetExtendedTcpTable, the
# MachineGuid the TablePro account derives the machine ID from, and DPAPI,
# which another app's key sealed to the user opens with.
windows-sys = { version = "0.61", features = [
"Win32_Foundation",
"Win32_NetworkManagement_IpHelper",
"Win32_Networking_WinSock",
"Win32_Security_Credentials",
"Win32_Security_Cryptography",
"Win32_System_Registry",
] }
# What other apps' saved connections are kept in: binary and XML property
Expand Down
1 change: 1 addition & 0 deletions core/crates/ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ tablepro-driver-mysql = { workspace = true, optional = true }
tablepro-driver-postgres = { workspace = true, optional = true }
tablepro-driver-redis = { workspace = true, optional = true }
tablepro-driver-sqlite = { workspace = true, optional = true }
tablepro-foreign-import.workspace = true
tablepro-session = { workspace = true, features = ["in-process-ssh"] }
tablepro-ssh = { workspace = true, features = ["in-process"] }
tablepro-storage.workspace = true
Expand Down
12 changes: 12 additions & 0 deletions core/crates/ffi/src/core_handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,18 @@ impl Core {
self.vault.clone()
}

pub(crate) fn connection_store(&self) -> Result<ConnectionStore, CoreError> {
self.store.clone().ok_or_else(no_storage)
}

pub(crate) fn registry(&self) -> Arc<DriverRegistry> {
self.registry.clone()
}

pub(crate) fn writes(&self) -> LibraryWrites {
self.writes.clone()
}

pub fn secret_items(&self) -> Arc<dyn SecretItems> {
self.items.clone()
}
Expand Down
Loading
Loading