summaryrefslogtreecommitdiff
path: root/lib/talloc/test_magic_differs.sh
blob: 0f765f0e032dc9573c6c4ef28272a1009b1067b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# This test ensures that two different talloc processes do not use the same
# magic value to lessen the opportunity for transferrable attacks.

echo "test: magic differs"

if [
	"`./talloc_test_magic_differs_helper`" != "`./talloc_test_magic_differs_helper`"
]; then
	echo "failure: magic remained the same between executions"
	exit 1
fi

echo "success: magic differs"