Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
oluceps committed Sep 15, 2024
1 parent e54eb05 commit b6b81e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/cmd/renc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ use crate::profile::{MasterIdentity, Profile, Settings};
use crate::{interop::add_to_store, profile};

impl profile::Secret {
fn to_renced_pathbuf(self, settings: &Settings) -> RencSecretPath {
RencSecretPath::init_from(settings, &self)
fn to_renced_pathbuf(self, settings: &Settings) -> StoredSecretPath {
StoredSecretPath::init_from(settings, &self)
}
}

Expand Down Expand Up @@ -64,7 +64,7 @@ impl NameBufPair {

use age::x25519;

use super::renc_sec_path::RencSecretPath;
use super::stored_sec_path::StoredSecretPath;
impl Profile {
/// Get the `secrets.{}.file`, which in nix store
pub fn get_cipher_file_paths(&self) -> HashSet<NamePathPair> {
Expand Down
4 changes: 2 additions & 2 deletions src/cmd/stored_sec_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ use spdlog::{debug, info};

use crate::profile::{self, Settings};

pub struct RencSecretPath(PathBuf);
pub struct StoredSecretPath(PathBuf);

impl RencSecretPath {
impl StoredSecretPath {
pub fn init_from(settings: &Settings, secret: &profile::Secret) -> Self {
let mut hasher = Sha256::new();
let Settings {
Expand Down

0 comments on commit b6b81e5

Please sign in to comment.