Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
Updated regex refs #80
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddyKaiser committed Dec 23, 2014
1 parent f9abb38 commit a335176
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bash/mobileid-query.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ if [ "$RC" = "0" -a "$http_code" -eq 200 ]; then
case "$MSGTYPE" in
SOAP)
# Parse the response xml
RES_RC=$(sed -n -e 's/.*<mss:StatusCode Value="\(.*\)"\/>.*/\1/p' $TMP.rsp)
RES_RC=$(sed -n -e 's/.*<mss:StatusCode Value="\([^"]*\).*/\1/p' $TMP.rsp)
RES_ST=$(sed -n -e 's/.*<mss:StatusMessage>\(.*\)<\/mss:StatusMessage>.*/\1/p' $TMP.rsp)
;;
JSON)
Expand Down
4 changes: 2 additions & 2 deletions bash/mobileid-receipt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ if [ "$RC" = "0" -a "$http_code" -eq 200 ]; then
case "$MSGTYPE" in
SOAP)
# Parse the response xml
RES_RC=$(sed -n -e 's/.*<mss:StatusCode Value="\(...\)"\/>.*/\1/p' $TMP.rsp)
RES_RC=$(sed -n -e 's/.*<mss:StatusCode Value="\([^"]*\).*/\1/p' $TMP.rsp)
RES_ST=$(sed -n -e 's/.*<mss:StatusMessage>\(.*\)<\/mss:StatusMessage>.*/\1/p' $TMP.rsp)
RES_USR_ACK=$(sed -n -e 's/.*UserAck="\([^"]*\)\".*$/\1/p' $TMP.rsp)
RES_USR_ACK=$(sed -n -e 's/.*UserAck="\([^"]*\).*/\1/p' $TMP.rsp)
RES_USR_RSP=$(sed -n -e 's/.*UserResponse="{\(.*\)}.*/\1/p' $TMP.rsp | sed -e 's/\&quot\;/\"/g')
;;
JSON)
Expand Down
6 changes: 3 additions & 3 deletions bash/mobileid-sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,11 @@ if [ "$RC" = "0" -a "$http_code" -eq 200 ]; then
case "$MSGTYPE" in
SOAP)
# Parse the response xml
RES_TRANSID=$(sed -n -e 's/.*AP_TransID="\(.*\)" AP_.*/\1/p' $TMP.rsp)
RES_TRANSID=$(sed -n -e 's/.*AP_TransID="\([^"]*\).*/\1/p' $TMP.rsp)
RES_MSISDNID=$(sed -n -e 's/.*<mss:MSISDN>\(.*\)<\/mss:MSISDN>.*/\1/p' $TMP.rsp)
RES_RC=$(sed -n -e 's/.*<mss:StatusCode Value="\(.*\)"\/>.*/\1/p' $TMP.rsp)
RES_RC=$(sed -n -e 's/.*<mss:StatusCode Value="\([^"]*\).*/\1/p' $TMP.rsp)
RES_ST=$(sed -n -e 's/.*<mss:StatusMessage>\(.*\)<\/mss:StatusMessage>.*/\1/p' $TMP.rsp)
RES_MSSPID=$(sed -n -e 's/.*MSSP_TransID="\(.*\)" xmlns:mss.*/\1/p' $TMP.rsp)
RES_MSSPID=$(sed -n -e 's/.*MSSP_TransID="\([^"]*\).*/\1/p' $TMP.rsp)
sed -n -e 's/.*<mss:Base64Signature>\(.*\)<\/mss:Base64Signature>.*/\1/p' $TMP.rsp > $TMP.sig.base64
;;
JSON)
Expand Down

0 comments on commit a335176

Please sign in to comment.