1999-05-13 11:37:32 +00:00
|
|
|
$! TREQ.COM -- Tests req keys
|
|
|
|
$
|
2011-03-19 09:44:53 +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:44:53 +00:00
|
|
|
$ if __arch .eqs. "" then __arch = "UNK"
|
|
|
|
$!
|
|
|
|
$ if (p2 .eqs. "64") then __arch = __arch+ "_64"
|
|
|
|
$!
|
|
|
|
$ exe_dir = "sys$disk:[-.''__arch'.exe.apps]"
|
1999-05-13 11:37:32 +00:00
|
|
|
$
|
2011-03-19 09:44:53 +00:00
|
|
|
$ cmd = "mcr ''exe_dir'openssl req -config [-.apps]openssl-vms.cnf"
|
1999-05-13 11:37:32 +00:00
|
|
|
$
|
2011-03-19 09:44:53 +00:00
|
|
|
$ t = "testreq.pem"
|
1999-05-13 11:37:32 +00:00
|
|
|
$ if p1 .nes. "" then t = p1
|
|
|
|
$
|
|
|
|
$ write sys$output "testing req conversions"
|
2000-02-26 03:59:46 +00:00
|
|
|
$ if f$search("fff.*") .nes "" then delete fff.*;*
|
|
|
|
$ if f$search("ff.*") .nes "" then delete ff.*;*
|
|
|
|
$ if f$search("f.*") .nes "" then delete f.*;*
|
2002-08-14 11:08:43 +00:00
|
|
|
$ convert/fdl=sys$input: 't' fff.p
|
|
|
|
RECORD
|
|
|
|
FORMAT STREAM_LF
|
1999-05-13 11:37:32 +00:00
|
|
|
$
|
|
|
|
$ write sys$output "p -> d"
|
|
|
|
$ 'cmd' -in fff.p -inform p -outform d -out f.d
|
|
|
|
$ if $severity .ne. 1 then exit 3
|
|
|
|
$! write sys$output "p -> t"
|
|
|
|
$! 'cmd' -in fff.p -inform p -outform t -out f.t
|
|
|
|
$! if $severity .ne. 1 then exit 3
|
|
|
|
$ write sys$output "p -> p"
|
|
|
|
$ 'cmd' -in fff.p -inform p -outform p -out f.p
|
|
|
|
$ if $severity .ne. 1 then exit 3
|
|
|
|
$
|
|
|
|
$ write sys$output "d -> d"
|
|
|
|
$ 'cmd' -verify -in f.d -inform d -outform d -out ff.d1
|
|
|
|
$ if $severity .ne. 1 then exit 3
|
|
|
|
$! write sys$output "t -> d"
|
|
|
|
$! 'cmd' -verify -in f.t -inform t -outform d -out ff.d2
|
|
|
|
$! if $severity .ne. 1 then exit 3
|
|
|
|
$ write sys$output "p -> d"
|
|
|
|
$ 'cmd' -verify -in f.p -inform p -outform d -out ff.d3
|
|
|
|
$ if $severity .ne. 1 then exit 3
|
|
|
|
$
|
|
|
|
$! write sys$output "d -> t"
|
|
|
|
$! 'cmd' -in f.d -inform d -outform t -out ff.t1
|
|
|
|
$! if $severity .ne. 1 then exit 3
|
|
|
|
$! write sys$output "t -> t"
|
|
|
|
$! 'cmd' -in f.t -inform t -outform t -out ff.t2
|
|
|
|
$! if $severity .ne. 1 then exit 3
|
|
|
|
$! write sys$output "p -> t"
|
|
|
|
$! 'cmd' -in f.p -inform p -outform t -out ff.t3
|
|
|
|
$! if $severity .ne. 1 then exit 3
|
|
|
|
$
|
|
|
|
$ write sys$output "d -> p"
|
|
|
|
$ 'cmd' -in f.d -inform d -outform p -out ff.p1
|
|
|
|
$ if $severity .ne. 1 then exit 3
|
|
|
|
$! write sys$output "t -> p"
|
|
|
|
$! 'cmd' -in f.t -inform t -outform p -out ff.p2
|
|
|
|
$! if $severity .ne. 1 then exit 3
|
|
|
|
$ write sys$output "p -> p"
|
|
|
|
$ 'cmd' -in f.p -inform p -outform p -out ff.p3
|
|
|
|
$ if $severity .ne. 1 then exit 3
|
|
|
|
$
|
1999-11-12 01:46:50 +00:00
|
|
|
$ backup/compare fff.p f.p
|
1999-05-13 11:37:32 +00:00
|
|
|
$ if $severity .ne. 1 then exit 3
|
1999-11-12 01:46:50 +00:00
|
|
|
$ backup/compare fff.p ff.p1
|
1999-05-13 11:37:32 +00:00
|
|
|
$ if $severity .ne. 1 then exit 3
|
1999-11-12 01:46:50 +00:00
|
|
|
$! backup/compare fff.p ff.p2
|
1999-05-13 11:37:32 +00:00
|
|
|
$! if $severity .ne. 1 then exit 3
|
1999-11-12 01:46:50 +00:00
|
|
|
$ backup/compare fff.p ff.p3
|
1999-05-13 11:37:32 +00:00
|
|
|
$ if $severity .ne. 1 then exit 3
|
|
|
|
$
|
1999-11-12 01:46:50 +00:00
|
|
|
$! backup/compare f.t ff.t1
|
1999-05-13 11:37:32 +00:00
|
|
|
$! if $severity .ne. 1 then exit 3
|
1999-11-12 01:46:50 +00:00
|
|
|
$! backup/compare f.t ff.t2
|
1999-05-13 11:37:32 +00:00
|
|
|
$! if $severity .ne. 1 then exit 3
|
1999-11-12 01:46:50 +00:00
|
|
|
$! backup/compare f.t ff.t3
|
1999-05-13 11:37:32 +00:00
|
|
|
$! if $severity .ne. 1 then exit 3
|
|
|
|
$
|
1999-11-12 01:46:50 +00:00
|
|
|
$ backup/compare f.p ff.p1
|
1999-05-13 11:37:32 +00:00
|
|
|
$ if $severity .ne. 1 then exit 3
|
1999-11-12 01:46:50 +00:00
|
|
|
$! backup/compare f.p ff.p2
|
1999-05-13 11:37:32 +00:00
|
|
|
$! if $severity .ne. 1 then exit 3
|
1999-11-12 01:46:50 +00:00
|
|
|
$ backup/compare f.p ff.p3
|
1999-05-13 11:37:32 +00:00
|
|
|
$ if $severity .ne. 1 then exit 3
|
|
|
|
$
|
|
|
|
$ delete f.*;*,ff.*;*,fff.*;*
|