]> git.ipfire.org Git - thirdparty/openssl.git/blame - test/tpkcs7d.com
Fix ecparam -genkey with point compression or DER outform
[thirdparty/openssl.git] / test / tpkcs7d.com
CommitLineData
7d7d2cbc
UM
1$! TPKCS7.COM -- Tests pkcs7 keys
2$
01d2e27a 3$ __arch = "VAX"
006c7c6b 4$ if f$getsyi("cpu") .ge. 128 then -
2de21373 5 __arch = f$edit( f$getsyi( "ARCH_NAME"), "UPCASE")
01d2e27a
RL
6$ if __arch .eqs. "" then __arch = "UNK"
7$!
8$ if (p2 .eqs. "64") then __arch = __arch+ "_64"
9$!
10$ exe_dir = "sys$disk:[-.''__arch'.exe.apps]"
7d7d2cbc 11$
01d2e27a 12$ cmd = "mcr ''exe_dir'openssl pkcs7"
7d7d2cbc 13$
01d2e27a 14$ t = "pkcs7-1.pem"
7d7d2cbc
UM
15$ if p1 .nes. "" then t = p1
16$
17$ write sys$output "testing PKCS7 conversions (2)"
921c9bd5
RL
18$ if f$search("fff.*") .nes "" then delete fff.*;*
19$ if f$search("ff.*") .nes "" then delete ff.*;*
20$ if f$search("f.*") .nes "" then delete f.*;*
b4406973
RL
21$ convert/fdl=sys$input: 't' fff.p
22RECORD
23 FORMAT STREAM_LF
7d7d2cbc
UM
24$
25$ write sys$output "p -> d"
26$ 'cmd' -in fff.p -inform p -outform d -out f.d
27$ if $severity .ne. 1 then exit 3
28$ write sys$output "p -> p"
29$ 'cmd' -in fff.p -inform p -outform p -out f.p
30$ if $severity .ne. 1 then exit 3
31$
32$ write sys$output "d -> d"
33$ 'cmd' -in f.d -inform d -outform d -out ff.d1
34$ if $severity .ne. 1 then exit 3
35$ write sys$output "p -> d"
36$ 'cmd' -in f.p -inform p -outform d -out ff.d3
37$ if $severity .ne. 1 then exit 3
38$
39$
40$ write sys$output "d -> p"
41$ 'cmd' -in f.d -inform d -outform p -out ff.p1
42$ if $severity .ne. 1 then exit 3
43$ write sys$output "p -> p"
44$ 'cmd' -in f.p -inform p -outform p -out ff.p3
45$ if $severity .ne. 1 then exit 3
46$
13427e45 47$ backup/compare f.p ff.p1
7d7d2cbc 48$ if $severity .ne. 1 then exit 3
13427e45 49$ backup/compare f.p ff.p3
7d7d2cbc
UM
50$ if $severity .ne. 1 then exit 3
51$
52$ delete f.*;*,ff.*;*,fff.*;*