telegraf/config/secret_without_mlock.go

16 lines
195 B
Go

//go:build !linux
package config
import (
"github.com/awnumar/memguard"
)
func protect(secret []byte) error {
return nil
}
func ReleaseSecret(secret []byte) {
memguard.WipeBytes(secret)
}