changelog shortlog graph tags branches changeset files revisions annotate raw help

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
1 /// Keyutils
2 pub use crate::keyutils::{Key, KeyType, Keyring, Permission, SpecialKeyring};
3 /// Return the default 'special' session for the current thread
4 
5 pub fn default_ks() -> keyutils::Result<Keyring> {
6  Keyring::join_anonymous_session()
7 }
8 
9 pub fn join_ks(name: &str) -> keyutils::Result<Keyring> {
10  Keyring::join_session(name)
11 }
12 
13 pub fn dump_keys(kr: Keyring) -> keyutils::Result<(Vec<Key>, Vec<Keyring>)> {
14  kr.read()
15 }