if pubkey is the same and no signature in payload and signature checking is not enabled, we must also return the aes key

This commit is contained in:
Volker Schwicking 2014-07-03 21:23:12 +02:00
parent bd35eb77b9
commit 8612c34341

View File

@ -464,6 +464,9 @@ class Auth(object):
'reply does not contain any signature. Either enable signing the public ' 'reply does not contain any signature. Either enable signing the public '
'key on the master or disable signature verification on the minion.') 'key on the master or disable signature verification on the minion.')
return '' return ''
else:
aes, token = self.decrypt_aes(payload, False)
return aes
else: else:
# verify the masters pubkey signature if the minion # verify the masters pubkey signature if the minion