torture-krb5: Reformat and re-work test to be easier to follow
authorAndrew Bartlett <abartlet@samba.org>
Sun, 1 Feb 2015 23:18:23 +0000 (12:18 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 8 Feb 2015 07:07:07 +0000 (08:07 +0100)
commit11871c853a911b85ebb3f9ff5671ce1f9024188f
tree909cc3fbeb8c5e63aea2ea15162bf69467eded35
parent0a4374a93aced30245c0719e6a279f1dd7ea78f1
torture-krb5: Reformat and re-work test to be easier to follow

The behaviour is the same as in the previous commit, but it is much easier to follow
as the main test code now indicates to the send_and_recv callbacks what stage of the
test we are at, and resets the packet counter between stages.

This also re-orders the code so that the send and recv callbacks for each stage
are next to each other, and uses a case statement in the main send_and_recv driver
for clarity.

Andrew Bartlett

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Pair-programmed-with: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
source4/torture/krb5/kdc-canon.c