public/unlock-store: idempotent call for passphrases
This allows the user to call it even after the store has been unlock in order to get the admin token.
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
package secretstore
|
||||
|
||||
func Memzero(ba []byte) { memzero(ba) }
|
||||
|
||||
func memzero(ba []byte) {
|
||||
for i := range ba {
|
||||
ba[i] = 0
|
||||
|
Reference in New Issue
Block a user