Skip to content

Commit be739b0

Browse files
author
Rich Salz
committed
Drop CA.sh for CA.pl
Remove CA.sh script and use CA.pl for testing, etc. Reviewed-by: Richard Levitte <[email protected]>
1 parent 5adac91 commit be739b0

File tree

9 files changed

+18
-212
lines changed

9 files changed

+18
-212
lines changed

CHANGES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
done while fixing the error code for the key-too-small case.
4040
[Annie Yousar <[email protected]>]
4141

42+
*) CA.sh has been removmed; use CA.pl instead.
43+
[Rich Salz]
44+
4245
*) Removed old DES API.
4346
[Rich Salz]
4447

apps/CA.sh

Lines changed: 0 additions & 198 deletions
This file was deleted.

apps/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ LIBSSL=-L.. -lssl
3131

3232
PROGRAM= openssl
3333

34-
SCRIPTS=CA.sh CA.pl tsget
34+
SCRIPTS=CA.pl tsget
3535

3636
EXE= $(PROGRAM)$(EXE_EXT)
3737

doc/apps/ca.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,8 +641,8 @@ the database has to be kept in memory.
641641

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

647647
Any fields in a request that are not present in a policy are silently
648648
deleted. This does not happen if the B<-preserveDN> option is used. To

test/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ test_ca: ../apps/openssl$(EXE_EXT) testca CAss.cnf Uss.cnf
352352
echo SKIP $@ -- requires RSA; \
353353
else \
354354
echo $(START) $@; \
355-
sh ./testca; \
355+
sh ./testca $(PERL); \
356356
fi
357357

358358
test_tsa: ../apps/openssl$(EXE_EXT) testtsa CAtsa.cnf ../util/shlib_wrap.sh

test/testca

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/bin/sh
22

3-
SH="/bin/sh"
3+
PERL="$1"
4+
45
if test "$OSTYPE" = msdosdjgpp; then
56
PATH="../apps\;$PATH"
67
else
78
PATH="../apps:$PATH"
89
fi
9-
export SH PATH
10+
export PATH
1011

1112
SSLEAY_CONFIG="-config CAss.cnf"
1213
export SSLEAY_CONFIG
@@ -15,7 +16,7 @@ OPENSSL="`pwd`/../util/opensslwrap.sh"
1516
export OPENSSL
1617

1718
/bin/rm -fr demoCA
18-
OPENSSL_CONFIG=/dev/null $SH ../apps/CA.sh -newca <<EOF
19+
OPENSSL_CONFIG=/dev/null $PERL ../apps/CA.pl -newca <<EOF
1920
EOF
2021

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

2526
SSLEAY_CONFIG="-config Uss.cnf"
2627
export SSLEAY_CONFIG
27-
$SH ../apps/CA.sh -newreq
28+
$PERL ../apps/CA.pl -newreq
2829
if [ $? != 0 ]; then
2930
exit 1;
3031
fi
3132

3233

3334
SSLEAY_CONFIG="-config ../apps/openssl.cnf"
3435
export SSLEAY_CONFIG
35-
$SH ../apps/CA.sh -sign <<EOF
36+
$PERL ../apps/CA.pl -sign <<EOF
3637
y
3738
y
3839
EOF
@@ -41,7 +42,7 @@ if [ $? != 0 ]; then
4142
fi
4243

4344

44-
$SH ../apps/CA.sh -verify newcert.pem
45+
$PERL ../apps/CA.pl -verify newcert.pem
4546
if [ $? != 0 ]; then
4647
exit 1;
4748
fi

test/testtsa

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export SH PATH
1414

1515
OPENSSL_CONF="../CAtsa.cnf"
1616
export OPENSSL_CONF
17-
# Because that's what ../apps/CA.sh really looks at
17+
# Because that's what ../apps/CA.pl really looks at
1818
SSLEAY_CONFIG="-config $OPENSSL_CONF"
1919
export SSLEAY_CONFIG
2020

test/testtsa.com

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $ exe_dir = "sys$disk:[-.''__arch'.exe.apps]"
1313
$
1414
$ openssl = "mcr ''f$parse(exe_dir+"openssl.exe")'"
1515
$ OPENSSL_CONF = "[-]CAtsa.cnf"
16-
$ ! Because that's what ../apps/CA.sh really looks at
16+
$ ! Because that's what ../apps/CA.pl really looks at
1717
$ SSLEAY_CONFIG = "-config " + OPENSSL_CONF
1818
$
1919
$ error:

util/pl/unix.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,13 +417,13 @@ sub get_tests
417417
);
418418
$copies .= copy_scripts(1, 'util', @utils);
419419

420-
my @apps = ( 'CA.sh',
420+
my @apps = ( 'CA.pl',
421421
'openssl.cnf',
422422
'server2.pem',
423423
);
424424
$copies .= copy_scripts(1, 'apps', @apps);
425425

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

0 commit comments

Comments
 (0)