diff options
| author | markus <> | 2002-09-05 12:51:52 +0000 |
|---|---|---|
| committer | markus <> | 2002-09-05 12:51:52 +0000 |
| commit | 5514995a9d5ed91db089875adb509c7781357c0e (patch) | |
| tree | 2484410a46ba6c05ef94c253da36fbceef990b64 /src/lib/libssl/test | |
| parent | fd9566423b542798f5c8b06e68101a9ea5bb9885 (diff) | |
| download | openbsd-5514995a9d5ed91db089875adb509c7781357c0e.tar.gz openbsd-5514995a9d5ed91db089875adb509c7781357c0e.tar.bz2 openbsd-5514995a9d5ed91db089875adb509c7781357c0e.zip | |
import openssl-0.9.7-beta1
Diffstat (limited to 'src/lib/libssl/test')
| -rw-r--r-- | src/lib/libssl/test/maketests.com | 32 | ||||
| -rw-r--r-- | src/lib/libssl/test/tcrl.com | 23 | ||||
| -rw-r--r-- | src/lib/libssl/test/testca.com | 4 | ||||
| -rw-r--r-- | src/lib/libssl/test/testenc.com | 18 | ||||
| -rw-r--r-- | src/lib/libssl/test/testgen.com | 25 | ||||
| -rw-r--r-- | src/lib/libssl/test/tests.com | 137 | ||||
| -rw-r--r-- | src/lib/libssl/test/testss.com | 19 | ||||
| -rw-r--r-- | src/lib/libssl/test/testssl.com | 151 | ||||
| -rw-r--r-- | src/lib/libssl/test/tpkcs7.com | 13 | ||||
| -rw-r--r-- | src/lib/libssl/test/tpkcs7d.com | 7 | ||||
| -rw-r--r-- | src/lib/libssl/test/treq.com | 23 | ||||
| -rw-r--r-- | src/lib/libssl/test/trsa.com | 34 | ||||
| -rw-r--r-- | src/lib/libssl/test/tsid.com | 23 | ||||
| -rw-r--r-- | src/lib/libssl/test/tx509.com | 23 |
14 files changed, 367 insertions, 165 deletions
diff --git a/src/lib/libssl/test/maketests.com b/src/lib/libssl/test/maketests.com index e4b052e688..f7ff8fe407 100644 --- a/src/lib/libssl/test/maketests.com +++ b/src/lib/libssl/test/maketests.com | |||
| @@ -143,11 +143,12 @@ $ GOSUB CHECK_OPT_FILE | |||
| 143 | $! | 143 | $! |
| 144 | $! Define The TEST Files. | 144 | $! Define The TEST Files. |
| 145 | $! | 145 | $! |
| 146 | $ TEST_FILES = "BNTEST,IDEATEST,MD2TEST,MD5TEST,HMACTEST,"+ - | 146 | $ TEST_FILES = "BNTEST,ECTEST,IDEATEST,MD2TEST,MD4TEST,MD5TEST,HMACTEST,"+ - |
| 147 | "RC2TEST,RC4TEST,RC5TEST,"+ - | 147 | "RC2TEST,RC4TEST,RC5TEST,"+ - |
| 148 | "DESTEST,SHATEST,SHA1TEST,MDC2TEST,RMDTEST,"+ - | 148 | "DESTEST,SHATEST,SHA1TEST,MDC2TEST,RMDTEST,"+ - |
| 149 | "RANDTEST,DHTEST,"+ - | 149 | "RANDTEST,DHTEST,ENGINETEST,"+ - |
| 150 | "BFTEST,CASTTEST,SSLTEST,EXPTEST,DSATEST,RSA_OAEP_TEST" | 150 | "BFTEST,CASTTEST,SSLTEST,EXPTEST,DSATEST,RSA_TEST,"+ - |
| 151 | "EVP_TEST" | ||
| 151 | $ TCPIP_PROGRAMS = ",," | 152 | $ TCPIP_PROGRAMS = ",," |
| 152 | $ IF COMPILER .EQS. "VAXC" THEN - | 153 | $ IF COMPILER .EQS. "VAXC" THEN - |
| 153 | TCPIP_PROGRAMS = ",SSLTEST," | 154 | TCPIP_PROGRAMS = ",SSLTEST," |
| @@ -514,6 +515,7 @@ $ CHECK_OPTIONS: | |||
| 514 | $! | 515 | $! |
| 515 | $! Check To See If P1 Is Blank. | 516 | $! Check To See If P1 Is Blank. |
| 516 | $! | 517 | $! |
| 518 | $ P1 = "NORSAREF" | ||
| 517 | $ IF (P1.EQS."NORSAREF") | 519 | $ IF (P1.EQS."NORSAREF") |
| 518 | $ THEN | 520 | $ THEN |
| 519 | $! | 521 | $! |
| @@ -729,13 +731,13 @@ $ ENDIF | |||
| 729 | $! | 731 | $! |
| 730 | $! Set Up Initial CC Definitions, Possibly With User Ones | 732 | $! Set Up Initial CC Definitions, Possibly With User Ones |
| 731 | $! | 733 | $! |
| 732 | $ CCDEFS = "VMS=1,TCPIP_TYPE_''P4'" | 734 | $ CCDEFS = "TCPIP_TYPE_''P4'" |
| 733 | $ IF F$TYPE(USER_CCDEFS) .NES. "" THEN CCDEFS = CCDEFS + "," + USER_CCDEFS | 735 | $ IF F$TYPE(USER_CCDEFS) .NES. "" THEN CCDEFS = CCDEFS + "," + USER_CCDEFS |
| 734 | $ CCEXTRAFLAGS = "" | 736 | $ CCEXTRAFLAGS = "" |
| 735 | $ IF F$TYPE(USER_CCFLAGS) .NES. "" THEN CCEXTRAFLAGS = USER_CCFLAGS | 737 | $ IF F$TYPE(USER_CCFLAGS) .NES. "" THEN CCEXTRAFLAGS = USER_CCFLAGS |
| 736 | $ CCDISABLEWARNINGS = "" | 738 | $ CCDISABLEWARNINGS = "LONGLONGTYPE,LONGLONGSUFX" |
| 737 | $ IF F$TYPE(USER_CCDISABLEWARNINGS) .NES. "" THEN - | 739 | $ IF F$TYPE(USER_CCDISABLEWARNINGS) .NES. "" THEN - |
| 738 | CCDISABLEWARNINGS = USER_CCDISABLEWARNINGS | 740 | CCDISABLEWARNINGS = CCDISABLEWARNINGS + "," + USER_CCDISABLEWARNINGS |
| 739 | $! | 741 | $! |
| 740 | $! Check To See If The User Entered A Valid Paramter. | 742 | $! Check To See If The User Entered A Valid Paramter. |
| 741 | $! | 743 | $! |
| @@ -761,7 +763,8 @@ $ CC = "CC" | |||
| 761 | $ IF ARCH.EQS."VAX" .AND. F$TRNLNM("DECC$CC_DEFAULT").NES."/DECC" - | 763 | $ IF ARCH.EQS."VAX" .AND. F$TRNLNM("DECC$CC_DEFAULT").NES."/DECC" - |
| 762 | THEN CC = "CC/DECC" | 764 | THEN CC = "CC/DECC" |
| 763 | $ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/STANDARD=ANSI89" + - | 765 | $ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/STANDARD=ANSI89" + - |
| 764 | "/NOLIST/PREFIX=ALL" + CCEXTRAFLAGS | 766 | "/NOLIST/PREFIX=ALL" + - |
| 767 | "/INCLUDE=(SYS$DISK:[-])" + CCEXTRAFLAGS | ||
| 765 | $! | 768 | $! |
| 766 | $! Define The Linker Options File Name. | 769 | $! Define The Linker Options File Name. |
| 767 | $! | 770 | $! |
| @@ -793,7 +796,8 @@ $ WRITE SYS$OUTPUT "There is no VAX C on Alpha!" | |||
| 793 | $ EXIT | 796 | $ EXIT |
| 794 | $ ENDIF | 797 | $ ENDIF |
| 795 | $ IF F$TRNLNM("DECC$CC_DEFAULT").EQS."/DECC" THEN CC = "CC/VAXC" | 798 | $ IF F$TRNLNM("DECC$CC_DEFAULT").EQS."/DECC" THEN CC = "CC/VAXC" |
| 796 | $ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/NOLIST" + CCEXTRAFLAGS | 799 | $ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/NOLIST" + - |
| 800 | "/INCLUDE=(SYS$DISK:[-])" + CCEXTRAFLAGS | ||
| 797 | $ CCDEFS = CCDEFS + ",""VAXC""" | 801 | $ CCDEFS = CCDEFS + ",""VAXC""" |
| 798 | $! | 802 | $! |
| 799 | $! Define <sys> As SYS$COMMON:[SYSLIB] | 803 | $! Define <sys> As SYS$COMMON:[SYSLIB] |
| @@ -823,7 +827,8 @@ $ WRITE SYS$OUTPUT "Using GNU 'C' Compiler." | |||
| 823 | $! | 827 | $! |
| 824 | $! Use GNU C... | 828 | $! Use GNU C... |
| 825 | $! | 829 | $! |
| 826 | $ CC = "GCC/NOCASE_HACK/''GCC_OPTIMIZE'/''DEBUGGER'/NOLIST" + CCEXTRAFLAGS | 830 | $ CC = "GCC/NOCASE_HACK/''GCC_OPTIMIZE'/''DEBUGGER'/NOLIST" + - |
| 831 | "/INCLUDE=(SYS$DISK:[-])" + CCEXTRAFLAGS | ||
| 827 | $! | 832 | $! |
| 828 | $! Define The Linker Options File Name. | 833 | $! Define The Linker Options File Name. |
| 829 | $! | 834 | $! |
| @@ -915,7 +920,7 @@ $ THEN | |||
| 915 | $! | 920 | $! |
| 916 | $! Set the library to use SOCKETSHR | 921 | $! Set the library to use SOCKETSHR |
| 917 | $! | 922 | $! |
| 918 | $ TCPIP_LIB = "[-.VMS]SOCKETSHR_SHR.OPT/OPT" | 923 | $ TCPIP_LIB = "SYS$DISK:[-.VMS]SOCKETSHR_SHR.OPT/OPT" |
| 919 | $! | 924 | $! |
| 920 | $! Done with SOCKETSHR | 925 | $! Done with SOCKETSHR |
| 921 | $! | 926 | $! |
| @@ -941,13 +946,13 @@ $ THEN | |||
| 941 | $! | 946 | $! |
| 942 | $! Set the library to use UCX. | 947 | $! Set the library to use UCX. |
| 943 | $! | 948 | $! |
| 944 | $ TCPIP_LIB = "[-.VMS]UCX_SHR_DECC.OPT/OPT" | 949 | $ TCPIP_LIB = "SYS$DISK:[-.VMS]UCX_SHR_DECC.OPT/OPT" |
| 945 | $ IF F$TRNLNM("UCX$IPC_SHR") .NES. "" | 950 | $ IF F$TRNLNM("UCX$IPC_SHR") .NES. "" |
| 946 | $ THEN | 951 | $ THEN |
| 947 | $ TCPIP_LIB = "[-.VMS]UCX_SHR_DECC_LOG.OPT/OPT" | 952 | $ TCPIP_LIB = "SYS$DISK:[-.VMS]UCX_SHR_DECC_LOG.OPT/OPT" |
| 948 | $ ELSE | 953 | $ ELSE |
| 949 | $ IF COMPILER .NES. "DECC" .AND. ARCH .EQS. "VAX" THEN - | 954 | $ IF COMPILER .NES. "DECC" .AND. ARCH .EQS. "VAX" THEN - |
| 950 | TCPIP_LIB = "[-.VMS]UCX_SHR_VAXC.OPT/OPT" | 955 | TCPIP_LIB = "SYS$DISK:[-.VMS]UCX_SHR_VAXC.OPT/OPT" |
| 951 | $ ENDIF | 956 | $ ENDIF |
| 952 | $! | 957 | $! |
| 953 | $! Done with UCX | 958 | $! Done with UCX |
| @@ -1026,6 +1031,7 @@ $! | |||
| 1026 | $! Save directory information | 1031 | $! Save directory information |
| 1027 | $! | 1032 | $! |
| 1028 | $ __HERE = F$PARSE(F$PARSE("A.;",F$ENVIRONMENT("PROCEDURE"))-"A.;","[]A.;") - "A.;" | 1033 | $ __HERE = F$PARSE(F$PARSE("A.;",F$ENVIRONMENT("PROCEDURE"))-"A.;","[]A.;") - "A.;" |
| 1034 | $ __HERE = F$EDIT(__HERE,"UPCASE") | ||
| 1029 | $ __TOP = __HERE - "TEST]" | 1035 | $ __TOP = __HERE - "TEST]" |
| 1030 | $ __INCLUDE = __TOP + "INCLUDE.OPENSSL]" | 1036 | $ __INCLUDE = __TOP + "INCLUDE.OPENSSL]" |
| 1031 | $! | 1037 | $! |
diff --git a/src/lib/libssl/test/tcrl.com b/src/lib/libssl/test/tcrl.com index cef21467bb..2e6ab2814d 100644 --- a/src/lib/libssl/test/tcrl.com +++ b/src/lib/libssl/test/tcrl.com | |||
| @@ -10,6 +10,9 @@ $ t := testcrl.pem | |||
| 10 | $ if p1 .nes. "" then t = p1 | 10 | $ if p1 .nes. "" then t = p1 |
| 11 | $ | 11 | $ |
| 12 | $ write sys$output "testing CRL conversions" | 12 | $ write sys$output "testing CRL conversions" |
| 13 | $ if f$search("fff.*") .nes "" then delete fff.*;* | ||
| 14 | $ if f$search("ff.*") .nes "" then delete ff.*;* | ||
| 15 | $ if f$search("f.*") .nes "" then delete f.*;* | ||
| 13 | $ copy 't' fff.p | 16 | $ copy 't' fff.p |
| 14 | $ | 17 | $ |
| 15 | $ write sys$output "p -> d" | 18 | $ write sys$output "p -> d" |
| @@ -52,27 +55,27 @@ $ write sys$output "p -> p" | |||
| 52 | $ 'cmd' -in f.p -inform p -outform p -out ff.p3 | 55 | $ 'cmd' -in f.p -inform p -outform p -out ff.p3 |
| 53 | $ if $severity .ne. 1 then exit 3 | 56 | $ if $severity .ne. 1 then exit 3 |
| 54 | $ | 57 | $ |
| 55 | $ difference/output=nl: fff.p f.p | 58 | $ backup/compare fff.p f.p |
| 56 | $ if $severity .ne. 1 then exit 3 | 59 | $ if $severity .ne. 1 then exit 3 |
| 57 | $ difference/output=nl: fff.p ff.p1 | 60 | $ backup/compare fff.p ff.p1 |
| 58 | $ if $severity .ne. 1 then exit 3 | 61 | $ if $severity .ne. 1 then exit 3 |
| 59 | $! difference/output=nl: fff.p ff.p2 | 62 | $! backup/compare fff.p ff.p2 |
| 60 | $! if $severity .ne. 1 then exit 3 | 63 | $! if $severity .ne. 1 then exit 3 |
| 61 | $ difference/output=nl: fff.p ff.p3 | 64 | $ backup/compare fff.p ff.p3 |
| 62 | $ if $severity .ne. 1 then exit 3 | 65 | $ if $severity .ne. 1 then exit 3 |
| 63 | $ | 66 | $ |
| 64 | $! difference/output=nl: f.t ff.t1 | 67 | $! backup/compare f.t ff.t1 |
| 65 | $! if $severity .ne. 1 then exit 3 | 68 | $! if $severity .ne. 1 then exit 3 |
| 66 | $! difference/output=nl: f.t ff.t2 | 69 | $! backup/compare f.t ff.t2 |
| 67 | $! if $severity .ne. 1 then exit 3 | 70 | $! if $severity .ne. 1 then exit 3 |
| 68 | $! difference/output=nl: f.t ff.t3 | 71 | $! backup/compare f.t ff.t3 |
| 69 | $! if $severity .ne. 1 then exit 3 | 72 | $! if $severity .ne. 1 then exit 3 |
| 70 | $ | 73 | $ |
| 71 | $ difference/output=nl: f.p ff.p1 | 74 | $ backup/compare f.p ff.p1 |
| 72 | $ if $severity .ne. 1 then exit 3 | 75 | $ if $severity .ne. 1 then exit 3 |
| 73 | $! difference/output=nl: f.p ff.p2 | 76 | $! backup/compare f.p ff.p2 |
| 74 | $! if $severity .ne. 1 then exit 3 | 77 | $! if $severity .ne. 1 then exit 3 |
| 75 | $ difference/output=nl: f.p ff.p3 | 78 | $ backup/compare f.p ff.p3 |
| 76 | $ if $severity .ne. 1 then exit 3 | 79 | $ if $severity .ne. 1 then exit 3 |
| 77 | $ | 80 | $ |
| 78 | $ delete f.*;*,ff.*;*,fff.*;* | 81 | $ delete f.*;*,ff.*;*,fff.*;* |
diff --git a/src/lib/libssl/test/testca.com b/src/lib/libssl/test/testca.com index ea75479cd5..c670f2bf5f 100644 --- a/src/lib/libssl/test/testca.com +++ b/src/lib/libssl/test/testca.com | |||
| @@ -40,7 +40,9 @@ $ | |||
| 40 | $ set noon | 40 | $ set noon |
| 41 | $ call deltree [.demoCA]*.* | 41 | $ call deltree [.demoCA]*.* |
| 42 | $ set file/prot=(S:RWED,O:RWED,G:RWED,W:RWED) demoCA.dir;* | 42 | $ set file/prot=(S:RWED,O:RWED,G:RWED,W:RWED) demoCA.dir;* |
| 43 | $ delete demoCA.dir;*,newcert.pem;*,newreq.pem;* | 43 | $ delete demoCA.dir;* |
| 44 | $ if f$search("newcert.pem") .nes. "" then delete newcert.pem;* | ||
| 45 | $ if f$search("newcert.pem") .nes. "" then delete newreq.pem;* | ||
| 44 | $ set on | 46 | $ set on |
| 45 | $! #usage: CA -newcert|-newreq|-newca|-sign|-verify | 47 | $! #usage: CA -newcert|-newreq|-newca|-sign|-verify |
| 46 | $ | 48 | $ |
diff --git a/src/lib/libssl/test/testenc.com b/src/lib/libssl/test/testenc.com index 0756e8bada..3b66f2e0d0 100644 --- a/src/lib/libssl/test/testenc.com +++ b/src/lib/libssl/test/testenc.com | |||
| @@ -8,19 +8,23 @@ $ testsrc := makefile.ssl | |||
| 8 | $ test := p.txt | 8 | $ test := p.txt |
| 9 | $ cmd := mcr 'exe_dir'openssl | 9 | $ cmd := mcr 'exe_dir'openssl |
| 10 | $ | 10 | $ |
| 11 | $ if f$search(test) .nes. "" then delete 'test';* | ||
| 11 | $ copy 'testsrc' 'test' | 12 | $ copy 'testsrc' 'test' |
| 12 | $ | 13 | $ |
| 14 | $ if f$search(test+"-cipher") .nes. "" then delete 'test'-cipher;* | ||
| 15 | $ if f$search(test+"-clear") .nes. "" then delete 'test'-clear;* | ||
| 16 | $ | ||
| 13 | $ write sys$output "cat" | 17 | $ write sys$output "cat" |
| 14 | $ 'cmd' enc -in 'test' -out 'test'-cipher | 18 | $ 'cmd' enc -in 'test' -out 'test'-cipher |
| 15 | $ 'cmd' enc -in 'test'-cipher -out 'test'-clear | 19 | $ 'cmd' enc -in 'test'-cipher -out 'test'-clear |
| 16 | $ difference/output=nl: 'test' 'test'-clear | 20 | $ backup/compare 'test' 'test'-clear |
| 17 | $ if $severity .ne. 1 then exit 3 | 21 | $ if $severity .ne. 1 then exit 3 |
| 18 | $ delete 'test'-cipher;*,'test'-clear;* | 22 | $ delete 'test'-cipher;*,'test'-clear;* |
| 19 | $ | 23 | $ |
| 20 | $ write sys$output "base64" | 24 | $ write sys$output "base64" |
| 21 | $ 'cmd' enc -a -e -in 'test' -out 'test'-cipher | 25 | $ 'cmd' enc -a -e -in 'test' -out 'test'-cipher |
| 22 | $ 'cmd' enc -a -d -in 'test'-cipher -out 'test'-clear | 26 | $ 'cmd' enc -a -d -in 'test'-cipher -out 'test'-clear |
| 23 | $ difference/output=nl: 'test' 'test'-clear | 27 | $ backup/compare 'test' 'test'-clear |
| 24 | $ if $severity .ne. 1 then exit 3 | 28 | $ if $severity .ne. 1 then exit 3 |
| 25 | $ delete 'test'-cipher;*,'test'-clear;* | 29 | $ delete 'test'-cipher;*,'test'-clear;* |
| 26 | $ | 30 | $ |
| @@ -30,16 +34,22 @@ $ open/read f 'test'-cipher-commands | |||
| 30 | $ loop_cipher_commands: | 34 | $ loop_cipher_commands: |
| 31 | $ read/end=loop_cipher_commands_end f i | 35 | $ read/end=loop_cipher_commands_end f i |
| 32 | $ write sys$output i | 36 | $ write sys$output i |
| 37 | $ | ||
| 38 | $ if f$search(test+"-"+i+"-cipher") .nes. "" then - | ||
| 39 | delete 'test'-'i'-cipher;* | ||
| 40 | $ if f$search(test+"-"+i+"-clear") .nes. "" then - | ||
| 41 | delete 'test'-'i'-clear;* | ||
| 42 | $ | ||
| 33 | $ 'cmd' 'i' -bufsize 113 -e -k test -in 'test' -out 'test'-'i'-cipher | 43 | $ 'cmd' 'i' -bufsize 113 -e -k test -in 'test' -out 'test'-'i'-cipher |
| 34 | $ 'cmd' 'i' -bufsize 157 -d -k test -in 'test'-'i'-cipher -out 'test'-'i'-clear | 44 | $ 'cmd' 'i' -bufsize 157 -d -k test -in 'test'-'i'-cipher -out 'test'-'i'-clear |
| 35 | $ difference/output=nl: 'test' 'test'-'i'-clear | 45 | $ backup/compare 'test' 'test'-'i'-clear |
| 36 | $ if $severity .ne. 1 then exit 3 | 46 | $ if $severity .ne. 1 then exit 3 |
| 37 | $ delete 'test'-'i'-cipher;*,'test'-'i'-clear;* | 47 | $ delete 'test'-'i'-cipher;*,'test'-'i'-clear;* |
| 38 | $ | 48 | $ |
| 39 | $ write sys$output i," base64" | 49 | $ write sys$output i," base64" |
| 40 | $ 'cmd' 'i' -bufsize 113 -a -e -k test -in 'test' -out 'test'-'i'-cipher | 50 | $ 'cmd' 'i' -bufsize 113 -a -e -k test -in 'test' -out 'test'-'i'-cipher |
| 41 | $ 'cmd' 'i' -bufsize 157 -a -d -k test -in 'test'-'i'-cipher -out 'test'-'i'-clear | 51 | $ 'cmd' 'i' -bufsize 157 -a -d -k test -in 'test'-'i'-cipher -out 'test'-'i'-clear |
| 42 | $ difference/output=nl: 'test' 'test'-'i'-clear | 52 | $ backup/compare 'test' 'test'-'i'-clear |
| 43 | $ if $severity .ne. 1 then exit 3 | 53 | $ if $severity .ne. 1 then exit 3 |
| 44 | $ delete 'test'-'i'-cipher;*,'test'-'i'-clear;* | 54 | $ delete 'test'-'i'-cipher;*,'test'-'i'-clear;* |
| 45 | $ | 55 | $ |
diff --git a/src/lib/libssl/test/testgen.com b/src/lib/libssl/test/testgen.com index ec302f524a..5d28ebec72 100644 --- a/src/lib/libssl/test/testgen.com +++ b/src/lib/libssl/test/testgen.com | |||
| @@ -16,18 +16,35 @@ $ set on | |||
| 16 | $ | 16 | $ |
| 17 | $ write sys$output "generating certificate request" | 17 | $ write sys$output "generating certificate request" |
| 18 | $ | 18 | $ |
| 19 | $ write sys$output "There should be a 2 sequences of .'s and some +'s." | 19 | $ append/new nl: .rnd |
| 20 | $ write sys$output "There should not be more that at most 80 per line" | 20 | $ open/append random_file .rnd |
| 21 | $ write random_file "string to make the random number generator think it has entropy" | ||
| 22 | $ close random_file | ||
| 23 | $ | ||
| 24 | $ set noon | ||
| 25 | $ define/user sys$output nla0: | ||
| 26 | $ mcr 'exe_dir'openssl no-rsa | ||
| 27 | $ save_severity=$SEVERITY | ||
| 28 | $ set on | ||
| 29 | $ if save_severity | ||
| 30 | $ then | ||
| 31 | $ req_new="-newkey dsa:[-.apps]dsa512.pem" | ||
| 32 | $ else | ||
| 33 | $ req_new="-new" | ||
| 34 | $ write sys$output "There should be a 2 sequences of .'s and some +'s." | ||
| 35 | $ write sys$output "There should not be more that at most 80 per line" | ||
| 36 | $ endif | ||
| 37 | $ | ||
| 21 | $ write sys$output "This could take some time." | 38 | $ write sys$output "This could take some time." |
| 22 | $ | 39 | $ |
| 23 | $ mcr 'exe_dir'openssl req -config test.cnf -new -out testreq.pem | 40 | $ mcr 'exe_dir'openssl req -config test.cnf 'req_new' -out testreq.pem |
| 24 | $ if $severity .ne. 1 | 41 | $ if $severity .ne. 1 |
| 25 | $ then | 42 | $ then |
| 26 | $ write sys$output "problems creating request" | 43 | $ write sys$output "problems creating request" |
| 27 | $ exit 3 | 44 | $ exit 3 |
| 28 | $ endif | 45 | $ endif |
| 29 | $ | 46 | $ |
| 30 | $ mcr 'exe_dir'openssl req -verify -in testreq.pem -noout | 47 | $ mcr 'exe_dir'openssl req -config test.cnf -verify -in testreq.pem -noout |
| 31 | $ if $severity .ne. 1 | 48 | $ if $severity .ne. 1 |
| 32 | $ then | 49 | $ then |
| 33 | $ write sys$output "signature on req is wrong" | 50 | $ write sys$output "signature on req is wrong" |
diff --git a/src/lib/libssl/test/tests.com b/src/lib/libssl/test/tests.com index 147b8aa838..07a3c7f16d 100644 --- a/src/lib/libssl/test/tests.com +++ b/src/lib/libssl/test/tests.com | |||
| @@ -19,15 +19,17 @@ $ then | |||
| 19 | $ tests = p1 | 19 | $ tests = p1 |
| 20 | $ else | 20 | $ else |
| 21 | $ tests := - | 21 | $ tests := - |
| 22 | test_des,test_idea,test_sha,test_md5,test_hmac,test_md2,test_mdc2,- | 22 | test_des,test_idea,test_sha,test_md4,test_md5,test_hmac,- |
| 23 | test_rc2,test_rc4,test_rc5,test_bf,test_cast,- | 23 | test_md2,test_mdc2,- |
| 24 | test_rand,test_bn,test_enc,test_x509,test_rsa,test_crl,test_sid,- | 24 | test_rmd,test_rc2,test_rc4,test_rc5,test_bf,test_cast,test_rd,- |
| 25 | test_reqgen,test_req,test_pkcs7,test_verify,test_dh,test_dsa,- | 25 | test_rand,test_bn,test_ec,test_enc,test_x509,test_rsa,test_crl,test_sid,- |
| 26 | test_ss,test_ssl,test_ca | 26 | test_gen,test_req,test_pkcs7,test_verify,test_dh,test_dsa,- |
| 27 | test_ss,test_ca,test_engine,test_ssl,test_evp | ||
| 27 | $ endif | 28 | $ endif |
| 28 | $ tests = f$edit(tests,"COLLAPSE") | 29 | $ tests = f$edit(tests,"COLLAPSE") |
| 29 | $ | 30 | $ |
| 30 | $ BNTEST := bntest | 31 | $ BNTEST := bntest |
| 32 | $ ECTEST := ectest | ||
| 31 | $ EXPTEST := exptest | 33 | $ EXPTEST := exptest |
| 32 | $ IDEATEST := ideatest | 34 | $ IDEATEST := ideatest |
| 33 | $ SHATEST := shatest | 35 | $ SHATEST := shatest |
| @@ -35,6 +37,7 @@ $ SHA1TEST := sha1test | |||
| 35 | $ MDC2TEST := mdc2test | 37 | $ MDC2TEST := mdc2test |
| 36 | $ RMDTEST := rmdtest | 38 | $ RMDTEST := rmdtest |
| 37 | $ MD2TEST := md2test | 39 | $ MD2TEST := md2test |
| 40 | $ MD4TEST := md4test | ||
| 38 | $ MD5TEST := md5test | 41 | $ MD5TEST := md5test |
| 39 | $ HMACTEST := hmactest | 42 | $ HMACTEST := hmactest |
| 40 | $ RC2TEST := rc2test | 43 | $ RC2TEST := rc2test |
| @@ -48,61 +51,70 @@ $ DHTEST := dhtest | |||
| 48 | $ DSATEST := dsatest | 51 | $ DSATEST := dsatest |
| 49 | $ METHTEST := methtest | 52 | $ METHTEST := methtest |
| 50 | $ SSLTEST := ssltest | 53 | $ SSLTEST := ssltest |
| 51 | $ RSATEST := rsa_oaep_test | 54 | $ RSATEST := rsa_test |
| 55 | $ ENGINETEST := enginetest | ||
| 56 | $ EVPTEST := evp_test | ||
| 52 | $ | 57 | $ |
| 53 | $ tests_i = 0 | 58 | $ tests_i = 0 |
| 54 | $ loop_tests: | 59 | $ loop_tests: |
| 55 | $ tests_e = f$element(tests_i,",",tests) | 60 | $ tests_e = f$element(tests_i,",",tests) |
| 56 | $ tests_i = tests_i + 1 | 61 | $ tests_i = tests_i + 1 |
| 57 | $ if tests_e .eqs. "," then goto exit | 62 | $ if tests_e .eqs. "," then goto exit |
| 58 | $ goto 'tests_e' | 63 | $ gosub 'tests_e' |
| 64 | $ goto loop_tests | ||
| 59 | $ | 65 | $ |
| 66 | $ test_evp: | ||
| 67 | $ mcr 'texe_dir''evptest' evptests.txt | ||
| 68 | $ return | ||
| 60 | $ test_des: | 69 | $ test_des: |
| 61 | $ mcr 'texe_dir''destest' | 70 | $ mcr 'texe_dir''destest' |
| 62 | $ goto loop_tests | 71 | $ return |
| 63 | $ test_idea: | 72 | $ test_idea: |
| 64 | $ mcr 'texe_dir''ideatest' | 73 | $ mcr 'texe_dir''ideatest' |
| 65 | $ goto loop_tests | 74 | $ return |
| 66 | $ test_sha: | 75 | $ test_sha: |
| 67 | $ mcr 'texe_dir''shatest' | 76 | $ mcr 'texe_dir''shatest' |
| 68 | $ mcr 'texe_dir''sha1test' | 77 | $ mcr 'texe_dir''sha1test' |
| 69 | $ goto loop_tests | 78 | $ return |
| 70 | $ test_mdc2: | 79 | $ test_mdc2: |
| 71 | $ mcr 'texe_dir''mdc2test' | 80 | $ mcr 'texe_dir''mdc2test' |
| 72 | $ goto loop_tests | 81 | $ return |
| 73 | $ test_md5: | 82 | $ test_md5: |
| 74 | $ mcr 'texe_dir''md5test' | 83 | $ mcr 'texe_dir''md5test' |
| 75 | $ goto loop_tests | 84 | $ return |
| 85 | $ test_md4: | ||
| 86 | $ mcr 'texe_dir''md4test' | ||
| 87 | $ return | ||
| 76 | $ test_hmac: | 88 | $ test_hmac: |
| 77 | $ mcr 'texe_dir''hmactest' | 89 | $ mcr 'texe_dir''hmactest' |
| 78 | $ goto loop_tests | 90 | $ return |
| 79 | $ test_md2: | 91 | $ test_md2: |
| 80 | $ mcr 'texe_dir''md2test' | 92 | $ mcr 'texe_dir''md2test' |
| 81 | $ goto loop_tests | 93 | $ return |
| 82 | $ test_rmd: | 94 | $ test_rmd: |
| 83 | $ mcr 'texe_dir''rmdtest' | 95 | $ mcr 'texe_dir''rmdtest' |
| 84 | $ goto loop_tests | 96 | $ return |
| 85 | $ test_bf: | 97 | $ test_bf: |
| 86 | $ mcr 'texe_dir''bftest' | 98 | $ mcr 'texe_dir''bftest' |
| 87 | $ goto loop_tests | 99 | $ return |
| 88 | $ test_cast: | 100 | $ test_cast: |
| 89 | $ mcr 'texe_dir''casttest' | 101 | $ mcr 'texe_dir''casttest' |
| 90 | $ goto loop_tests | 102 | $ return |
| 91 | $ test_rc2: | 103 | $ test_rc2: |
| 92 | $ mcr 'texe_dir''rc2test' | 104 | $ mcr 'texe_dir''rc2test' |
| 93 | $ goto loop_tests | 105 | $ return |
| 94 | $ test_rc4: | 106 | $ test_rc4: |
| 95 | $ mcr 'texe_dir''rc4test' | 107 | $ mcr 'texe_dir''rc4test' |
| 96 | $ goto loop_tests | 108 | $ return |
| 97 | $ test_rc5: | 109 | $ test_rc5: |
| 98 | $ mcr 'texe_dir''rc5test' | 110 | $ mcr 'texe_dir''rc5test' |
| 99 | $ goto loop_tests | 111 | $ return |
| 100 | $ test_rand: | 112 | $ test_rand: |
| 101 | $ mcr 'texe_dir''randtest' | 113 | $ mcr 'texe_dir''randtest' |
| 102 | $ goto loop_tests | 114 | $ return |
| 103 | $ test_enc: | 115 | $ test_enc: |
| 104 | $ @testenc.com | 116 | $ @testenc.com |
| 105 | $ goto loop_tests | 117 | $ return |
| 106 | $ test_x509: | 118 | $ test_x509: |
| 107 | $ define sys$error nla0: | 119 | $ define sys$error nla0: |
| 108 | $ write sys$output "test normal x509v1 certificate" | 120 | $ write sys$output "test normal x509v1 certificate" |
| @@ -112,35 +124,35 @@ $ @tx509.com v3-cert1.pem | |||
| 112 | $ write sys$output "test second x509v3 certificate" | 124 | $ write sys$output "test second x509v3 certificate" |
| 113 | $ @tx509.com v3-cert2.pem | 125 | $ @tx509.com v3-cert2.pem |
| 114 | $ deassign sys$error | 126 | $ deassign sys$error |
| 115 | $ goto loop_tests | 127 | $ return |
| 116 | $ test_rsa: | 128 | $ test_rsa: |
| 117 | $ define sys$error nla0: | 129 | $ define sys$error nla0: |
| 118 | $ @trsa.com | 130 | $ @trsa.com |
| 119 | $ deassign sys$error | 131 | $ deassign sys$error |
| 120 | $ mcr 'texe_dir''rsatest' | 132 | $ mcr 'texe_dir''rsatest' |
| 121 | $ goto loop_tests | 133 | $ return |
| 122 | $ test_crl: | 134 | $ test_crl: |
| 123 | $ define sys$error nla0: | 135 | $ define sys$error nla0: |
| 124 | $ @tcrl.com | 136 | $ @tcrl.com |
| 125 | $ deassign sys$error | 137 | $ deassign sys$error |
| 126 | $ goto loop_tests | 138 | $ return |
| 127 | $ test_sid: | 139 | $ test_sid: |
| 128 | $ define sys$error nla0: | 140 | $ define sys$error nla0: |
| 129 | $ @tsid.com | 141 | $ @tsid.com |
| 130 | $ deassign sys$error | 142 | $ deassign sys$error |
| 131 | $ goto loop_tests | 143 | $ return |
| 132 | $ test_req: | 144 | $ test_req: |
| 133 | $ define sys$error nla0: | 145 | $ define sys$error nla0: |
| 134 | $ @treq.com | 146 | $ @treq.com |
| 135 | $ @treq.com testreq2.pem | 147 | $ @treq.com testreq2.pem |
| 136 | $ deassign sys$error | 148 | $ deassign sys$error |
| 137 | $ goto loop_tests | 149 | $ return |
| 138 | $ test_pkcs7: | 150 | $ test_pkcs7: |
| 139 | $ define sys$error nla0: | 151 | $ define sys$error nla0: |
| 140 | $ @tpkcs7.com | 152 | $ @tpkcs7.com |
| 141 | $ @tpkcs7d.com | 153 | $ @tpkcs7d.com |
| 142 | $ deassign sys$error | 154 | $ deassign sys$error |
| 143 | $ goto loop_tests | 155 | $ return |
| 144 | $ test_bn: | 156 | $ test_bn: |
| 145 | $ write sys$output "starting big number library test, could take a while..." | 157 | $ write sys$output "starting big number library test, could take a while..." |
| 146 | $ create bntest-vms.fdl | 158 | $ create bntest-vms.fdl |
| @@ -151,9 +163,7 @@ RECORD | |||
| 151 | $ create/fdl=bntest-vms.fdl bntest-vms.sh | 163 | $ create/fdl=bntest-vms.fdl bntest-vms.sh |
| 152 | $ open/append foo bntest-vms.sh | 164 | $ open/append foo bntest-vms.sh |
| 153 | $ type/output=foo: sys$input: | 165 | $ type/output=foo: sys$input: |
| 154 | << __FOO__ bc | awk '{ \ | 166 | << __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"' |
| 155 | if ($$0 != "0") {print "error"; exit(1); } \ | ||
| 156 | if (((NR+1)%64) == 0) print NR+1," tests done"; }' | ||
| 157 | $ define/user sys$output bntest-vms.tmp | 167 | $ define/user sys$output bntest-vms.tmp |
| 158 | $ mcr 'texe_dir''bntest' | 168 | $ mcr 'texe_dir''bntest' |
| 159 | $ copy bntest-vms.tmp foo: | 169 | $ copy bntest-vms.tmp foo: |
| @@ -161,41 +171,74 @@ $ delete bntest-vms.tmp;* | |||
| 161 | $ type/output=foo: sys$input: | 171 | $ type/output=foo: sys$input: |
| 162 | __FOO__ | 172 | __FOO__ |
| 163 | $ close foo | 173 | $ close foo |
| 164 | $ write sys$output "-- copy the [.test]bntest-vms.sh file to a Unix system and run it" | 174 | $ write sys$output "-- copy the [.test]bntest-vms.sh and [.test]bctest files to a Unix system and" |
| 165 | $ write sys$output "-- through sh or bash to verify that the bignum operations went well." | 175 | $ write sys$output "-- run bntest-vms.sh through sh or bash to verify that the bignum operations" |
| 176 | $ write sys$output "-- went well." | ||
| 166 | $ write sys$output "" | 177 | $ write sys$output "" |
| 167 | $ write sys$output "test a^b%c implementations" | 178 | $ write sys$output "test a^b%c implementations" |
| 168 | $ mcr 'texe_dir''exptest' | 179 | $ mcr 'texe_dir''exptest' |
| 169 | $ goto loop_tests | 180 | $ return |
| 181 | $ test_ec: | ||
| 182 | $ write sys$output "test elliptic curves" | ||
| 183 | $ mcr 'texe_dir''ectest' | ||
| 184 | $ return | ||
| 170 | $ test_verify: | 185 | $ test_verify: |
| 171 | $ write sys$output "The following command should have some OK's and some failures" | 186 | $ write sys$output "The following command should have some OK's and some failures" |
| 172 | $ write sys$output "There are definitly a few expired certificates" | 187 | $ write sys$output "There are definitly a few expired certificates" |
| 173 | $ @tverify.com | 188 | $ @tverify.com |
| 174 | $ goto loop_tests | 189 | $ return |
| 175 | $ test_dh: | 190 | $ test_dh: |
| 176 | $ write sys$output "Generate as set of DH parameters" | 191 | $ write sys$output "Generate a set of DH parameters" |
| 177 | $ mcr 'texe_dir''dhtest' | 192 | $ mcr 'texe_dir''dhtest' |
| 178 | $ goto loop_tests | 193 | $ return |
| 179 | $ test_dsa: | 194 | $ test_dsa: |
| 180 | $ write sys$output "Generate as set of DSA parameters" | 195 | $ write sys$output "Generate a set of DSA parameters" |
| 181 | $ mcr 'texe_dir''dsatest' | 196 | $ mcr 'texe_dir''dsatest' |
| 182 | $ goto loop_tests | 197 | $ return |
| 183 | $ test_reqgen: | 198 | $ test_gen: |
| 184 | $ write sys$output "Generate and verify a certificate request" | 199 | $ write sys$output "Generate and verify a certificate request" |
| 185 | $ @testgen.com | 200 | $ @testgen.com |
| 186 | $ goto loop_tests | 201 | $ return |
| 202 | $ maybe_test_ss: | ||
| 203 | $ testss_RDT = f$cvtime(f$file_attributes("testss.com","RDT")) | ||
| 204 | $ if f$cvtime(f$file_attributes("keyU.ss","RDT")) .les. testss_RDT then - | ||
| 205 | goto test_ss | ||
| 206 | $ if f$cvtime(f$file_attributes("certU.ss","RDT")) .les. testss_RDT then - | ||
| 207 | goto test_ss | ||
| 208 | $ if f$cvtime(f$file_attributes("certCA.ss","RDT")) .les. testss_RDT then - | ||
| 209 | goto test_ss | ||
| 210 | $ return | ||
| 187 | $ test_ss: | 211 | $ test_ss: |
| 188 | $ write sys$output "Generate and certify a test certificate" | 212 | $ write sys$output "Generate and certify a test certificate" |
| 189 | $ @testss.com | 213 | $ @testss.com |
| 190 | $ goto loop_tests | 214 | $ return |
| 215 | $ test_engine: | ||
| 216 | $ write sys$output "Manipulate the ENGINE structures" | ||
| 217 | $ mcr 'texe_dir''enginetest' | ||
| 218 | $ return | ||
| 191 | $ test_ssl: | 219 | $ test_ssl: |
| 192 | $ write sys$output "test SSL protocol" | 220 | $ write sys$output "test SSL protocol" |
| 193 | $ @testssl.com | 221 | $ gosub maybe_test_ss |
| 194 | $ goto loop_tests | 222 | $ @testssl.com keyU.ss certU.ss certCA.ss |
| 223 | $ return | ||
| 195 | $ test_ca: | 224 | $ test_ca: |
| 196 | $ write sys$output "Generate and certify a test certificate via the 'ca' program" | 225 | $ set noon |
| 197 | $ @testca.com | 226 | $ define/user sys$output nla0: |
| 198 | $ goto loop_tests | 227 | $ mcr 'exe_dir'openssl no-rsa |
| 228 | $ save_severity=$SEVERITY | ||
| 229 | $ set on | ||
| 230 | $ if save_severity | ||
| 231 | $ then | ||
| 232 | $ write sys$output "skipping CA.com test -- requires RSA" | ||
| 233 | $ else | ||
| 234 | $ write sys$output "Generate and certify a test certificate via the 'ca' program" | ||
| 235 | $ @testca.com | ||
| 236 | $ endif | ||
| 237 | $ return | ||
| 238 | $ test_rd: | ||
| 239 | $ write sys$output "test Rijndael" | ||
| 240 | $ !mcr 'texe_dir''rdtest' | ||
| 241 | $ return | ||
| 199 | $ | 242 | $ |
| 200 | $ | 243 | $ |
| 201 | $ exit: | 244 | $ exit: |
diff --git a/src/lib/libssl/test/testss.com b/src/lib/libssl/test/testss.com index ce2c4b43f6..685ae5043d 100644 --- a/src/lib/libssl/test/testss.com +++ b/src/lib/libssl/test/testss.com | |||
| @@ -4,7 +4,7 @@ $ __arch := VAX | |||
| 4 | $ if f$getsyi("cpu") .ge. 128 then __arch := AXP | 4 | $ if f$getsyi("cpu") .ge. 128 then __arch := AXP |
| 5 | $ exe_dir := sys$disk:[-.'__arch'.exe.apps] | 5 | $ exe_dir := sys$disk:[-.'__arch'.exe.apps] |
| 6 | $ | 6 | $ |
| 7 | $ digest="-mdc2" | 7 | $ digest="-md5" |
| 8 | $ reqcmd := mcr 'exe_dir'openssl req | 8 | $ reqcmd := mcr 'exe_dir'openssl req |
| 9 | $ x509cmd := mcr 'exe_dir'openssl x509 'digest' | 9 | $ x509cmd := mcr 'exe_dir'openssl x509 'digest' |
| 10 | $ verifycmd := mcr 'exe_dir'openssl verify | 10 | $ verifycmd := mcr 'exe_dir'openssl verify |
| @@ -23,7 +23,20 @@ $ Ucert="""certU.ss""" | |||
| 23 | $ | 23 | $ |
| 24 | $ write sys$output "" | 24 | $ write sys$output "" |
| 25 | $ write sys$output "make a certificate request using 'req'" | 25 | $ write sys$output "make a certificate request using 'req'" |
| 26 | $ 'reqcmd' -config 'CAconf' -out 'CAreq' -keyout 'CAkey' -new ! -out err.ss | 26 | $ |
| 27 | $ set noon | ||
| 28 | $ define/user sys$output nla0: | ||
| 29 | $ mcr 'exe_dir'openssl no-rsa | ||
| 30 | $ save_severity=$SEVERITY | ||
| 31 | $ set on | ||
| 32 | $ if save_severity | ||
| 33 | $ then | ||
| 34 | $ req_new="-newkey dsa:[-.apps]dsa512.pem" | ||
| 35 | $ else | ||
| 36 | $ req_new="-new" | ||
| 37 | $ endif | ||
| 38 | $ | ||
| 39 | $ 'reqcmd' -config 'CAconf' -out 'CAreq' -keyout 'CAkey' 'req_new' ! -out err.ss | ||
| 27 | $ if $severity .ne. 1 | 40 | $ if $severity .ne. 1 |
| 28 | $ then | 41 | $ then |
| 29 | $ write sys$output "error using 'req' to generate a certificate request" | 42 | $ write sys$output "error using 'req' to generate a certificate request" |
| @@ -73,7 +86,7 @@ $ | |||
| 73 | $ write sys$output "" | 86 | $ write sys$output "" |
| 74 | $ write sys$output "make another certificate request using 'req'" | 87 | $ write sys$output "make another certificate request using 'req'" |
| 75 | $ define /user sys$output err.ss | 88 | $ define /user sys$output err.ss |
| 76 | $ 'reqcmd' -config 'Uconf' -out 'Ureq' -keyout 'Ukey' -new | 89 | $ 'reqcmd' -config 'Uconf' -out 'Ureq' -keyout 'Ukey' 'req_new' |
| 77 | $ if $severity .ne. 1 | 90 | $ if $severity .ne. 1 |
| 78 | $ then | 91 | $ then |
| 79 | $ write sys$output "error using 'req' to generate a certificate request" | 92 | $ write sys$output "error using 'req' to generate a certificate request" |
diff --git a/src/lib/libssl/test/testssl.com b/src/lib/libssl/test/testssl.com index 93a9aef802..785f262f5a 100644 --- a/src/lib/libssl/test/testssl.com +++ b/src/lib/libssl/test/testssl.com | |||
| @@ -2,110 +2,189 @@ $! TESTSSL.COM | |||
| 2 | $ | 2 | $ |
| 3 | $ __arch := VAX | 3 | $ __arch := VAX |
| 4 | $ if f$getsyi("cpu") .ge. 128 then __arch := AXP | 4 | $ if f$getsyi("cpu") .ge. 128 then __arch := AXP |
| 5 | $ exe_dir := sys$disk:[-.'__arch'.exe.test] | 5 | $ texe_dir := sys$disk:[-.'__arch'.exe.test] |
| 6 | $ | 6 | $ exe_dir := sys$disk:[-.'__arch'.exe.apps] |
| 7 | $ copy/concatenate [-.certs]*.pem certs.tmp | 7 | $ |
| 8 | $ if p1 .eqs. "" | ||
| 9 | $ then | ||
| 10 | $ key="[-.apps]server.pem" | ||
| 11 | $ else | ||
| 12 | $ key=p1 | ||
| 13 | $ endif | ||
| 14 | $ if p2 .eqs. "" | ||
| 15 | $ then | ||
| 16 | $ cert="[-.apps]server.pem" | ||
| 17 | $ else | ||
| 18 | $ cert=p2 | ||
| 19 | $ endif | ||
| 20 | $ ssltest := mcr 'texe_dir'ssltest -key 'key' -cert 'cert' -c_key 'key' -c_cert 'cert' | ||
| 21 | $ | ||
| 22 | $ define/user sys$output testssl-x509-output. | ||
| 23 | $ define/user sys$error nla0: | ||
| 24 | $ mcr 'exe_dir'openssl x509 -in 'cert' -text -noout | ||
| 25 | $ set noon | ||
| 26 | $ define/user sys$error nla0: | ||
| 27 | $ search/output=nla0: testssl-x509-output. "DSA Public Key"/exact | ||
| 28 | $ if $severity .eq. 1 | ||
| 29 | $ then | ||
| 30 | $ dsa_cert := YES | ||
| 31 | $ else | ||
| 32 | $ dsa_cert := NO | ||
| 33 | $ endif | ||
| 34 | $ set on | ||
| 35 | $ delete testssl-x509-output.;* | ||
| 36 | $ | ||
| 37 | $ if p3 .eqs. "" | ||
| 38 | $ then | ||
| 39 | $ copy/concatenate [-.certs]*.pem certs.tmp | ||
| 40 | $ CA = """-CAfile"" certs.tmp" | ||
| 41 | $ else | ||
| 42 | $ CA = """-CAfile"" "+p3 | ||
| 43 | $ endif | ||
| 44 | $ | ||
| 45 | $!########################################################################### | ||
| 8 | $ | 46 | $ |
| 9 | $ write sys$output "test sslv2" | 47 | $ write sys$output "test sslv2" |
| 10 | $ mcr 'exe_dir'ssltest -ssl2 | 48 | $ 'ssltest' -ssl2 |
| 11 | $ if $severity .ne. 1 then goto exit3 | 49 | $ if $severity .ne. 1 then goto exit3 |
| 12 | $ | 50 | $ |
| 13 | $ write sys$output "test sslv2 with server authentication" | 51 | $ write sys$output "test sslv2 with server authentication" |
| 14 | $ mcr 'exe_dir'ssltest -ssl2 -server_auth "-CAfile" certs.tmp | 52 | $ 'ssltest' -ssl2 -server_auth 'CA' |
| 15 | $ if $severity .ne. 1 then goto exit3 | 53 | $ if $severity .ne. 1 then goto exit3 |
| 16 | $ | 54 | $ |
| 17 | $ write sys$output "test sslv2 with client authentication" | 55 | $ if .not. dsa_cert |
| 18 | $ mcr 'exe_dir'ssltest -ssl2 -client_auth "-CAfile" certs.tmp | 56 | $ then |
| 19 | $ if $severity .ne. 1 then goto exit3 | 57 | $ write sys$output "test sslv2 with client authentication" |
| 58 | $ 'ssltest' -ssl2 -client_auth 'CA' | ||
| 59 | $ if $severity .ne. 1 then goto exit3 | ||
| 20 | $ | 60 | $ |
| 21 | $ write sys$output "test sslv2 with both client and server authentication" | 61 | $ write sys$output "test sslv2 with both client and server authentication" |
| 22 | $ mcr 'exe_dir'ssltest -ssl2 -server_auth -client_auth "-CAfile" certs.tmp | 62 | $ 'ssltest' -ssl2 -server_auth -client_auth 'CA' |
| 23 | $ if $severity .ne. 1 then goto exit3 | 63 | $ if $severity .ne. 1 then goto exit3 |
| 64 | $ endif | ||
| 24 | $ | 65 | $ |
| 25 | $ write sys$output "test sslv3" | 66 | $ write sys$output "test sslv3" |
| 26 | $ mcr 'exe_dir'ssltest -ssl3 | 67 | $ 'ssltest' -ssl3 |
| 27 | $ if $severity .ne. 1 then goto exit3 | 68 | $ if $severity .ne. 1 then goto exit3 |
| 28 | $ | 69 | $ |
| 29 | $ write sys$output "test sslv3 with server authentication" | 70 | $ write sys$output "test sslv3 with server authentication" |
| 30 | $ mcr 'exe_dir'ssltest -ssl3 -server_auth "-CAfile" certs.tmp | 71 | $ 'ssltest' -ssl3 -server_auth 'CA' |
| 31 | $ if $severity .ne. 1 then goto exit3 | 72 | $ if $severity .ne. 1 then goto exit3 |
| 32 | $ | 73 | $ |
| 33 | $ write sys$output "test sslv3 with client authentication" | 74 | $ write sys$output "test sslv3 with client authentication" |
| 34 | $ mcr 'exe_dir'ssltest -ssl3 -client_auth "-CAfile" certs.tmp | 75 | $ 'ssltest' -ssl3 -client_auth 'CA' |
| 35 | $ if $severity .ne. 1 then goto exit3 | 76 | $ if $severity .ne. 1 then goto exit3 |
| 36 | $ | 77 | $ |
| 37 | $ write sys$output "test sslv3 with both client and server authentication" | 78 | $ write sys$output "test sslv3 with both client and server authentication" |
| 38 | $ mcr 'exe_dir'ssltest -ssl3 -server_auth -client_auth "-CAfile" certs.tmp | 79 | $ 'ssltest' -ssl3 -server_auth -client_auth 'CA' |
| 39 | $ if $severity .ne. 1 then goto exit3 | 80 | $ if $severity .ne. 1 then goto exit3 |
| 40 | $ | 81 | $ |
| 41 | $ write sys$output "test sslv2/sslv3" | 82 | $ write sys$output "test sslv2/sslv3" |
| 42 | $ mcr 'exe_dir'ssltest | 83 | $ 'ssltest' |
| 43 | $ if $severity .ne. 1 then goto exit3 | 84 | $ if $severity .ne. 1 then goto exit3 |
| 44 | $ | 85 | $ |
| 45 | $ write sys$output "test sslv2/sslv3 with server authentication" | 86 | $ write sys$output "test sslv2/sslv3 with server authentication" |
| 46 | $ mcr 'exe_dir'ssltest -server_auth "-CAfile" certs.tmp | 87 | $ 'ssltest' -server_auth 'CA' |
| 47 | $ if $severity .ne. 1 then goto exit3 | 88 | $ if $severity .ne. 1 then goto exit3 |
| 48 | $ | 89 | $ |
| 49 | $ write sys$output "test sslv2/sslv3 with client authentication" | 90 | $ write sys$output "test sslv2/sslv3 with client authentication" |
| 50 | $ mcr 'exe_dir'ssltest -client_auth "-CAfile" certs.tmp | 91 | $ 'ssltest' -client_auth 'CA' |
| 51 | $ if $severity .ne. 1 then goto exit3 | 92 | $ if $severity .ne. 1 then goto exit3 |
| 52 | $ | 93 | $ |
| 53 | $ write sys$output "test sslv2/sslv3 with both client and server authentication" | 94 | $ write sys$output "test sslv2/sslv3 with both client and server authentication" |
| 54 | $ mcr 'exe_dir'ssltest -server_auth -client_auth "-CAfile" certs.tmp | 95 | $ 'ssltest' -server_auth -client_auth 'CA' |
| 55 | $ if $severity .ne. 1 then goto exit3 | 96 | $ if $severity .ne. 1 then goto exit3 |
| 56 | $ | 97 | $ |
| 57 | $ write sys$output "test sslv2 via BIO pair" | 98 | $ write sys$output "test sslv2 via BIO pair" |
| 58 | $ mcr 'exe_dir'ssltest -bio_pair -ssl2 | 99 | $ 'ssltest' -bio_pair -ssl2 |
| 59 | $ if $severity .ne. 1 then goto exit3 | 100 | $ if $severity .ne. 1 then goto exit3 |
| 60 | $ | 101 | $ |
| 61 | $ write sys$output "test sslv2 with server authentication via BIO pair" | 102 | $ write sys$output "test sslv2 with server authentication via BIO pair" |
| 62 | $ mcr 'exe_dir'ssltest -bio_pair -ssl2 -server_auth "-CAfile" certs.tmp | 103 | $ 'ssltest' -bio_pair -ssl2 -server_auth 'CA' |
| 63 | $ if $severity .ne. 1 then goto exit3 | 104 | $ if $severity .ne. 1 then goto exit3 |
| 64 | $ | 105 | $ |
| 65 | $ write sys$output "test sslv2 with client authentication via BIO pair" | 106 | $ if .not. dsa_cert |
| 66 | $ mcr 'exe_dir'ssltest -bio_pair -ssl2 -client_auth "-CAfile" certs.tmp | 107 | $ then |
| 67 | $ if $severity .ne. 1 then goto exit3 | 108 | $ write sys$output "test sslv2 with client authentication via BIO pair" |
| 109 | $ 'ssltest' -bio_pair -ssl2 -client_auth 'CA' | ||
| 110 | $ if $severity .ne. 1 then goto exit3 | ||
| 68 | $ | 111 | $ |
| 69 | $ write sys$output "test sslv2 with both client and server authentication via BIO pair" | 112 | $ write sys$output "test sslv2 with both client and server authentication via BIO pair" |
| 70 | $ mcr 'exe_dir'ssltest -bio_pair -ssl2 -server_auth -client_auth "-CAfile" certs.tmp | 113 | $ 'ssltest' -bio_pair -ssl2 -server_auth -client_auth 'CA' |
| 71 | $ if $severity .ne. 1 then goto exit3 | 114 | $ if $severity .ne. 1 then goto exit3 |
| 115 | $ endif | ||
| 72 | $ | 116 | $ |
| 73 | $ write sys$output "test sslv3 via BIO pair" | 117 | $ write sys$output "test sslv3 via BIO pair" |
| 74 | $ mcr 'exe_dir'ssltest -bio_pair -ssl3 | 118 | $ 'ssltest' -bio_pair -ssl3 |
| 75 | $ if $severity .ne. 1 then goto exit3 | 119 | $ if $severity .ne. 1 then goto exit3 |
| 76 | $ | 120 | $ |
| 77 | $ write sys$output "test sslv3 with server authentication via BIO pair" | 121 | $ write sys$output "test sslv3 with server authentication via BIO pair" |
| 78 | $ mcr 'exe_dir'ssltest -bio_pair -ssl3 -server_auth "-CAfile" certs.tmp | 122 | $ 'ssltest' -bio_pair -ssl3 -server_auth 'CA' |
| 79 | $ if $severity .ne. 1 then goto exit3 | 123 | $ if $severity .ne. 1 then goto exit3 |
| 80 | $ | 124 | $ |
| 81 | $ write sys$output "test sslv3 with client authentication via BIO pair" | 125 | $ write sys$output "test sslv3 with client authentication via BIO pair" |
| 82 | $ mcr 'exe_dir'ssltest -bio_pair -ssl3 -client_auth "-CAfile" certs.tmp | 126 | $ 'ssltest' -bio_pair -ssl3 -client_auth 'CA' |
| 83 | $ if $severity .ne. 1 then goto exit3 | 127 | $ if $severity .ne. 1 then goto exit3 |
| 84 | 128 | ||
| 85 | $ write sys$output "test sslv3 with both client and server authentication via BIO pair" | 129 | $ write sys$output "test sslv3 with both client and server authentication via BIO pair" |
| 86 | $ mcr 'exe_dir'ssltest -bio_pair -ssl3 -server_auth -client_auth "-CAfile" certs.tmp | 130 | $ 'ssltest' -bio_pair -ssl3 -server_auth -client_auth 'CA' |
| 87 | $ if $severity .ne. 1 then goto exit3 | 131 | $ if $severity .ne. 1 then goto exit3 |
| 88 | $ | 132 | $ |
| 89 | $ write sys$output "test sslv2/sslv3 via BIO pair" | 133 | $ write sys$output "test sslv2/sslv3 via BIO pair" |
| 90 | $ mcr 'exe_dir'ssltest | 134 | $ 'ssltest' |
| 135 | $ if $severity .ne. 1 then goto exit3 | ||
| 136 | $ | ||
| 137 | $ if .not. dsa_cert | ||
| 138 | $ then | ||
| 139 | $ write sys$output "test sslv2/sslv3 w/o DHE via BIO pair" | ||
| 140 | $ 'ssltest' -bio_pair -no_dhe | ||
| 141 | $ if $severity .ne. 1 then goto exit3 | ||
| 142 | $ endif | ||
| 143 | $ | ||
| 144 | $ write sys$output "test sslv2/sslv3 with 1024 bit DHE via BIO pair" | ||
| 145 | $ 'ssltest' -bio_pair -dhe1024dsa -v | ||
| 91 | $ if $severity .ne. 1 then goto exit3 | 146 | $ if $severity .ne. 1 then goto exit3 |
| 92 | $ | 147 | $ |
| 93 | $ write sys$output "test sslv2/sslv3 with server authentication" | 148 | $ write sys$output "test sslv2/sslv3 with server authentication" |
| 94 | $ mcr 'exe_dir'ssltest -bio_pair -server_auth "-CAfile" certs.tmp | 149 | $ 'ssltest' -bio_pair -server_auth 'CA' |
| 95 | $ if $severity .ne. 1 then goto exit3 | 150 | $ if $severity .ne. 1 then goto exit3 |
| 96 | $ | 151 | $ |
| 97 | $ write sys$output "test sslv2/sslv3 with client authentication via BIO pair" | 152 | $ write sys$output "test sslv2/sslv3 with client authentication via BIO pair" |
| 98 | $ mcr 'exe_dir'ssltest -bio_pair -client_auth "-CAfile" certs.tmp | 153 | $ 'ssltest' -bio_pair -client_auth 'CA' |
| 99 | $ if $severity .ne. 1 then goto exit3 | 154 | $ if $severity .ne. 1 then goto exit3 |
| 100 | $ | 155 | $ |
| 101 | $ write sys$output "test sslv2/sslv3 with both client and server authentication via BIO pair" | 156 | $ write sys$output "test sslv2/sslv3 with both client and server authentication via BIO pair" |
| 102 | $ mcr 'exe_dir'ssltest -bio_pair -server_auth -client_auth "-CAfile" certs.tmp | 157 | $ 'ssltest' -bio_pair -server_auth -client_auth 'CA' |
| 158 | $ if $severity .ne. 1 then goto exit3 | ||
| 159 | $ | ||
| 160 | $!########################################################################### | ||
| 161 | $ | ||
| 162 | $ write sys$output "test tls1 with 1024bit anonymous DH, multiple handshakes" | ||
| 163 | $ 'ssltest' -v -bio_pair -tls1 -cipher "ADH" -dhe1024dsa -num 10 -f -time | ||
| 103 | $ if $severity .ne. 1 then goto exit3 | 164 | $ if $severity .ne. 1 then goto exit3 |
| 104 | $ | 165 | $ |
| 166 | $ set noon | ||
| 167 | $ define/user sys$output nla0: | ||
| 168 | $ mcr 'exe_dir'openssl no-rsa | ||
| 169 | $ save_severity=$SEVERITY | ||
| 170 | $ set on | ||
| 171 | $ if save_severity | ||
| 172 | $ then | ||
| 173 | $ write sys$output "skipping RSA tests" | ||
| 174 | $ else | ||
| 175 | $ write sys$output "test tls1 with 1024bit RSA, no DHE, multiple handshakes" | ||
| 176 | $ mcr 'texe_dir'ssltest -v -bio_pair -tls1 -cert [-.apps]server2.pem -no_dhe -num 10 -f -time | ||
| 177 | $ if $severity .ne. 1 then goto exit3 | ||
| 178 | $ | ||
| 179 | $ write sys$output "test tls1 with 1024bit RSA, 1024bit DHE, multiple handshakes" | ||
| 180 | $ mcr 'texe_dir'ssltest -v -bio_pair -tls1 -cert [-.apps]server2.pem -dhe1024dsa -num 10 -f -time | ||
| 181 | $ if $severity .ne. 1 then goto exit3 | ||
| 182 | $ endif | ||
| 183 | $ | ||
| 105 | $ RET = 1 | 184 | $ RET = 1 |
| 106 | $ goto exit | 185 | $ goto exit |
| 107 | $ exit3: | 186 | $ exit3: |
| 108 | $ RET = 3 | 187 | $ RET = 3 |
| 109 | $ exit: | 188 | $ exit: |
| 110 | $ delete certs.tmp;* | 189 | $ if p3 .eqs. "" then delete certs.tmp;* |
| 111 | $ exit 'RET' | 190 | $ exit 'RET' |
diff --git a/src/lib/libssl/test/tpkcs7.com b/src/lib/libssl/test/tpkcs7.com index 5ed920ac34..9e345937c6 100644 --- a/src/lib/libssl/test/tpkcs7.com +++ b/src/lib/libssl/test/tpkcs7.com | |||
| @@ -10,6 +10,9 @@ $ t := testp7.pem | |||
| 10 | $ if p1 .nes. "" then t = p1 | 10 | $ if p1 .nes. "" then t = p1 |
| 11 | $ | 11 | $ |
| 12 | $ write sys$output "testing PKCS7 conversions" | 12 | $ write sys$output "testing PKCS7 conversions" |
| 13 | $ if f$search("fff.*") .nes "" then delete fff.*;* | ||
| 14 | $ if f$search("ff.*") .nes "" then delete ff.*;* | ||
| 15 | $ if f$search("f.*") .nes "" then delete f.*;* | ||
| 13 | $ copy 't' fff.p | 16 | $ copy 't' fff.p |
| 14 | $ | 17 | $ |
| 15 | $ write sys$output "p -> d" | 18 | $ write sys$output "p -> d" |
| @@ -34,16 +37,16 @@ $ write sys$output "p -> p" | |||
| 34 | $ 'cmd' -in f.p -inform p -outform p -out ff.p3 | 37 | $ 'cmd' -in f.p -inform p -outform p -out ff.p3 |
| 35 | $ if $severity .ne. 1 then exit 3 | 38 | $ if $severity .ne. 1 then exit 3 |
| 36 | $ | 39 | $ |
| 37 | $ difference/output=nl: fff.p f.p | 40 | $ backup/compare fff.p f.p |
| 38 | $ if $severity .ne. 1 then exit 3 | 41 | $ if $severity .ne. 1 then exit 3 |
| 39 | $ difference/output=nl: fff.p ff.p1 | 42 | $ backup/compare fff.p ff.p1 |
| 40 | $ if $severity .ne. 1 then exit 3 | 43 | $ if $severity .ne. 1 then exit 3 |
| 41 | $ difference/output=nl: fff.p ff.p3 | 44 | $ backup/compare fff.p ff.p3 |
| 42 | $ if $severity .ne. 1 then exit 3 | 45 | $ if $severity .ne. 1 then exit 3 |
| 43 | $ | 46 | $ |
| 44 | $ difference/output=nl: f.p ff.p1 | 47 | $ backup/compare f.p ff.p1 |
| 45 | $ if $severity .ne. 1 then exit 3 | 48 | $ if $severity .ne. 1 then exit 3 |
| 46 | $ difference/output=nl: f.p ff.p3 | 49 | $ backup/compare f.p ff.p3 |
| 47 | $ if $severity .ne. 1 then exit 3 | 50 | $ if $severity .ne. 1 then exit 3 |
| 48 | $ | 51 | $ |
| 49 | $ delete f.*;*,ff.*;*,fff.*;* | 52 | $ delete f.*;*,ff.*;*,fff.*;* |
diff --git a/src/lib/libssl/test/tpkcs7d.com b/src/lib/libssl/test/tpkcs7d.com index 08d33eaa69..7d4f8794a4 100644 --- a/src/lib/libssl/test/tpkcs7d.com +++ b/src/lib/libssl/test/tpkcs7d.com | |||
| @@ -10,6 +10,9 @@ $ t := pkcs7-1.pem | |||
| 10 | $ if p1 .nes. "" then t = p1 | 10 | $ if p1 .nes. "" then t = p1 |
| 11 | $ | 11 | $ |
| 12 | $ write sys$output "testing PKCS7 conversions (2)" | 12 | $ write sys$output "testing PKCS7 conversions (2)" |
| 13 | $ if f$search("fff.*") .nes "" then delete fff.*;* | ||
| 14 | $ if f$search("ff.*") .nes "" then delete ff.*;* | ||
| 15 | $ if f$search("f.*") .nes "" then delete f.*;* | ||
| 13 | $ copy 't' fff.p | 16 | $ copy 't' fff.p |
| 14 | $ | 17 | $ |
| 15 | $ write sys$output "p -> d" | 18 | $ write sys$output "p -> d" |
| @@ -34,9 +37,9 @@ $ write sys$output "p -> p" | |||
| 34 | $ 'cmd' -in f.p -inform p -outform p -out ff.p3 | 37 | $ 'cmd' -in f.p -inform p -outform p -out ff.p3 |
| 35 | $ if $severity .ne. 1 then exit 3 | 38 | $ if $severity .ne. 1 then exit 3 |
| 36 | $ | 39 | $ |
| 37 | $ difference/output=nl: f.p ff.p1 | 40 | $ backup/compare f.p ff.p1 |
| 38 | $ if $severity .ne. 1 then exit 3 | 41 | $ if $severity .ne. 1 then exit 3 |
| 39 | $ difference/output=nl: f.p ff.p3 | 42 | $ backup/compare f.p ff.p3 |
| 40 | $ if $severity .ne. 1 then exit 3 | 43 | $ if $severity .ne. 1 then exit 3 |
| 41 | $ | 44 | $ |
| 42 | $ delete f.*;*,ff.*;*,fff.*;* | 45 | $ delete f.*;*,ff.*;*,fff.*;* |
diff --git a/src/lib/libssl/test/treq.com b/src/lib/libssl/test/treq.com index 9eb1d26f6e..22c22c3aa9 100644 --- a/src/lib/libssl/test/treq.com +++ b/src/lib/libssl/test/treq.com | |||
| @@ -10,6 +10,9 @@ $ t := testreq.pem | |||
| 10 | $ if p1 .nes. "" then t = p1 | 10 | $ if p1 .nes. "" then t = p1 |
| 11 | $ | 11 | $ |
| 12 | $ write sys$output "testing req conversions" | 12 | $ write sys$output "testing req conversions" |
| 13 | $ if f$search("fff.*") .nes "" then delete fff.*;* | ||
| 14 | $ if f$search("ff.*") .nes "" then delete ff.*;* | ||
| 15 | $ if f$search("f.*") .nes "" then delete f.*;* | ||
| 13 | $ copy 't' fff.p | 16 | $ copy 't' fff.p |
| 14 | $ | 17 | $ |
| 15 | $ write sys$output "p -> d" | 18 | $ write sys$output "p -> d" |
| @@ -52,27 +55,27 @@ $ write sys$output "p -> p" | |||
| 52 | $ 'cmd' -in f.p -inform p -outform p -out ff.p3 | 55 | $ 'cmd' -in f.p -inform p -outform p -out ff.p3 |
| 53 | $ if $severity .ne. 1 then exit 3 | 56 | $ if $severity .ne. 1 then exit 3 |
| 54 | $ | 57 | $ |
| 55 | $ difference/output=nl: fff.p f.p | 58 | $ backup/compare fff.p f.p |
| 56 | $ if $severity .ne. 1 then exit 3 | 59 | $ if $severity .ne. 1 then exit 3 |
| 57 | $ difference/output=nl: fff.p ff.p1 | 60 | $ backup/compare fff.p ff.p1 |
| 58 | $ if $severity .ne. 1 then exit 3 | 61 | $ if $severity .ne. 1 then exit 3 |
| 59 | $! difference/output=nl: fff.p ff.p2 | 62 | $! backup/compare fff.p ff.p2 |
| 60 | $! if $severity .ne. 1 then exit 3 | 63 | $! if $severity .ne. 1 then exit 3 |
| 61 | $ difference/output=nl: fff.p ff.p3 | 64 | $ backup/compare fff.p ff.p3 |
| 62 | $ if $severity .ne. 1 then exit 3 | 65 | $ if $severity .ne. 1 then exit 3 |
| 63 | $ | 66 | $ |
| 64 | $! difference/output=nl: f.t ff.t1 | 67 | $! backup/compare f.t ff.t1 |
| 65 | $! if $severity .ne. 1 then exit 3 | 68 | $! if $severity .ne. 1 then exit 3 |
| 66 | $! difference/output=nl: f.t ff.t2 | 69 | $! backup/compare f.t ff.t2 |
| 67 | $! if $severity .ne. 1 then exit 3 | 70 | $! if $severity .ne. 1 then exit 3 |
| 68 | $! difference/output=nl: f.t ff.t3 | 71 | $! backup/compare f.t ff.t3 |
| 69 | $! if $severity .ne. 1 then exit 3 | 72 | $! if $severity .ne. 1 then exit 3 |
| 70 | $ | 73 | $ |
| 71 | $ difference/output=nl: f.p ff.p1 | 74 | $ backup/compare f.p ff.p1 |
| 72 | $ if $severity .ne. 1 then exit 3 | 75 | $ if $severity .ne. 1 then exit 3 |
| 73 | $! difference/output=nl: f.p ff.p2 | 76 | $! backup/compare f.p ff.p2 |
| 74 | $! if $severity .ne. 1 then exit 3 | 77 | $! if $severity .ne. 1 then exit 3 |
| 75 | $ difference/output=nl: f.p ff.p3 | 78 | $ backup/compare f.p ff.p3 |
| 76 | $ if $severity .ne. 1 then exit 3 | 79 | $ if $severity .ne. 1 then exit 3 |
| 77 | $ | 80 | $ |
| 78 | $ delete f.*;*,ff.*;*,fff.*;* | 81 | $ delete f.*;*,ff.*;*,fff.*;* |
diff --git a/src/lib/libssl/test/trsa.com b/src/lib/libssl/test/trsa.com index 9c9083d02b..6b6c318e2b 100644 --- a/src/lib/libssl/test/trsa.com +++ b/src/lib/libssl/test/trsa.com | |||
| @@ -4,12 +4,26 @@ $ __arch := VAX | |||
| 4 | $ if f$getsyi("cpu") .ge. 128 then __arch := AXP | 4 | $ if f$getsyi("cpu") .ge. 128 then __arch := AXP |
| 5 | $ exe_dir := sys$disk:[-.'__arch'.exe.apps] | 5 | $ exe_dir := sys$disk:[-.'__arch'.exe.apps] |
| 6 | $ | 6 | $ |
| 7 | $ set noon | ||
| 8 | $ define/user sys$output nla0: | ||
| 9 | $ mcr 'exe_dir'openssl no-rsa | ||
| 10 | $ save_severity=$SEVERITY | ||
| 11 | $ set on | ||
| 12 | $ if save_severity | ||
| 13 | $ then | ||
| 14 | $ write sys$output "skipping RSA conversion test" | ||
| 15 | $ exit | ||
| 16 | $ endif | ||
| 17 | $ | ||
| 7 | $ cmd := mcr 'exe_dir'openssl rsa | 18 | $ cmd := mcr 'exe_dir'openssl rsa |
| 8 | $ | 19 | $ |
| 9 | $ t := testrsa.pem | 20 | $ t := testrsa.pem |
| 10 | $ if p1 .nes. "" then t = p1 | 21 | $ if p1 .nes. "" then t = p1 |
| 11 | $ | 22 | $ |
| 12 | $ write sys$output "testing RSA conversions" | 23 | $ write sys$output "testing RSA conversions" |
| 24 | $ if f$search("fff.*") .nes "" then delete fff.*;* | ||
| 25 | $ if f$search("ff.*") .nes "" then delete ff.*;* | ||
| 26 | $ if f$search("f.*") .nes "" then delete f.*;* | ||
| 13 | $ copy 't' fff.p | 27 | $ copy 't' fff.p |
| 14 | $ | 28 | $ |
| 15 | $ write sys$output "p -> d" | 29 | $ write sys$output "p -> d" |
| @@ -52,27 +66,27 @@ $ write sys$output "p -> p" | |||
| 52 | $ 'cmd' -in f.p -inform p -outform p -out ff.p3 | 66 | $ 'cmd' -in f.p -inform p -outform p -out ff.p3 |
| 53 | $ if $severity .ne. 1 then exit 3 | 67 | $ if $severity .ne. 1 then exit 3 |
| 54 | $ | 68 | $ |
| 55 | $ difference/output=nl: fff.p f.p | 69 | $ backup/compare fff.p f.p |
| 56 | $ if $severity .ne. 1 then exit 3 | 70 | $ if $severity .ne. 1 then exit 3 |
| 57 | $ difference/output=nl: fff.p ff.p1 | 71 | $ backup/compare fff.p ff.p1 |
| 58 | $ if $severity .ne. 1 then exit 3 | 72 | $ if $severity .ne. 1 then exit 3 |
| 59 | $! difference/output=nl: fff.p ff.p2 | 73 | $! backup/compare fff.p ff.p2 |
| 60 | $! if $severity .ne. 1 then exit 3 | 74 | $! if $severity .ne. 1 then exit 3 |
| 61 | $ difference/output=nl: fff.p ff.p3 | 75 | $ backup/compare fff.p ff.p3 |
| 62 | $ if $severity .ne. 1 then exit 3 | 76 | $ if $severity .ne. 1 then exit 3 |
| 63 | $ | 77 | $ |
| 64 | $! difference/output=nl: f.t ff.t1 | 78 | $! backup/compare f.t ff.t1 |
| 65 | $! if $severity .ne. 1 then exit 3 | 79 | $! if $severity .ne. 1 then exit 3 |
| 66 | $! difference/output=nl: f.t ff.t2 | 80 | $! backup/compare f.t ff.t2 |
| 67 | $! if $severity .ne. 1 then exit 3 | 81 | $! if $severity .ne. 1 then exit 3 |
| 68 | $! difference/output=nl: f.t ff.t3 | 82 | $! backup/compare f.t ff.t3 |
| 69 | $! if $severity .ne. 1 then exit 3 | 83 | $! if $severity .ne. 1 then exit 3 |
| 70 | $ | 84 | $ |
| 71 | $ difference/output=nl: f.p ff.p1 | 85 | $ backup/compare f.p ff.p1 |
| 72 | $ if $severity .ne. 1 then exit 3 | 86 | $ if $severity .ne. 1 then exit 3 |
| 73 | $! difference/output=nl: f.p ff.p2 | 87 | $! backup/compare f.p ff.p2 |
| 74 | $! if $severity .ne. 1 then exit 3 | 88 | $! if $severity .ne. 1 then exit 3 |
| 75 | $ difference/output=nl: f.p ff.p3 | 89 | $ backup/compare f.p ff.p3 |
| 76 | $ if $severity .ne. 1 then exit 3 | 90 | $ if $severity .ne. 1 then exit 3 |
| 77 | $ | 91 | $ |
| 78 | $ delete f.*;*,ff.*;*,fff.*;* | 92 | $ delete f.*;*,ff.*;*,fff.*;* |
diff --git a/src/lib/libssl/test/tsid.com b/src/lib/libssl/test/tsid.com index 28d83e5c4e..bde23f9bb9 100644 --- a/src/lib/libssl/test/tsid.com +++ b/src/lib/libssl/test/tsid.com | |||
| @@ -10,6 +10,9 @@ $ t := testsid.pem | |||
| 10 | $ if p1 .nes. "" then t = p1 | 10 | $ if p1 .nes. "" then t = p1 |
| 11 | $ | 11 | $ |
| 12 | $ write sys$output "testing session-id conversions" | 12 | $ write sys$output "testing session-id conversions" |
| 13 | $ if f$search("fff.*") .nes "" then delete fff.*;* | ||
| 14 | $ if f$search("ff.*") .nes "" then delete ff.*;* | ||
| 15 | $ if f$search("f.*") .nes "" then delete f.*;* | ||
| 13 | $ copy 't' fff.p | 16 | $ copy 't' fff.p |
| 14 | $ | 17 | $ |
| 15 | $ write sys$output "p -> d" | 18 | $ write sys$output "p -> d" |
| @@ -52,27 +55,27 @@ $ write sys$output "p -> p" | |||
| 52 | $ 'cmd' -in f.p -inform p -outform p -out ff.p3 | 55 | $ 'cmd' -in f.p -inform p -outform p -out ff.p3 |
| 53 | $ if $severity .ne. 1 then exit 3 | 56 | $ if $severity .ne. 1 then exit 3 |
| 54 | $ | 57 | $ |
| 55 | $ difference/output=nl: fff.p f.p | 58 | $ backup/compare fff.p f.p |
| 56 | $ if $severity .ne. 1 then exit 3 | 59 | $ if $severity .ne. 1 then exit 3 |
| 57 | $ difference/output=nl: fff.p ff.p1 | 60 | $ backup/compare fff.p ff.p1 |
| 58 | $ if $severity .ne. 1 then exit 3 | 61 | $ if $severity .ne. 1 then exit 3 |
| 59 | $! difference/output=nl: fff.p ff.p2 | 62 | $! backup/compare fff.p ff.p2 |
| 60 | $! if $severity .ne. 1 then exit 3 | 63 | $! if $severity .ne. 1 then exit 3 |
| 61 | $ difference/output=nl: fff.p ff.p3 | 64 | $ backup/compare fff.p ff.p3 |
| 62 | $ if $severity .ne. 1 then exit 3 | 65 | $ if $severity .ne. 1 then exit 3 |
| 63 | $ | 66 | $ |
| 64 | $! difference/output=nl: f.t ff.t1 | 67 | $! backup/compare f.t ff.t1 |
| 65 | $! if $severity .ne. 1 then exit 3 | 68 | $! if $severity .ne. 1 then exit 3 |
| 66 | $! difference/output=nl: f.t ff.t2 | 69 | $! backup/compare f.t ff.t2 |
| 67 | $! if $severity .ne. 1 then exit 3 | 70 | $! if $severity .ne. 1 then exit 3 |
| 68 | $! difference/output=nl: f.t ff.t3 | 71 | $! backup/compare f.t ff.t3 |
| 69 | $! if $severity .ne. 1 then exit 3 | 72 | $! if $severity .ne. 1 then exit 3 |
| 70 | $ | 73 | $ |
| 71 | $ difference/output=nl: f.p ff.p1 | 74 | $ backup/compare f.p ff.p1 |
| 72 | $ if $severity .ne. 1 then exit 3 | 75 | $ if $severity .ne. 1 then exit 3 |
| 73 | $! difference/output=nl: f.p ff.p2 | 76 | $! backup/compare f.p ff.p2 |
| 74 | $! if $severity .ne. 1 then exit 3 | 77 | $! if $severity .ne. 1 then exit 3 |
| 75 | $ difference/output=nl: f.p ff.p3 | 78 | $ backup/compare f.p ff.p3 |
| 76 | $ if $severity .ne. 1 then exit 3 | 79 | $ if $severity .ne. 1 then exit 3 |
| 77 | $ | 80 | $ |
| 78 | $ delete f.*;*,ff.*;*,fff.*;* | 81 | $ delete f.*;*,ff.*;*,fff.*;* |
diff --git a/src/lib/libssl/test/tx509.com b/src/lib/libssl/test/tx509.com index bbcf0a384b..985969c566 100644 --- a/src/lib/libssl/test/tx509.com +++ b/src/lib/libssl/test/tx509.com | |||
| @@ -10,6 +10,9 @@ $ t := testx509.pem | |||
| 10 | $ if p1 .nes. "" then t = p1 | 10 | $ if p1 .nes. "" then t = p1 |
| 11 | $ | 11 | $ |
| 12 | $ write sys$output "testing X509 conversions" | 12 | $ write sys$output "testing X509 conversions" |
| 13 | $ if f$search("fff.*") .nes "" then delete fff.*;* | ||
| 14 | $ if f$search("ff.*") .nes "" then delete ff.*;* | ||
| 15 | $ if f$search("f.*") .nes "" then delete f.*;* | ||
| 13 | $ copy 't' fff.p | 16 | $ copy 't' fff.p |
| 14 | $ | 17 | $ |
| 15 | $ write sys$output "p -> d" | 18 | $ write sys$output "p -> d" |
| @@ -52,27 +55,27 @@ $ write sys$output "p -> p" | |||
| 52 | $ 'cmd' -in f.p -inform p -outform p -out ff.p3 | 55 | $ 'cmd' -in f.p -inform p -outform p -out ff.p3 |
| 53 | $ if $severity .ne. 1 then exit 3 | 56 | $ if $severity .ne. 1 then exit 3 |
| 54 | $ | 57 | $ |
| 55 | $ difference/output=nl: fff.p f.p | 58 | $ backup/compare fff.p f.p |
| 56 | $ if $severity .ne. 1 then exit 3 | 59 | $ if $severity .ne. 1 then exit 3 |
| 57 | $ difference/output=nl: fff.p ff.p1 | 60 | $ backup/compare fff.p ff.p1 |
| 58 | $ if $severity .ne. 1 then exit 3 | 61 | $ if $severity .ne. 1 then exit 3 |
| 59 | $ difference/output=nl: fff.p ff.p2 | 62 | $ backup/compare fff.p ff.p2 |
| 60 | $ if $severity .ne. 1 then exit 3 | 63 | $ if $severity .ne. 1 then exit 3 |
| 61 | $ difference/output=nl: fff.p ff.p3 | 64 | $ backup/compare fff.p ff.p3 |
| 62 | $ if $severity .ne. 1 then exit 3 | 65 | $ if $severity .ne. 1 then exit 3 |
| 63 | $ | 66 | $ |
| 64 | $ difference/output=nl: f.n ff.n1 | 67 | $ backup/compare f.n ff.n1 |
| 65 | $ if $severity .ne. 1 then exit 3 | 68 | $ if $severity .ne. 1 then exit 3 |
| 66 | $ difference/output=nl: f.n ff.n2 | 69 | $ backup/compare f.n ff.n2 |
| 67 | $ if $severity .ne. 1 then exit 3 | 70 | $ if $severity .ne. 1 then exit 3 |
| 68 | $ difference/output=nl: f.n ff.n3 | 71 | $ backup/compare f.n ff.n3 |
| 69 | $ if $severity .ne. 1 then exit 3 | 72 | $ if $severity .ne. 1 then exit 3 |
| 70 | $ | 73 | $ |
| 71 | $ difference/output=nl: f.p ff.p1 | 74 | $ backup/compare f.p ff.p1 |
| 72 | $ if $severity .ne. 1 then exit 3 | 75 | $ if $severity .ne. 1 then exit 3 |
| 73 | $ difference/output=nl: f.p ff.p2 | 76 | $ backup/compare f.p ff.p2 |
| 74 | $ if $severity .ne. 1 then exit 3 | 77 | $ if $severity .ne. 1 then exit 3 |
| 75 | $ difference/output=nl: f.p ff.p3 | 78 | $ backup/compare f.p ff.p3 |
| 76 | $ if $severity .ne. 1 then exit 3 | 79 | $ if $severity .ne. 1 then exit 3 |
| 77 | $ | 80 | $ |
| 78 | $ delete f.*;*,ff.*;*,fff.*;* | 81 | $ delete f.*;*,ff.*;*,fff.*;* |
