diff options
author | Dave Brolley <brolley@redhat.com> | 2009-02-11 12:00:13 -0500 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-02-11 12:00:13 -0500 |
commit | 89dd03e34c2f890e9fbb065c74a60036aa480827 (patch) | |
tree | 5a8873113a7e6384926493d922acfb6acb3d3c84 /stap-server | |
parent | f02fa988a4f37292d0da10f086901246d65013c0 (diff) | |
download | systemtap-steved-89dd03e34c2f890e9fbb065c74a60036aa480827.tar.gz systemtap-steved-89dd03e34c2f890e9fbb065c74a60036aa480827.tar.xz systemtap-steved-89dd03e34c2f890e9fbb065c74a60036aa480827.zip |
Server response is no longer signed. Passed as a zip archive instead.
Diffstat (limited to 'stap-server')
-rwxr-xr-x | stap-server | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/stap-server b/stap-server index a4d0e8c7..ec827a09 100755 --- a/stap-server +++ b/stap-server @@ -58,12 +58,12 @@ function initialization { tmpdir_env=`dirname $tmpdir_server` # Signed reponse file name. - jar_server=$3 - test "X$jar_server" != "X" || \ - fatal ".jar archive file not specified" - # Make sure the specified .jar file exists. - test -f $jar_server || \ - fatal "Unable to find .jar archive file $jar_server" + zip_server=$3 + test "X$zip_server" != "X" || \ + fatal ".zip archive file not specified" + # Make sure the specified .zip file exists. + test -f $zip_server || \ + fatal "Unable to find .zip archive file $zip_server" # Where is the ssl certificate/key database? ssl_db=$4 @@ -385,12 +385,9 @@ function create_response { function package_response { cd $tmpdir_env - # We will be digitally signing the server's temporary directory. This - # will sign the entire directory and compress it into a .jar - # archive. - # - # Generate the jar file - signtool -d $ssl_db -k $nss_cert -p `cat $nss_pw` -Z $jar_server $tmpdir_server >/dev/null + # Compress the server's temporary directory into a .zip archive. + (rm $zip_server && zip -r $zip_server `basename $tmpdir_server` > /dev/null) || \ + fatal "zip of request tree, $tmpdir_server, failed" } # function: fatal [ MESSAGE ] |