diff options
author | Jakob Unterwurzacher | 2021-08-21 14:01:58 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2021-08-21 14:01:58 +0200 |
commit | 4b93525249e7dca3b76a4a2be924c4d57a4d81e1 (patch) | |
tree | c0636cec1911f70476444152a8435505449b5e29 /init_dir.go | |
parent | 2da0e13b1da4c903023200d6271b90f49077e8de (diff) |
configfile: pass struct to Create 1/2
The argument list got too long.
Part 1: Replace with Create2
Diffstat (limited to 'init_dir.go')
-rw-r--r-- | init_dir.go | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/init_dir.go b/init_dir.go index 70ba2ed..7953870 100644 --- a/init_dir.go +++ b/init_dir.go @@ -86,9 +86,17 @@ func initDir(args *argContainer) { fido2HmacSalt = nil } creator := tlog.ProgramName + " " + GitVersion - err = configfile.Create(args.config, password, args.plaintextnames, - args.scryptn, creator, args.aessiv, args.devrandom, fido2CredentialID, fido2HmacSalt, - args.deterministic_names) + err = configfile.Create2(&configfile.CreateArgs{ + Filename: args.config, + Password: password, + PlaintextNames: args.plaintextnames, + LogN: args.scryptn, + Creator: creator, + AESSIV: args.aessiv, + Devrandom: args.devrandom, + Fido2CredentialID: fido2CredentialID, + Fido2HmacSalt: fido2HmacSalt, + DeterministicNames: args.deterministic_names}) if err != nil { tlog.Fatal.Println(err) os.Exit(exitcodes.WriteConf) |