1999-05-13 11:37:32 +00:00
|
|
|
$! TESTS.COM -- Performs the necessary tests
|
|
|
|
$!
|
|
|
|
$! P1 tests to be performed. Empty means all.
|
2011-03-19 09:47:47 +00:00
|
|
|
$! P2 Pointer size: "", "32", or "64".
|
|
|
|
$!
|
|
|
|
$! Announce/identify.
|
|
|
|
$!
|
|
|
|
$ proc = f$environment( "procedure")
|
|
|
|
$ write sys$output "@@@ "+ -
|
|
|
|
f$parse( proc, , , "name")+ f$parse( proc, , , "type")
|
|
|
|
$!
|
1999-05-13 11:37:32 +00:00
|
|
|
$ __proc = f$element(0,";",f$environment("procedure"))
|
|
|
|
$ __here = f$parse(f$parse("A.;",__proc) - "A.;","[]A.;") - "A.;"
|
|
|
|
$ __save_default = f$environment("default")
|
2011-03-19 09:47:47 +00:00
|
|
|
$ __arch = "VAX"
|
2009-05-15 16:37:08 +00:00
|
|
|
$ if f$getsyi("cpu") .ge. 128 then -
|
2009-08-25 07:17:13 +00:00
|
|
|
__arch = f$edit( f$getsyi( "ARCH_NAME"), "UPCASE")
|
2011-03-19 09:47:47 +00:00
|
|
|
$ if __arch .eqs. "" then __arch = "UNK"
|
|
|
|
$!
|
|
|
|
$ __archd = __arch
|
|
|
|
$ pointer_size = ""
|
|
|
|
$ if (p2 .eq. "64")
|
|
|
|
$ then
|
|
|
|
$ pointer_size = "64"
|
|
|
|
$ __archd = __arch+ "_64"
|
|
|
|
$ endif
|
|
|
|
$!
|
|
|
|
$ texe_dir := sys$disk:[-.'__archd'.exe.test]
|
|
|
|
$ exe_dir := sys$disk:[-.'__archd'.exe.apps]
|
1999-05-13 11:37:32 +00:00
|
|
|
$
|
2010-11-23 02:12:14 +00:00
|
|
|
$ set default '__here'
|
|
|
|
$
|
2010-11-29 22:27:18 +00:00
|
|
|
$ ROOT = F$PARSE("sys$disk:[-]A.;0",,,,"SYNTAX_ONLY,NO_CONCEAL") - "A.;0"
|
|
|
|
$ ROOT_DEV = F$PARSE(ROOT,,,"DEVICE","SYNTAX_ONLY")
|
|
|
|
$ ROOT_DIR = F$PARSE(ROOT,,,"DIRECTORY","SYNTAX_ONLY") -
|
|
|
|
- ".][000000" - "[000000." - "][" - "[" - "]"
|
|
|
|
$ ROOT = ROOT_DEV + "[" + ROOT_DIR
|
|
|
|
$ DEFINE/NOLOG SSLROOT 'ROOT'.APPS.] /TRANS=CONC
|
2010-11-22 23:42:48 +00:00
|
|
|
$ openssl_conf := sslroot:[000000]openssl-vms.cnf
|
2010-01-25 00:20:32 +00:00
|
|
|
$
|
1999-05-13 11:37:32 +00:00
|
|
|
$ on control_y then goto exit
|
|
|
|
$ on error then goto exit
|
|
|
|
$
|
|
|
|
$ if p1 .nes. ""
|
|
|
|
$ then
|
|
|
|
$ tests = p1
|
|
|
|
$ else
|
2009-05-15 16:37:08 +00:00
|
|
|
$! NOTE: This list reflects the list of dependencies following the
|
|
|
|
$! "alltests" target in Makefile. This should make it easy to see
|
|
|
|
$! if there's a difference that needs to be taken care of.
|
1999-05-13 11:37:32 +00:00
|
|
|
$ tests := -
|
2000-09-08 20:25:49 +00:00
|
|
|
test_des,test_idea,test_sha,test_md4,test_md5,test_hmac,-
|
2006-02-26 10:47:57 +00:00
|
|
|
test_md2,test_mdc2,test_wp,-
|
|
|
|
test_rmd,test_rc2,test_rc4,test_rc5,test_bf,test_cast,test_aes,-
|
2002-08-10 01:35:10 +00:00
|
|
|
test_rand,test_bn,test_ec,test_ecdsa,test_ecdh,-
|
2002-05-23 13:33:08 +00:00
|
|
|
test_enc,test_x509,test_rsa,test_crl,test_sid,-
|
2000-01-16 02:11:19 +00:00
|
|
|
test_gen,test_req,test_pkcs7,test_verify,test_dh,test_dsa,-
|
2008-12-16 10:54:28 +00:00
|
|
|
test_ss,test_ca,test_engine,test_evp,test_ssl,test_tsa,test_ige,-
|
2014-09-25 04:47:23 +00:00
|
|
|
test_jpake,test_srp,test_cms,test_ocsp,test_v3name,test_heartbeat,-
|
|
|
|
test_constant_time
|
1999-05-13 11:37:32 +00:00
|
|
|
$ endif
|
|
|
|
$ tests = f$edit(tests,"COLLAPSE")
|
|
|
|
$
|
|
|
|
$ BNTEST := bntest
|
2001-03-08 14:40:20 +00:00
|
|
|
$ ECTEST := ectest
|
2002-05-23 13:33:08 +00:00
|
|
|
$ ECDSATEST := ecdsatest
|
2002-08-10 01:35:10 +00:00
|
|
|
$ ECDHTEST := ecdhtest
|
1999-05-13 11:37:32 +00:00
|
|
|
$ EXPTEST := exptest
|
|
|
|
$ IDEATEST := ideatest
|
|
|
|
$ SHATEST := shatest
|
|
|
|
$ SHA1TEST := sha1test
|
2012-03-01 21:29:58 +00:00
|
|
|
$ SHA256TEST := sha256t
|
|
|
|
$ SHA512TEST := sha512t
|
1999-05-13 11:37:32 +00:00
|
|
|
$ MDC2TEST := mdc2test
|
|
|
|
$ RMDTEST := rmdtest
|
|
|
|
$ MD2TEST := md2test
|
2000-09-08 20:25:49 +00:00
|
|
|
$ MD4TEST := md4test
|
1999-05-13 11:37:32 +00:00
|
|
|
$ MD5TEST := md5test
|
|
|
|
$ HMACTEST := hmactest
|
2006-03-06 12:09:34 +00:00
|
|
|
$ WPTEST := wp_test
|
1999-05-13 11:37:32 +00:00
|
|
|
$ RC2TEST := rc2test
|
|
|
|
$ RC4TEST := rc4test
|
|
|
|
$ RC5TEST := rc5test
|
|
|
|
$ BFTEST := bftest
|
|
|
|
$ CASTTEST := casttest
|
|
|
|
$ DESTEST := destest
|
|
|
|
$ RANDTEST := randtest
|
|
|
|
$ DHTEST := dhtest
|
|
|
|
$ DSATEST := dsatest
|
|
|
|
$ METHTEST := methtest
|
|
|
|
$ SSLTEST := ssltest
|
2000-01-18 15:08:49 +00:00
|
|
|
$ RSATEST := rsa_test
|
2000-10-26 21:07:28 +00:00
|
|
|
$ ENGINETEST := enginetest
|
2001-09-27 16:07:36 +00:00
|
|
|
$ EVPTEST := evp_test
|
2008-12-16 10:54:28 +00:00
|
|
|
$ IGETEST := igetest
|
|
|
|
$ JPAKETEST := jpaketest
|
2011-03-19 10:46:21 +00:00
|
|
|
$ SRPTEST := srptest
|
2014-06-12 14:59:47 +00:00
|
|
|
$ V3NAMETEST := v3nametest
|
2010-11-18 22:24:22 +00:00
|
|
|
$ ASN1TEST := asn1test
|
2014-06-12 14:59:47 +00:00
|
|
|
$ HEARTBEATTEST := heartbeat_test
|
2014-09-25 04:47:23 +00:00
|
|
|
$ CONSTTIMETEST := constant_time_test
|
2011-03-19 09:47:47 +00:00
|
|
|
$!
|
1999-05-13 11:37:32 +00:00
|
|
|
$ tests_i = 0
|
|
|
|
$ loop_tests:
|
|
|
|
$ tests_e = f$element(tests_i,",",tests)
|
|
|
|
$ tests_i = tests_i + 1
|
|
|
|
$ if tests_e .eqs. "," then goto exit
|
2010-11-18 22:46:55 +00:00
|
|
|
$ write sys$output "---> ''tests_e'"
|
2000-03-13 22:27:52 +00:00
|
|
|
$ gosub 'tests_e'
|
|
|
|
$ goto loop_tests
|
1999-05-13 11:37:32 +00:00
|
|
|
$
|
2001-09-27 16:07:36 +00:00
|
|
|
$ test_evp:
|
2010-11-29 22:27:18 +00:00
|
|
|
$ mcr 'texe_dir''evptest' 'ROOT'.CRYPTO.EVP]evptests.txt
|
2001-09-27 16:07:36 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_des:
|
|
|
|
$ mcr 'texe_dir''destest'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_idea:
|
|
|
|
$ mcr 'texe_dir''ideatest'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_sha:
|
|
|
|
$ mcr 'texe_dir''shatest'
|
|
|
|
$ mcr 'texe_dir''sha1test'
|
2012-03-01 21:29:58 +00:00
|
|
|
$ mcr 'texe_dir''sha256test'
|
|
|
|
$ mcr 'texe_dir''sha512test'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_mdc2:
|
|
|
|
$ mcr 'texe_dir''mdc2test'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_md5:
|
|
|
|
$ mcr 'texe_dir''md5test'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
2000-09-08 20:25:49 +00:00
|
|
|
$ test_md4:
|
|
|
|
$ mcr 'texe_dir''md4test'
|
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_hmac:
|
|
|
|
$ mcr 'texe_dir''hmactest'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
2006-03-06 12:09:34 +00:00
|
|
|
$ test_wp:
|
|
|
|
$ mcr 'texe_dir''wptest'
|
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_md2:
|
|
|
|
$ mcr 'texe_dir''md2test'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_rmd:
|
|
|
|
$ mcr 'texe_dir''rmdtest'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_bf:
|
|
|
|
$ mcr 'texe_dir''bftest'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_cast:
|
|
|
|
$ mcr 'texe_dir''casttest'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_rc2:
|
|
|
|
$ mcr 'texe_dir''rc2test'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_rc4:
|
|
|
|
$ mcr 'texe_dir''rc4test'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_rc5:
|
|
|
|
$ mcr 'texe_dir''rc5test'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_rand:
|
|
|
|
$ mcr 'texe_dir''randtest'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_enc:
|
2011-03-19 09:47:47 +00:00
|
|
|
$ @testenc.com 'pointer_size'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_x509:
|
2011-03-19 09:47:47 +00:00
|
|
|
$ set noon
|
|
|
|
$ define sys$error test_x509.err
|
1999-05-13 11:37:32 +00:00
|
|
|
$ write sys$output "test normal x509v1 certificate"
|
2011-03-19 09:47:47 +00:00
|
|
|
$ @tx509.com "" 'pointer_size'
|
1999-05-13 11:37:32 +00:00
|
|
|
$ write sys$output "test first x509v3 certificate"
|
2011-03-19 09:47:47 +00:00
|
|
|
$ @tx509.com v3-cert1.pem 'pointer_size'
|
1999-05-13 11:37:32 +00:00
|
|
|
$ write sys$output "test second x509v3 certificate"
|
2011-03-19 09:47:47 +00:00
|
|
|
$ @tx509.com v3-cert2.pem 'pointer_size'
|
1999-05-13 11:37:32 +00:00
|
|
|
$ deassign sys$error
|
2011-03-19 09:47:47 +00:00
|
|
|
$ set on
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_rsa:
|
2011-03-19 09:47:47 +00:00
|
|
|
$ set noon
|
|
|
|
$ define sys$error test_rsa.err
|
|
|
|
$ @trsa.com "" 'pointer_size'
|
1999-05-13 11:37:32 +00:00
|
|
|
$ deassign sys$error
|
|
|
|
$ mcr 'texe_dir''rsatest'
|
2011-03-19 09:47:47 +00:00
|
|
|
$ set on
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_crl:
|
2011-03-19 09:47:47 +00:00
|
|
|
$ set noon
|
|
|
|
$ define sys$error test_crl.err
|
|
|
|
$ @tcrl.com "" 'pointer_size'
|
1999-05-13 11:37:32 +00:00
|
|
|
$ deassign sys$error
|
2011-03-19 09:47:47 +00:00
|
|
|
$ set on
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_sid:
|
2011-03-19 09:47:47 +00:00
|
|
|
$ set noon
|
|
|
|
$ define sys$error test_sid.err
|
|
|
|
$ @tsid.com "" 'pointer_size'
|
1999-05-13 11:37:32 +00:00
|
|
|
$ deassign sys$error
|
2011-03-19 09:47:47 +00:00
|
|
|
$ set on
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_req:
|
2011-03-19 09:47:47 +00:00
|
|
|
$ set noon
|
|
|
|
$ define sys$error test_req.err
|
|
|
|
$ @treq.com "" 'pointer_size'
|
|
|
|
$ @treq.com testreq2.pem 'pointer_size'
|
1999-05-13 11:37:32 +00:00
|
|
|
$ deassign sys$error
|
2011-03-19 09:47:47 +00:00
|
|
|
$ set on
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_pkcs7:
|
2011-03-19 09:47:47 +00:00
|
|
|
$ set noon
|
|
|
|
$ define sys$error test_pkcs7.err
|
|
|
|
$ @tpkcs7.com "" 'pointer_size'
|
|
|
|
$ @tpkcs7d.com "" 'pointer_size'
|
1999-05-13 11:37:32 +00:00
|
|
|
$ deassign sys$error
|
2011-03-19 09:47:47 +00:00
|
|
|
$ set on
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_bn:
|
2010-11-23 02:12:14 +00:00
|
|
|
$ write sys$output -
|
|
|
|
"starting big number library test, could take a while..."
|
|
|
|
$ set noon
|
2011-03-19 09:47:47 +00:00
|
|
|
$ define sys$error test_bn.err
|
|
|
|
$ define sys$output test_bn.out
|
2010-11-23 02:12:14 +00:00
|
|
|
$ @ bctest.com
|
|
|
|
$ status = $status
|
|
|
|
$ deassign sys$error
|
|
|
|
$ deassign sys$output
|
2011-03-19 09:47:47 +00:00
|
|
|
$ set on
|
2010-11-23 02:12:14 +00:00
|
|
|
$ if (status)
|
|
|
|
$ then
|
|
|
|
$ create /fdl = sys$input bntest-vms.tmp
|
1999-05-13 11:37:32 +00:00
|
|
|
FILE
|
|
|
|
ORGANIZATION sequential
|
|
|
|
RECORD
|
|
|
|
FORMAT stream_lf
|
2010-11-23 02:12:14 +00:00
|
|
|
$ define /user_mode sys$output bntest-vms.tmp
|
|
|
|
$ mcr 'texe_dir''bntest'
|
|
|
|
$ define /user_mode sys$input bntest-vms.tmp
|
|
|
|
$ define /user_mode sys$output bntest-vms.out
|
|
|
|
$ bc
|
|
|
|
$ @ bntest.com bntest-vms.out
|
|
|
|
$ status = $status
|
|
|
|
$ if (status)
|
|
|
|
$ then
|
|
|
|
$ delete bntest-vms.out;*
|
|
|
|
$ delete bntest-vms.tmp;*
|
|
|
|
$ endif
|
|
|
|
$ else
|
|
|
|
$ create /fdl = sys$input bntest-vms.sh
|
|
|
|
FILE
|
|
|
|
ORGANIZATION sequential
|
|
|
|
RECORD
|
|
|
|
FORMAT stream_lf
|
|
|
|
$ open /append bntest_file bntest-vms.sh
|
|
|
|
$ type /output = bntest_file sys$input:
|
2001-03-08 21:12:58 +00:00
|
|
|
<< __FOO__ sh -c "`sh ./bctest`" | perl -e '$i=0; while (<STDIN>) {if (/^test (.*)/) {print STDERR "\nverify $1";} elsif (!/^0$/) {die "\nFailed! bc: $_";} else {print STDERR "."; $i++;}} print STDERR "\n$i tests passed\n"'
|
2011-03-19 09:47:47 +00:00
|
|
|
$ define /user_mode sys$output bntest-vms.tmp
|
2010-11-23 02:12:14 +00:00
|
|
|
$ mcr 'texe_dir''bntest'
|
|
|
|
$ copy bntest-vms.tmp bntest_file
|
|
|
|
$ delete bntest-vms.tmp;*
|
|
|
|
$ type /output = bntest_file sys$input:
|
1999-05-13 11:37:32 +00:00
|
|
|
__FOO__
|
2010-11-23 02:12:14 +00:00
|
|
|
$ close bntest_file
|
|
|
|
$ write sys$output "-- copy the [.test]bntest-vms.sh and [.test]bctest files to a Unix system and"
|
|
|
|
$ write sys$output "-- run bntest-vms.sh through sh or bash to verify that the bignum operations"
|
|
|
|
$ write sys$output "-- went well."
|
|
|
|
$ write sys$output ""
|
|
|
|
$ endif
|
1999-05-13 11:37:32 +00:00
|
|
|
$ write sys$output "test a^b%c implementations"
|
|
|
|
$ mcr 'texe_dir''exptest'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
2001-03-08 14:40:20 +00:00
|
|
|
$ test_ec:
|
2001-03-08 17:22:38 +00:00
|
|
|
$ write sys$output "test elliptic curves"
|
2001-03-08 14:40:20 +00:00
|
|
|
$ mcr 'texe_dir''ectest'
|
|
|
|
$ return
|
2002-08-10 01:35:10 +00:00
|
|
|
$ test_ecdsa:
|
2002-05-23 13:33:08 +00:00
|
|
|
$ write sys$output "test ecdsa"
|
|
|
|
$ mcr 'texe_dir''ecdsatest'
|
|
|
|
$ return
|
2002-08-10 01:35:10 +00:00
|
|
|
$ test_ecdh:
|
|
|
|
$ write sys$output "test ecdh"
|
|
|
|
$ mcr 'texe_dir''ecdhtest'
|
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_verify:
|
|
|
|
$ write sys$output "The following command should have some OK's and some failures"
|
|
|
|
$ write sys$output "There are definitly a few expired certificates"
|
2011-03-19 09:47:47 +00:00
|
|
|
$ @tverify.com 'pointer_size'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_dh:
|
2000-01-30 13:44:08 +00:00
|
|
|
$ write sys$output "Generate a set of DH parameters"
|
1999-05-13 11:37:32 +00:00
|
|
|
$ mcr 'texe_dir''dhtest'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_dsa:
|
2000-01-30 13:44:08 +00:00
|
|
|
$ write sys$output "Generate a set of DSA parameters"
|
1999-05-13 11:37:32 +00:00
|
|
|
$ mcr 'texe_dir''dsatest'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
2000-01-16 02:11:19 +00:00
|
|
|
$ test_gen:
|
1999-05-13 11:37:32 +00:00
|
|
|
$ write sys$output "Generate and verify a certificate request"
|
2011-03-19 09:47:47 +00:00
|
|
|
$ @testgen.com 'pointer_size'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
|
|
|
$ maybe_test_ss:
|
|
|
|
$ testss_RDT = f$cvtime(f$file_attributes("testss.com","RDT"))
|
|
|
|
$ if f$cvtime(f$file_attributes("keyU.ss","RDT")) .les. testss_RDT then -
|
|
|
|
goto test_ss
|
|
|
|
$ if f$cvtime(f$file_attributes("certU.ss","RDT")) .les. testss_RDT then -
|
|
|
|
goto test_ss
|
|
|
|
$ if f$cvtime(f$file_attributes("certCA.ss","RDT")) .les. testss_RDT then -
|
|
|
|
goto test_ss
|
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_ss:
|
|
|
|
$ write sys$output "Generate and certify a test certificate"
|
2011-03-19 09:47:47 +00:00
|
|
|
$ @testss.com 'pointer_size'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
2000-10-26 21:07:28 +00:00
|
|
|
$ test_engine:
|
|
|
|
$ write sys$output "Manipulate the ENGINE structures"
|
|
|
|
$ mcr 'texe_dir''enginetest'
|
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_ssl:
|
|
|
|
$ write sys$output "test SSL protocol"
|
2000-03-13 22:27:52 +00:00
|
|
|
$ gosub maybe_test_ss
|
2011-03-19 09:47:47 +00:00
|
|
|
$ @testssl.com keyU.ss certU.ss certCA.ss 'pointer_size'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$ test_ca:
|
2000-03-13 22:27:52 +00:00
|
|
|
$ set noon
|
2011-03-19 09:47:47 +00:00
|
|
|
$ define /user_mode sys$output test_ca.out
|
2000-03-13 22:27:52 +00:00
|
|
|
$ mcr 'exe_dir'openssl no-rsa
|
|
|
|
$ save_severity=$SEVERITY
|
|
|
|
$ set on
|
|
|
|
$ if save_severity
|
|
|
|
$ then
|
|
|
|
$ write sys$output "skipping CA.com test -- requires RSA"
|
|
|
|
$ else
|
|
|
|
$ write sys$output "Generate and certify a test certificate via the 'ca' program"
|
2011-03-19 09:47:47 +00:00
|
|
|
$ @testca.com 'pointer_size'
|
2000-03-13 22:27:52 +00:00
|
|
|
$ endif
|
|
|
|
$ return
|
2006-02-26 10:47:57 +00:00
|
|
|
$ test_aes:
|
|
|
|
$! write sys$output "test AES"
|
|
|
|
$! !mcr 'texe_dir''aestest'
|
|
|
|
$ return
|
|
|
|
$ test_tsa:
|
|
|
|
$ set noon
|
2011-03-19 09:47:47 +00:00
|
|
|
$ define /user_mode sys$output nla0:
|
2006-02-26 10:47:57 +00:00
|
|
|
$ mcr 'exe_dir'openssl no-rsa
|
|
|
|
$ save_severity=$SEVERITY
|
|
|
|
$ set on
|
|
|
|
$ if save_severity
|
|
|
|
$ then
|
|
|
|
$ write sys$output "skipping testtsa.com test -- requires RSA"
|
|
|
|
$ else
|
2011-03-19 09:47:47 +00:00
|
|
|
$ @testtsa.com "" "" "" 'pointer_size'
|
2006-02-26 10:47:57 +00:00
|
|
|
$ endif
|
2000-11-22 18:17:16 +00:00
|
|
|
$ return
|
2008-12-16 10:54:28 +00:00
|
|
|
$ test_ige:
|
|
|
|
$ write sys$output "Test IGE mode"
|
|
|
|
$ mcr 'texe_dir''igetest'
|
|
|
|
$ return
|
|
|
|
$ test_jpake:
|
|
|
|
$ write sys$output "Test JPAKE"
|
|
|
|
$ mcr 'texe_dir''jpaketest'
|
|
|
|
$ return
|
2009-11-13 08:45:52 +00:00
|
|
|
$ test_cms:
|
|
|
|
$ write sys$output "CMS consistency test"
|
2011-03-19 09:47:47 +00:00
|
|
|
$ ! Define the logical name used to find openssl.exe in the perl script.
|
|
|
|
$ define /user_mode osslx 'exe_dir'
|
2009-11-13 08:45:52 +00:00
|
|
|
$ perl CMS-TEST.PL
|
|
|
|
$ return
|
2011-03-19 10:46:21 +00:00
|
|
|
$ test_srp:
|
|
|
|
$ write sys$output "Test SRP"
|
|
|
|
$ mcr 'texe_dir''srptest'
|
|
|
|
$ return
|
2014-06-12 14:59:47 +00:00
|
|
|
$ test_ocsp:
|
|
|
|
$ write sys$output "Test OCSP"
|
|
|
|
$ @tocsp.com
|
|
|
|
$ return
|
|
|
|
$ test_v3name:
|
|
|
|
$ write sys$output "Test V3NAME"
|
|
|
|
$ mcr 'texe_dir''v3nametest'
|
|
|
|
$ return
|
|
|
|
$ test_heartbeat:
|
|
|
|
$ write sys$output "Test HEARTBEAT"
|
|
|
|
$ mcr 'texe_dir''heartbeattest'
|
|
|
|
$ return
|
2014-09-25 04:47:23 +00:00
|
|
|
$ test_constant_time:
|
|
|
|
$ write sys$output "Test constant time utilities"
|
|
|
|
$ mcr 'texe_dir''consttimetest'
|
|
|
|
$ return
|
1999-05-13 11:37:32 +00:00
|
|
|
$
|
|
|
|
$
|
|
|
|
$ exit:
|
2014-06-18 11:41:54 +00:00
|
|
|
$ on error then goto exit2 ! In case openssl.exe didn't build.
|
2010-11-23 01:06:13 +00:00
|
|
|
$ mcr 'exe_dir'openssl version -a
|
2014-06-18 11:41:54 +00:00
|
|
|
$ exit2:
|
1999-05-13 11:37:32 +00:00
|
|
|
$ set default '__save_default'
|
2010-01-25 00:20:32 +00:00
|
|
|
$ deassign sslroot
|
1999-05-13 11:37:32 +00:00
|
|
|
$ exit
|