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

Commit

Permalink
Check if encryption cipher is available.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Jul 7, 2013
1 parent b0f9a1a commit fe5de78
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/data-encrypt-aes256-test
Expand Up @@ -8,6 +8,18 @@ TestName="data-encrypt-aes256-test"
JobName=Crypto-AES256
. scripts/functions

#
# Make sure this cipher is supported by openssl.
#
openssl --help > /dev/null 2>&1
if test $? -eq 0; then
cnt=`openssl --help 2>&1 | grep -c aes-256-cbc`
if test $cnt -eq 0; then
echo "$TestName skipped: AES256 cipher not supported"
exit 0
fi
fi

scripts/cleanup
scripts/copy-crypto-confs
echo "${cwd}/build" >${cwd}/tmp/file-list
Expand Down
12 changes: 12 additions & 0 deletions tests/data-encrypt-blowfish-test
Expand Up @@ -8,6 +8,18 @@ TestName="data-encrypt-blowfish-test"
JobName=Crypto-blowfish
. scripts/functions

#
# Make sure this cipher is supported by openssl.
#
openssl --help > /dev/null 2>&1
if test $? -eq 0; then
cnt=`openssl --help 2>&1 | grep -c bf-cbc`
if test $cnt -eq 0; then
echo "$TestName skipped: BLOWFISH cipher not supported"
exit 0
fi
fi

scripts/cleanup
scripts/copy-crypto-confs
echo "${cwd}/build" >${cwd}/tmp/file-list
Expand Down
12 changes: 12 additions & 0 deletions tests/data-encrypt-camellia256-test
Expand Up @@ -8,6 +8,18 @@ TestName="data-encrypt-camellia256-test"
JobName=Crypto-camellia256
. scripts/functions

#
# Make sure this cipher is supported by openssl.
#
openssl --help > /dev/null 2>&1
if test $? -eq 0; then
cnt=`openssl --help 2>&1 | grep -c camellia-256-cbc`
if test $cnt -eq 0; then
echo "$TestName skipped: CAMELIA256 cipher not supported"
exit 0
fi
fi

scripts/cleanup
scripts/copy-crypto-confs
echo "${cwd}/build" >${cwd}/tmp/file-list
Expand Down

0 comments on commit fe5de78

Please sign in to comment.