Added 'client policy' field in policy files to distinguish server from client policies.

This commit is contained in:
Joe Testa
2020-07-14 17:14:47 -04:00
parent b27d768c79
commit 8fb07edafd
2 changed files with 38 additions and 10 deletions

View File

@ -186,7 +186,7 @@ macs = mac_alg1, mac_alg2, mac_alg3'''
'''Creates a policy from a kex and ensures it is generated exactly as expected.'''
kex = self._get_kex()
pol_data = self.Policy.create('www.l0l.com', 'bannerX', kex)
pol_data = self.Policy.create('www.l0l.com', 'bannerX', kex, False)
# Today's date is embedded in the policy, so filter it out to get repeatable results.
pol_data = pol_data.replace(date.today().strftime('%Y/%m/%d'), '[todays date]')
@ -199,7 +199,7 @@ macs = mac_alg1, mac_alg2, mac_alg3'''
'''Creates a policy and evaluates it against the same server'''
kex = self._get_kex()
policy_data = self.Policy.create('www.l0l.com', None, kex)
policy_data = self.Policy.create('www.l0l.com', None, kex, False)
policy = self.Policy(policy_data=policy_data)
ret, errors = policy.evaluate('SSH Server 1.0', kex)