Fix passphrase setup in EntryRefresh()

This commit is contained in:
2025-05-31 19:57:59 -04:00
parent 2840ff3cf2
commit c4db7dfd59
2 changed files with 33 additions and 7 deletions
+11 -2
View File
@@ -83,10 +83,19 @@ func LibmuttonInit(inputCB func(prompt string) string, clientSpecificIniData [][
}
// generate rcw sanity check file (if requested)
if len(rcwPassphrase) > 0 {
err := wrappers.GenSanityCheck(global.ConfigDir+global.PathSeparator+"sanity.rcw", rcwPassphrase)
err := RCWSanityCheckGen(rcwPassphrase)
if err != nil {
return errors.New("unable to generate sanity check file: " + err.Error())
return err
}
}
return nil
}
// RCWSanityCheckGen generates the RCW sanity check file for libmutton.
func RCWSanityCheckGen(passphrase []byte) error {
err := wrappers.GenSanityCheck(global.ConfigDir+global.PathSeparator+"sanity.rcw", passphrase)
if err != nil {
return errors.New("unable to generate sanity check file: " + err.Error())
}
return nil
}