]> git.ipfire.org Git - thirdparty/squid.git/blob - test-suite/negotiate_test.sh
1c2160edc56c77f43e9dc70b73bafc117e392212
[thirdparty/squid.git] / test-suite / negotiate_test.sh
1 #!/bin/sh
2 while read request; do
3 data="`echo $request | cut -c4-`"
4 blob="$$.$data-$challenge.`date +%s`"
5 case $request in
6
7 ??" USER="*)
8 echo "AF Success-$blob `echo $request|cut -d= -f2-`"
9 ;;
10
11 ??" BAD"*)
12 echo "BH `echo $request|cut -c7-`"
13 ;;
14
15 ??" ERR"*)
16 echo "NA Invalid-$blob `echo $request|cut -c7-`"
17 ;;
18
19 "YR"*)
20 challenge="$data.`date +%s`"
21 echo "TT Challenge-$$.$challenge *"
22 ;;
23
24 "KK"*)
25 echo "TT Negotiate-$$.$data-$challenge.`date +%s` *"
26 ;;
27 *)
28 echo "BH Invalid request"
29 ;;
30 esac
31 done