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 := testp7.pem | 14 $» t = "testp7.pem" |
12 $ if p1 .nes. "" then t = p1 | 15 $ if p1 .nes. "" then t = p1 |
13 $ | 16 $ |
14 $ write sys$output "testing PKCS7 conversions" | 17 $ write sys$output "testing PKCS7 conversions" |
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 25 matching lines...) Expand all Loading... |
47 $ if $severity .ne. 1 then exit 3 | 50 $ if $severity .ne. 1 then exit 3 |
48 $ backup/compare fff.p ff.p3 | 51 $ backup/compare fff.p ff.p3 |
49 $ if $severity .ne. 1 then exit 3 | 52 $ if $severity .ne. 1 then exit 3 |
50 $ | 53 $ |
51 $ backup/compare f.p ff.p1 | 54 $ backup/compare f.p ff.p1 |
52 $ if $severity .ne. 1 then exit 3 | 55 $ if $severity .ne. 1 then exit 3 |
53 $ backup/compare f.p ff.p3 | 56 $ backup/compare f.p ff.p3 |
54 $ if $severity .ne. 1 then exit 3 | 57 $ if $severity .ne. 1 then exit 3 |
55 $ | 58 $ |
56 $ delete f.*;*,ff.*;*,fff.*;* | 59 $ delete f.*;*,ff.*;*,fff.*;* |
OLD | NEW |