|
|
|
@ -21,7 +21,7 @@ type HostPolicy policy.SSHNamePolicyEngine
|
|
|
|
|
func NewX509PolicyEngine(policyOptions X509PolicyOptionsInterface) (X509Policy, error) {
|
|
|
|
|
// return early if no policy engine options to configure
|
|
|
|
|
if policyOptions == nil {
|
|
|
|
|
//nolint:nilnil // expected values
|
|
|
|
|
//nolint:nilnil,nolintlint // expected values
|
|
|
|
|
return nil, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -51,7 +51,7 @@ func NewX509PolicyEngine(policyOptions X509PolicyOptionsInterface) (X509Policy,
|
|
|
|
|
|
|
|
|
|
// ensure no policy engine is returned when no name options were provided
|
|
|
|
|
if len(options) == 0 {
|
|
|
|
|
//nolint:nilnil // expected values
|
|
|
|
|
//nolint:nilnil,nolintlint // expected values
|
|
|
|
|
return nil, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -95,7 +95,7 @@ func NewSSHHostPolicyEngine(policyOptions SSHPolicyOptionsInterface) (HostPolicy
|
|
|
|
|
func newSSHPolicyEngine(policyOptions SSHPolicyOptionsInterface, typ sshPolicyEngineType) (policy.SSHNamePolicyEngine, error) {
|
|
|
|
|
// return early if no policy engine options to configure
|
|
|
|
|
if policyOptions == nil {
|
|
|
|
|
//nolint:nilnil // expected values
|
|
|
|
|
//nolint:nilnil,nolintlint // expected values
|
|
|
|
|
return nil, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -137,7 +137,7 @@ func newSSHPolicyEngine(policyOptions SSHPolicyOptionsInterface, typ sshPolicyEn
|
|
|
|
|
|
|
|
|
|
// ensure no policy engine is returned when no name options were provided
|
|
|
|
|
if len(options) == 0 {
|
|
|
|
|
//nolint:nilnil // expected values
|
|
|
|
|
//nolint:nilnil,nolintlint // expected values
|
|
|
|
|
return nil, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|