Skip to content

Commit 5e1a094

Browse files
committed
Add new Client constructors
This patch changes how Clients are created. It adds the following functions: * `Client::from_local` - use the specified root version from the local repository as our initial trusted root. * `Client::from_pinned_root_keyids` - use the specified root version, threshold, and keyids to trust a root fetched from the local or remote repository. * `Client::from_pinned_root_keys` - use the specified root version, threshold, and public keys to trust a root fetched from the local or remote repository. * `Client::from_pinned_root` - use the specified root metadata as the initial trusted root. This deprecates the old constructors: * `Client::new` * `Client::with_root_pinned` Closes: theupdateframework#229
1 parent f4bbb26 commit 5e1a094

File tree

6 files changed

+448
-66
lines changed

6 files changed

+448
-66
lines changed

0 commit comments

Comments
 (0)