Skip to content

Commit

Permalink
Drop CA.sh for CA.pl
Browse files Browse the repository at this point in the history
Remove CA.sh script and use CA.pl for testing, etc.

Reviewed-by: Richard Levitte <[email protected]>
  • Loading branch information
Rich Salz committed Apr 8, 2015
1 parent 5adac91 commit be739b0
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 212 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
done while fixing the error code for the key-too-small case.
[Annie Yousar <[email protected]>]

*) CA.sh has been removmed; use CA.pl instead.
[Rich Salz]

*) Removed old DES API.
[Rich Salz]

Expand Down
198 changes: 0 additions & 198 deletions apps/CA.sh

This file was deleted.

2 changes: 1 addition & 1 deletion apps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ LIBSSL=-L.. -lssl

PROGRAM= openssl

SCRIPTS=CA.sh CA.pl tsget
SCRIPTS=CA.pl tsget

EXE= $(PROGRAM)$(EXE_EXT)

Expand Down
4 changes: 2 additions & 2 deletions doc/apps/ca.pod
Original file line number Diff line number Diff line change
Expand Up @@ -641,8 +641,8 @@ the database has to be kept in memory.

The B<ca> command really needs rewriting or the required functionality
exposed at either a command or interface level so a more friendly utility
(perl script or GUI) can handle things properly. The scripts B<CA.sh> and
B<CA.pl> help a little but not very much.
(perl script or GUI) can handle things properly. The script
B<CA.pl> helps a little but not very much.

Any fields in a request that are not present in a policy are silently
deleted. This does not happen if the B<-preserveDN> option is used. To
Expand Down
2 changes: 1 addition & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ test_ca: ../apps/openssl$(EXE_EXT) testca CAss.cnf Uss.cnf
echo SKIP $@ -- requires RSA; \
else \
echo $(START) $@; \
sh ./testca; \
sh ./testca $(PERL); \
fi

test_tsa: ../apps/openssl$(EXE_EXT) testtsa CAtsa.cnf ../util/shlib_wrap.sh
Expand Down
13 changes: 7 additions & 6 deletions test/testca
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/bin/sh

SH="/bin/sh"
PERL="$1"

if test "$OSTYPE" = msdosdjgpp; then
PATH="../apps\;$PATH"
else
PATH="../apps:$PATH"
fi
export SH PATH
export PATH

SSLEAY_CONFIG="-config CAss.cnf"
export SSLEAY_CONFIG
Expand All @@ -15,7 +16,7 @@ OPENSSL="`pwd`/../util/opensslwrap.sh"
export OPENSSL

/bin/rm -fr demoCA
OPENSSL_CONFIG=/dev/null $SH ../apps/CA.sh -newca <<EOF
OPENSSL_CONFIG=/dev/null $PERL ../apps/CA.pl -newca <<EOF
EOF

if [ $? != 0 ]; then
Expand All @@ -24,15 +25,15 @@ fi

SSLEAY_CONFIG="-config Uss.cnf"
export SSLEAY_CONFIG
$SH ../apps/CA.sh -newreq
$PERL ../apps/CA.pl -newreq
if [ $? != 0 ]; then
exit 1;
fi


SSLEAY_CONFIG="-config ../apps/openssl.cnf"
export SSLEAY_CONFIG
$SH ../apps/CA.sh -sign <<EOF
$PERL ../apps/CA.pl -sign <<EOF
y
y
EOF
Expand All @@ -41,7 +42,7 @@ if [ $? != 0 ]; then
fi


$SH ../apps/CA.sh -verify newcert.pem
$PERL ../apps/CA.pl -verify newcert.pem
if [ $? != 0 ]; then
exit 1;
fi
Expand Down
2 changes: 1 addition & 1 deletion test/testtsa
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export SH PATH

OPENSSL_CONF="../CAtsa.cnf"
export OPENSSL_CONF
# Because that's what ../apps/CA.sh really looks at
# Because that's what ../apps/CA.pl really looks at
SSLEAY_CONFIG="-config $OPENSSL_CONF"
export SSLEAY_CONFIG

Expand Down
2 changes: 1 addition & 1 deletion test/testtsa.com
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $ exe_dir = "sys$disk:[-.''__arch'.exe.apps]"
$
$ openssl = "mcr ''f$parse(exe_dir+"openssl.exe")'"
$ OPENSSL_CONF = "[-]CAtsa.cnf"
$ ! Because that's what ../apps/CA.sh really looks at
$ ! Because that's what ../apps/CA.pl really looks at
$ SSLEAY_CONFIG = "-config " + OPENSSL_CONF
$
$ error:
Expand Down
4 changes: 2 additions & 2 deletions util/pl/unix.pl
Original file line number Diff line number Diff line change
Expand Up @@ -417,13 +417,13 @@ sub get_tests
);
$copies .= copy_scripts(1, 'util', @utils);

my @apps = ( 'CA.sh',
my @apps = ( 'CA.pl',
'openssl.cnf',
'server2.pem',
);
$copies .= copy_scripts(1, 'apps', @apps);

$scripts = "test_scripts: \$(TEST_D)/CA.sh \$(TEST_D)/opensslwrap.sh \$(TEST_D)/openssl.cnf \$(TEST_D)/shlib_wrap.sh ocsp smime\n";
$scripts = "test_scripts: \$(TEST_D)/CA.pl \$(TEST_D)/opensslwrap.sh \$(TEST_D)/openssl.cnf \$(TEST_D)/shlib_wrap.sh ocsp smime\n";
$scripts .= "\nocsp:\n\tcp -R test/ocsp-tests \$(TEST_D)\n";
$scripts .= "\smime:\n\tcp -R test/smime-certs \$(TEST_D)\n";

Expand Down

0 comments on commit be739b0

Please sign in to comment.