Make adjustments for easier CGO integration

This commit is contained in:
RandyTheSilly committed 2026-01-21 18:35:26 -05:00
1 parent f82b35bc43
commit 48e084ac0f
7 files changed
+49 -37

No files matched your search

+3 -2
View File
@@ -31,7 +31,8 @@ func Entry(vanityPath string, timestamp int64) error {
// AllPasswordEntries adds age data for all un-aged entries containing passwords.
// Each entry is aged with a random timestamp from within the last year to prevent
// all entries having their passwords expire at the same time.
func AllPasswordEntries(forceReage bool) error {
// Leave rcwPassword nil to use RCW demonization.
func AllPasswordEntries(forceReage bool, rcwPassword []byte) error {
allVanityPaths, _, err := synccommon.WalkEntryDir()
if err != nil {
return errors.New("unable to walk entry directory: " + err.Error())
@@ -48,7 +49,7 @@ func AllPasswordEntries(forceReage bool) error {
}
}
decSlice, err := crypt.DecryptFileToSlice(global.EntryRoot + vanityPath)
decSlice, err := crypt.DecryptFileToSlice(global.EntryRoot+vanityPath, rcwPassword)
if err != nil {
return err
}