mei_rt2mei_rt2_fix_1
Last change
on this file since 34e667d was
ba6027a,
checked in by Mei <mei@…>, 12 years ago
|
1) modified code all around to add support for encrypted private key for
ID credential
2) add new abac_key_t structure (abac_key.c)
3) add new keycheck option to creddy
4) add 2 new test suites
|
-
Property mode set to
100755
|
File size:
1.3 KB
|
Rev | Line | |
---|
[ba6027a] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | # format, |
---|
| 4 | # runall clean |
---|
| 5 | # runall setup |
---|
| 6 | # runall run |
---|
| 7 | |
---|
| 8 | progname=$(basename $0) |
---|
| 9 | pwd=`pwd` |
---|
| 10 | |
---|
| 11 | if [ $# -eq 0 ]; then |
---|
| 12 | echo "Usage: $progname (clean|setup|run)" >&2; |
---|
| 13 | exit 1 |
---|
| 14 | fi |
---|
| 15 | |
---|
| 16 | ABAC_PROVER_PATH=`which abac_prover_yap | sed 's/\/abac_prover_yap//'` |
---|
| 17 | export ABAC_PROVER_PATH |
---|
| 18 | |
---|
| 19 | if [ "$1" = "clean" ]; then |
---|
| 20 | rm -rf allout.tmp |
---|
| 21 | rm -rf ENC_PRIVATE.PEM PFILE |
---|
| 22 | for i in `ls -1 `; do |
---|
| 23 | if [ -d $i ]; then |
---|
| 24 | printf "\n ==> CLEANING on %s\n" "$i" >& 2 ; |
---|
| 25 | cd $i |
---|
| 26 | rm -rf */*.der */*.pem */pfile */*.tmp |
---|
| 27 | rm -rf */*.cn */*.sha */*.log */creds_dump |
---|
| 28 | rm -rf *.der *.pem pfile *.tmp |
---|
| 29 | cd $pwd |
---|
| 30 | fi |
---|
| 31 | done |
---|
| 32 | elif [ "$1" = "setup" ]; then |
---|
| 33 | echo "dumdum" > PFILE |
---|
| 34 | echo ">>>> generate a encrypted private key ..." |
---|
| 35 | echo "passphrase is ==> dumdum" |
---|
| 36 | openssl genrsa -des3 -out ENC_PRIVATE.PEM -passout file:PFILE |
---|
| 37 | for i in `ls -1 `; do |
---|
| 38 | if [ -d $i ]; then |
---|
| 39 | printf "\n ==> SETUP on %s\n" "$i" >& 2; |
---|
| 40 | cd $i |
---|
| 41 | ./setup |
---|
| 42 | cd $pwd |
---|
| 43 | fi |
---|
| 44 | done |
---|
| 45 | elif [ "$1" = "run" ] ; then |
---|
| 46 | for i in `ls -1 `; do |
---|
| 47 | if [ -d $i ]; then |
---|
| 48 | printf "\n ==> RUN on %s\n" "$i" ; |
---|
| 49 | cd $i |
---|
| 50 | ./run_test |
---|
| 51 | cd $pwd |
---|
| 52 | fi |
---|
| 53 | done |
---|
| 54 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.