diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
commit | 3cf7c3ef441822c889356fd1812ebf2944a59851 (patch) | |
tree | c513fe68548b40365c1c2ebfe35c58ad431cdd77 /net-misc/asterisk/files/1.6.2/sip_calc_auth | |
parent | 05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff) |
gentoo resync : 25.08.2020
Diffstat (limited to 'net-misc/asterisk/files/1.6.2/sip_calc_auth')
-rw-r--r-- | net-misc/asterisk/files/1.6.2/sip_calc_auth | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/net-misc/asterisk/files/1.6.2/sip_calc_auth b/net-misc/asterisk/files/1.6.2/sip_calc_auth deleted file mode 100644 index 3f050ada5738..000000000000 --- a/net-misc/asterisk/files/1.6.2/sip_calc_auth +++ /dev/null @@ -1,25 +0,0 @@ -#! /bin/bash - -[ $# -lt 7 ] && echo "USAGE: $0 username realm password method uri algorithm nonce" && exit 1 - -un=$1 -realm=$2 -pw=$3 -method=$4 -uri=$5 -alg=$6 -nonce=$7 - -echo "Using $un@$realm (secret $pw) for method $method to $uri with nonce $nonce (alg=$alg)" - -a1=$un:$realm:$pw -a2=$method:$uri -ha1=$(echo -n "$a1" | openssl $alg) -ha2=$(echo -n "$a2" | openssl $alg) -resp=$(echo -n "$ha1:$nonce:$ha2" | openssl $alg) - -echo "a1=$a1" -echo "a2=$a2" -echo "ha1=$ha1" -echo "ha2=$ha2" -echo "resp=$resp" |