@@ -89,7 +89,7 @@ func EncryptFile(filePath string) {
89
89
// the unlock password immediately.
90
90
// If a password is available and hence obtained, the function will return the password string.
91
91
// If no password is available or an IO error occurs, the function will return an empty string.
92
- func GetUnlockingPassword (ctx context.Context , useTLS bool , logger lalog.Logger , challengeStr , serverAddr string ) string {
92
+ func GetUnlockingPassword (ctx context.Context , useTLS bool , logger * lalog.Logger , challengeStr , serverAddr string ) string {
93
93
hostName , _ := os .Hostname ()
94
94
dialTimeoutCtx , dialTimeoutCancel := context .WithTimeout (ctx , PasswdRPCTimeout )
95
95
defer dialTimeoutCancel ()
@@ -144,7 +144,7 @@ func GetUnlockingPassword(ctx context.Context, useTLS bool, logger lalog.Logger,
144
144
// and config files, and retries until this password is available and subsequently obtained.
145
145
// The function blocks caller until a password has been obtained or the input context is cancelled.
146
146
// The default source of PRNG must be seeded prior to calling this function.
147
- func GetUnlockingPasswordWithRetry (ctx context.Context , useTLS bool , logger lalog.Logger , serverAddrs ... string ) string {
147
+ func GetUnlockingPasswordWithRetry (ctx context.Context , useTLS bool , logger * lalog.Logger , serverAddrs ... string ) string {
148
148
challengeStr := netboundfileenc .GetRandomChallenge ()
149
149
logger .Info ("" , nil , "trying to obtain config file decryption password from %d servers via gRPC, using magic challenge \" %s\" " , len (serverAddrs ), challengeStr )
150
150
for {
@@ -166,7 +166,7 @@ func GetUnlockingPasswordWithRetry(ctx context.Context, useTLS bool, logger lalo
166
166
}
167
167
168
168
// HandleSecurityDataUtil the main routine of data file maintenance utilities.
169
- func HandleSecurityDataUtil (dataUtil , dataUtilFile string , logger lalog.Logger ) {
169
+ func HandleSecurityDataUtil (dataUtil , dataUtilFile string , logger * lalog.Logger ) {
170
170
if dataUtilFile == "" {
171
171
logger .Abort ("" , nil , "please provide data utility target file in parameter \" -datautilfile\" " )
172
172
return
0 commit comments