Add seal cache purging back into postUnseal

This commit is contained in:
Jeff Mitchell 2017-02-28 18:36:28 -05:00
parent 09543dceeb
commit f2282247ef
1 changed files with 6 additions and 0 deletions

View File

@ -1215,6 +1215,12 @@ func (c *Core) postUnseal() (retErr error) {
purgable.Purge()
}
// Purge these for safety in case of a rekey
c.seal.SetBarrierConfig(nil)
if c.seal.RecoveryKeySupported() {
c.seal.SetRecoveryConfig(nil)
}
if err := enterprisePostUnseal(c); err != nil {
return err
}