OLD | NEW |
1 $! TPKCS7.COM -- Tests pkcs7 keys | 1 $! TPKCS7.COM -- Tests pkcs7 keys |
2 $ | 2 $ |
3 $» __arch := VAX | 3 $» __arch = "VAX" |
4 $ if f$getsyi("cpu") .ge. 128 then - | 4 $ if f$getsyi("cpu") .ge. 128 then - |
5 __arch = f$edit( f$getsyi( "ARCH_NAME"), "UPCASE") | 5 __arch = f$edit( f$getsyi( "ARCH_NAME"), "UPCASE") |
6 $» if __arch .eqs. "" then __arch := UNK | 6 $» if __arch .eqs. "" then __arch = "UNK" |
7 $» exe_dir := sys$disk:[-.'__arch'.exe.apps] | 7 $! |
| 8 $» if (p2 .eqs. "64") then __arch = __arch+ "_64" |
| 9 $! |
| 10 $» exe_dir = "sys$disk:[-.''__arch'.exe.apps]" |
8 $ | 11 $ |
9 $» cmd := mcr 'exe_dir'openssl pkcs7 | 12 $» cmd = "mcr ''exe_dir'openssl pkcs7" |
10 $ | 13 $ |
11 $» t := pkcs7-1.pem | 14 $» t = "pkcs7-1.pem" |
12 $ if p1 .nes. "" then t = p1 | 15 $ if p1 .nes. "" then t = p1 |
13 $ | 16 $ |
14 $ write sys$output "testing PKCS7 conversions (2)" | 17 $ write sys$output "testing PKCS7 conversions (2)" |
15 $ if f$search("fff.*") .nes "" then delete fff.*;* | 18 $ if f$search("fff.*") .nes "" then delete fff.*;* |
16 $ if f$search("ff.*") .nes "" then delete ff.*;* | 19 $ if f$search("ff.*") .nes "" then delete ff.*;* |
17 $ if f$search("f.*") .nes "" then delete f.*;* | 20 $ if f$search("f.*") .nes "" then delete f.*;* |
18 $ convert/fdl=sys$input: 't' fff.p | 21 $ convert/fdl=sys$input: 't' fff.p |
19 RECORD | 22 RECORD |
20 FORMAT STREAM_LF | 23 FORMAT STREAM_LF |
21 $ | 24 $ |
(...skipping 18 matching lines...) Expand all Loading... |
40 $ write sys$output "p -> p" | 43 $ write sys$output "p -> p" |
41 $ 'cmd' -in f.p -inform p -outform p -out ff.p3 | 44 $ 'cmd' -in f.p -inform p -outform p -out ff.p3 |
42 $ if $severity .ne. 1 then exit 3 | 45 $ if $severity .ne. 1 then exit 3 |
43 $ | 46 $ |
44 $ backup/compare f.p ff.p1 | 47 $ backup/compare f.p ff.p1 |
45 $ if $severity .ne. 1 then exit 3 | 48 $ if $severity .ne. 1 then exit 3 |
46 $ backup/compare f.p ff.p3 | 49 $ backup/compare f.p ff.p3 |
47 $ if $severity .ne. 1 then exit 3 | 50 $ if $severity .ne. 1 then exit 3 |
48 $ | 51 $ |
49 $ delete f.*;*,ff.*;*,fff.*;* | 52 $ delete f.*;*,ff.*;*,fff.*;* |
OLD | NEW |