Mercurial > core / rust/lib/krypt/src/ks.rs
changeset 698: |
96958d3eb5b0 |
parent: |
3d78bed56188
|
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Fri, 04 Oct 2024 22:04:59 -0400 |
permissions: |
-rw-r--r-- |
description: |
fixes |
2 pub use crate::keyutils::{Key, KeyType, Keyring, Permission, SpecialKeyring}; 3 /// Return the default 'special' session for the current thread 5 pub fn default_ks() -> keyutils::Result<Keyring> { 6 Keyring::join_anonymous_session() 9 pub fn join_ks(name: &str) -> keyutils::Result<Keyring> { 10 Keyring::join_session(name) 13 pub fn dump_keys(kr: Keyring) -> keyutils::Result<(Vec<Key>, Vec<Keyring>)> {