]> git.ipfire.org Git - thirdparty/openssl.git/blame - test/tpkcs7.com
Avoid endless loops. Really, we were using the same variable for two
[thirdparty/openssl.git] / test / tpkcs7.com
CommitLineData
7d7d2cbc
UM
1$! TPKCS7.COM -- Tests pkcs7 keys
2$
3$ __arch := VAX
4$ if f$getsyi("cpu") .ge. 128 then __arch := AXP
5$ exe_dir := sys$disk:[-.'__arch'.exe.apps]
6$
7$ cmd := mcr 'exe_dir'openssl pkcs7
8$
9$ t := testp7.pem
10$ if p1 .nes. "" then t = p1
11$
12$ write sys$output "testing PKCS7 conversions"
921c9bd5
RL
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.*;*
b4406973
RL
16$ convert/fdl=sys$input: 't' fff.p
17RECORD
18 FORMAT STREAM_LF
7d7d2cbc
UM
19$
20$ write sys$output "p -> d"
21$ 'cmd' -in fff.p -inform p -outform d -out f.d
22$ if $severity .ne. 1 then exit 3
23$ write sys$output "p -> p"
24$ 'cmd' -in fff.p -inform p -outform p -out f.p
25$ if $severity .ne. 1 then exit 3
26$
27$ write sys$output "d -> d"
28$ 'cmd' -in f.d -inform d -outform d -out ff.d1
29$ if $severity .ne. 1 then exit 3
30$ write sys$output "p -> d"
31$ 'cmd' -in f.p -inform p -outform d -out ff.d3
32$ if $severity .ne. 1 then exit 3
33$
34$
35$ write sys$output "d -> p"
36$ 'cmd' -in f.d -inform d -outform p -out ff.p1
37$ if $severity .ne. 1 then exit 3
38$ write sys$output "p -> p"
39$ 'cmd' -in f.p -inform p -outform p -out ff.p3
40$ if $severity .ne. 1 then exit 3
41$
13427e45 42$ backup/compare fff.p f.p
7d7d2cbc 43$ if $severity .ne. 1 then exit 3
13427e45 44$ backup/compare fff.p ff.p1
7d7d2cbc 45$ if $severity .ne. 1 then exit 3
13427e45 46$ backup/compare fff.p ff.p3
7d7d2cbc
UM
47$ if $severity .ne. 1 then exit 3
48$
13427e45 49$ backup/compare f.p ff.p1
7d7d2cbc 50$ if $severity .ne. 1 then exit 3
13427e45 51$ backup/compare f.p ff.p3
7d7d2cbc
UM
52$ if $severity .ne. 1 then exit 3
53$
54$ delete f.*;*,ff.*;*,fff.*;*