s4/dns_server: split out function that does the MAC computation
authorRalph Boehme <slow@samba.org>
Mon, 30 May 2016 14:03:33 +0000 (16:03 +0200)
committerGarming Sam <garming@samba.org>
Wed, 15 Jun 2016 22:06:27 +0000 (00:06 +0200)
commit830316ce84c6f4994841a1c68e60d90225a2963d
treed173ef65a77823d75f3b4ff0e7a5008344665ef7
parent8ed125e8bb13904638f8506e860c169f788e8ee9
s4/dns_server: split out function that does the MAC computation

Split out function that does the MAC computation from the TSIG record
creating function. This will later simplify the code when creating error
responsed to TSIG requests with bad MACs where we have to add the TSIG
record with an empty MAC.

No functional behaviour change besides hard coding "gss-tsig" algorithm
name: later when sending a TSIG error response for a TKEY request with a
bad keyname, we won't have a tkey to fetch the algorithm name from.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11520

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
source4/dns_server/dns_crypto.c