MCPcopy
hub / github.com/hardentools/hardentools / IsHardened

Method IsHardened

registry_utils.go:206–222  ·  view source on GitHub ↗

IsHardened verifies if harden object of type RegistryMultiValue is already hardened.

()

Source from the content-addressed store, hash-verified

204// IsHardened verifies if harden object of type RegistryMultiValue is already
205// hardened.
206func (regMultiValue *RegistryMultiValue) IsHardened() (isHardened bool) {
207 var hardened = true
208
209 for _, singleDWORD := range regMultiValue.ArraySingleDWORD {
210 if !singleDWORD.IsHardened() {
211 hardened = false
212 }
213 }
214
215 for _, singleSZ := range regMultiValue.ArraySingleSZ {
216 if !singleSZ.IsHardened() {
217 hardened = false
218 }
219 }
220
221 return hardened
222}
223
224// Name returns the (short) name of the harden item.
225func (regMultiValue *RegistryMultiValue) Name() string {

Callers

nothing calls this directly

Calls 1

IsHardenedMethod · 0.65

Tested by

no test coverage detected