Set Enveloped data version to 2 if ktri version not zero.
[openssl.git] / test / tcrl.com
index cef21467bb646e0cacc495ce6be67b2302a363cf..dd96a2b6dd7554d0e2ca109ec78dc66f8af8d3e9 100644 (file)
@@ -1,16 +1,26 @@
 $! TCRL.COM  --  Tests crl keys
 $
-$      __arch := VAX
-$      if f$getsyi("cpu") .ge. 128 then __arch := AXP
-$      exe_dir := sys$disk:[-.'__arch'.exe.apps]
+$      __arch = "VAX"
+$      if f$getsyi("cpu") .ge. 128 then -
+          __arch = f$edit( f$getsyi( "ARCH_NAME"), "UPCASE")
+$      if __arch .eqs. "" then __arch = "UNK"
+$!
+$      if (p2 .eqs. "64") then __arch = __arch+ "_64"
+$!
+$      exe_dir = "sys$disk:[-.''__arch'.exe.apps]"
 $
-$      cmd := mcr 'exe_dir'openssl crl
+$      cmd = "mcr ''exe_dir'openssl crl"
 $
-$      t := testcrl.pem
+$      t = "testcrl.pem"
 $      if p1 .nes. "" then t = p1
 $
 $      write sys$output "testing CRL conversions"
-$      copy 't' fff.p
+$      if f$search("fff.*") .nes "" then delete fff.*;*
+$      if f$search("ff.*") .nes "" then delete ff.*;*
+$      if f$search("f.*") .nes "" then delete f.*;*
+$      convert/fdl=sys$input: 't' fff.p
+RECORD
+       FORMAT STREAM_LF
 $
 $      write sys$output "p -> d"
 $      'cmd' -in fff.p -inform p -outform d -out f.d
@@ -52,27 +62,27 @@ $   write sys$output "p -> p"
 $      'cmd' -in f.p -inform p -outform p -out ff.p3
 $      if $severity .ne. 1 then exit 3
 $
-$      difference/output=nl: fff.p f.p
+$      backup/compare fff.p f.p
 $      if $severity .ne. 1 then exit 3
-$      difference/output=nl: fff.p ff.p1
+$      backup/compare fff.p ff.p1
 $      if $severity .ne. 1 then exit 3
-$!     difference/output=nl: fff.p ff.p2
+$!     backup/compare fff.p ff.p2
 $!     if $severity .ne. 1 then exit 3
-$      difference/output=nl: fff.p ff.p3
+$      backup/compare fff.p ff.p3
 $      if $severity .ne. 1 then exit 3
 $
-$!     difference/output=nl: f.t ff.t1
+$!     backup/compare f.t ff.t1
 $!     if $severity .ne. 1 then exit 3
-$!     difference/output=nl: f.t ff.t2
+$!     backup/compare f.t ff.t2
 $!     if $severity .ne. 1 then exit 3
-$!     difference/output=nl: f.t ff.t3
+$!     backup/compare f.t ff.t3
 $!     if $severity .ne. 1 then exit 3
 $
-$      difference/output=nl: f.p ff.p1
+$      backup/compare f.p ff.p1
 $      if $severity .ne. 1 then exit 3
-$!     difference/output=nl: f.p ff.p2
+$!     backup/compare f.p ff.p2
 $!     if $severity .ne. 1 then exit 3
-$      difference/output=nl: f.p ff.p3
+$      backup/compare f.p ff.p3
 $      if $severity .ne. 1 then exit 3
 $
 $      delete f.*;*,ff.*;*,fff.*;*