X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/b04fe171f0375ecd5d8a24747ca1dff85720a0ca..6b200bc335dc93c5516ccb52f14bd896d8c7fad7:/SecurityTests/clxutils/sslScripts/runProtClient diff --git a/SecurityTests/clxutils/sslScripts/runProtClient b/SecurityTests/clxutils/sslScripts/runProtClient deleted file mode 100755 index 244cd266..00000000 --- a/SecurityTests/clxutils/sslScripts/runProtClient +++ /dev/null @@ -1,60 +0,0 @@ -#! /bin/csh -f -# -# wrapper for running sslViewer from protClient script. -# -# usage: runProtClient [q] [e errMsg] viewerArgs ... -# -set OUR_QUIET=0 -set VIEW_QUIET= -set VIEWER_ARGS= -set ERR_MSG= -set EXPECT_ERR=0 - -# -# q and e used here; q used both here and in sslViewer -# -while ( $#argv > 0 ) - switch ( "$argv[1]" ) - case q: - set OUR_QUIET = 1 - set VIEW_QUIET = q - shift - breaksw - case e: - shift - if($#argv == 0) then - echo specify errMsg with e option - exit(1) - endif - set ERR_MSG = "$argv[1]" - set EXPECT_ERR=1 - shift - breaksw - default: - set thisArg = "$argv[1]" - set VIEWER_ARGS = "$VIEWER_ARGS $thisArg" - shift - breaksw - endsw -end -if($OUR_QUIET == 0) then - if($EXPECT_ERR == 1) then - echo === $ERR_MSG - endif -endif -set cmd="sslViewer $VIEWER_ARGS $VIEW_QUIET" -if($OUR_QUIET == 0) then - echo $cmd -endif -$cmd -if($status != $EXPECT_ERR) then - if($EXPECT_ERR == 0) then - echo @@@@ UNEXPECTED ERROR FROM sslViewer. Aborting. - else - echo @@@ FAILED TO GET EXPECTED ERROR FROM sslViewer. Aborting. - endif - exit(1) -endif - - - \ No newline at end of file