1999-05-13 19:37:32 +08:00
|
|
|
$! TPKCS7.COM -- Tests pkcs7 keys
|
|
|
|
$
|
|
|
|
$ __arch := VAX
|
|
|
|
$ if f$getsyi("cpu") .ge. 128 then __arch := AXP
|
|
|
|
$ exe_dir := sys$disk:[-.'__arch'.exe.apps]
|
|
|
|
$
|
|
|
|
$ cmd := mcr 'exe_dir'openssl pkcs7
|
|
|
|
$
|
|
|
|
$ t := testp7.pem
|
|
|
|
$ if p1 .nes. "" then t = p1
|
|
|
|
$
|
|
|
|
$ write sys$output "testing PKCS7 conversions"
|
2000-02-26 11:59:46 +08: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.*;*
|
1999-05-13 19:37:32 +08:00
|
|
|
$ copy 't' fff.p
|
|
|
|
$
|
|
|
|
$ 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 -> 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' -in f.d -inform d -outform d -out ff.d1
|
|
|
|
$ if $severity .ne. 1 then exit 3
|
|
|
|
$ write sys$output "p -> d"
|
|
|
|
$ 'cmd' -in f.p -inform p -outform d -out ff.d3
|
|
|
|
$ 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 "p -> p"
|
|
|
|
$ 'cmd' -in f.p -inform p -outform p -out ff.p3
|
|
|
|
$ if $severity .ne. 1 then exit 3
|
|
|
|
$
|
1999-11-12 09:46:50 +08:00
|
|
|
$ backup/compare fff.p f.p
|
1999-05-13 19:37:32 +08:00
|
|
|
$ if $severity .ne. 1 then exit 3
|
1999-11-12 09:46:50 +08:00
|
|
|
$ backup/compare fff.p ff.p1
|
1999-05-13 19:37:32 +08:00
|
|
|
$ if $severity .ne. 1 then exit 3
|
1999-11-12 09:46:50 +08:00
|
|
|
$ backup/compare fff.p ff.p3
|
1999-05-13 19:37:32 +08:00
|
|
|
$ if $severity .ne. 1 then exit 3
|
|
|
|
$
|
1999-11-12 09:46:50 +08:00
|
|
|
$ backup/compare f.p ff.p1
|
1999-05-13 19:37:32 +08:00
|
|
|
$ if $severity .ne. 1 then exit 3
|
1999-11-12 09:46:50 +08:00
|
|
|
$ backup/compare f.p ff.p3
|
1999-05-13 19:37:32 +08:00
|
|
|
$ if $severity .ne. 1 then exit 3
|
|
|
|
$
|
|
|
|
$ delete f.*;*,ff.*;*,fff.*;*
|