mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
2f58faad66
There's a new "list" command, which takes a flag to say what to list. Removing the old hacky commands. Re-ordered some functions to remove some needless declarations. Reviewed-by: Richard Levitte <levitte@openssl.org>
38 lines
946 B
Bash
38 lines
946 B
Bash
#!/bin/sh
|
|
|
|
testsrc=testenc
|
|
test=./p
|
|
|
|
OPENSSL_CONF=/dev/null ; export OPENSSL_CONF
|
|
cmd="../util/shlib_wrap.sh ../apps/openssl"
|
|
|
|
cat $testsrc >$test;
|
|
|
|
echo cat
|
|
$cmd enc < $test > $test.cipher
|
|
$cmd enc < $test.cipher >$test.clear
|
|
cmp $test $test.clear || exit 1
|
|
/bin/rm $test.cipher $test.clear
|
|
|
|
echo base64
|
|
$cmd enc -a -e < $test > $test.cipher
|
|
$cmd enc -a -d < $test.cipher >$test.clear
|
|
cmp $test $test.clear || exit 1
|
|
/bin/rm $test.cipher $test.clear
|
|
|
|
for i in `$cmd list -cipher-commands`
|
|
do
|
|
echo $i
|
|
$cmd $i -bufsize 113 -e -k test < $test > $test.$i.cipher
|
|
$cmd $i -bufsize 157 -d -k test < $test.$i.cipher >$test.$i.clear
|
|
cmp $test $test.$i.clear || exit 1
|
|
/bin/rm $test.$i.cipher $test.$i.clear
|
|
|
|
echo $i base64
|
|
$cmd $i -bufsize 113 -a -e -k test < $test > $test.$i.cipher
|
|
$cmd $i -bufsize 157 -a -d -k test < $test.$i.cipher >$test.$i.clear
|
|
cmp $test $test.$i.clear || exit 1
|
|
/bin/rm $test.$i.cipher $test.$i.clear
|
|
done
|
|
rm -f $test
|