diff options
| author | markus <> | 2002-09-05 12:51:52 +0000 |
|---|---|---|
| committer | markus <> | 2002-09-05 12:51:52 +0000 |
| commit | 5514995a9d5ed91db089875adb509c7781357c0e (patch) | |
| tree | 2484410a46ba6c05ef94c253da36fbceef990b64 /src/lib/libssl/test/trsa.com | |
| parent | fd9566423b542798f5c8b06e68101a9ea5bb9885 (diff) | |
| download | openbsd-5514995a9d5ed91db089875adb509c7781357c0e.tar.gz openbsd-5514995a9d5ed91db089875adb509c7781357c0e.tar.bz2 openbsd-5514995a9d5ed91db089875adb509c7781357c0e.zip | |
import openssl-0.9.7-beta1
Diffstat (limited to 'src/lib/libssl/test/trsa.com')
| -rw-r--r-- | src/lib/libssl/test/trsa.com | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/src/lib/libssl/test/trsa.com b/src/lib/libssl/test/trsa.com index 9c9083d02b..6b6c318e2b 100644 --- a/src/lib/libssl/test/trsa.com +++ b/src/lib/libssl/test/trsa.com | |||
| @@ -4,12 +4,26 @@ $ __arch := VAX | |||
| 4 | $ if f$getsyi("cpu") .ge. 128 then __arch := AXP | 4 | $ if f$getsyi("cpu") .ge. 128 then __arch := AXP |
| 5 | $ exe_dir := sys$disk:[-.'__arch'.exe.apps] | 5 | $ exe_dir := sys$disk:[-.'__arch'.exe.apps] |
| 6 | $ | 6 | $ |
| 7 | $ set noon | ||
| 8 | $ define/user sys$output nla0: | ||
| 9 | $ mcr 'exe_dir'openssl no-rsa | ||
| 10 | $ save_severity=$SEVERITY | ||
| 11 | $ set on | ||
| 12 | $ if save_severity | ||
| 13 | $ then | ||
| 14 | $ write sys$output "skipping RSA conversion test" | ||
| 15 | $ exit | ||
| 16 | $ endif | ||
| 17 | $ | ||
| 7 | $ cmd := mcr 'exe_dir'openssl rsa | 18 | $ cmd := mcr 'exe_dir'openssl rsa |
| 8 | $ | 19 | $ |
| 9 | $ t := testrsa.pem | 20 | $ t := testrsa.pem |
| 10 | $ if p1 .nes. "" then t = p1 | 21 | $ if p1 .nes. "" then t = p1 |
| 11 | $ | 22 | $ |
| 12 | $ write sys$output "testing RSA conversions" | 23 | $ write sys$output "testing RSA conversions" |
| 24 | $ if f$search("fff.*") .nes "" then delete fff.*;* | ||
| 25 | $ if f$search("ff.*") .nes "" then delete ff.*;* | ||
| 26 | $ if f$search("f.*") .nes "" then delete f.*;* | ||
| 13 | $ copy 't' fff.p | 27 | $ copy 't' fff.p |
| 14 | $ | 28 | $ |
| 15 | $ write sys$output "p -> d" | 29 | $ write sys$output "p -> d" |
| @@ -52,27 +66,27 @@ $ write sys$output "p -> p" | |||
| 52 | $ 'cmd' -in f.p -inform p -outform p -out ff.p3 | 66 | $ 'cmd' -in f.p -inform p -outform p -out ff.p3 |
| 53 | $ if $severity .ne. 1 then exit 3 | 67 | $ if $severity .ne. 1 then exit 3 |
| 54 | $ | 68 | $ |
| 55 | $ difference/output=nl: fff.p f.p | 69 | $ backup/compare fff.p f.p |
| 56 | $ if $severity .ne. 1 then exit 3 | 70 | $ if $severity .ne. 1 then exit 3 |
| 57 | $ difference/output=nl: fff.p ff.p1 | 71 | $ backup/compare fff.p ff.p1 |
| 58 | $ if $severity .ne. 1 then exit 3 | 72 | $ if $severity .ne. 1 then exit 3 |
| 59 | $! difference/output=nl: fff.p ff.p2 | 73 | $! backup/compare fff.p ff.p2 |
| 60 | $! if $severity .ne. 1 then exit 3 | 74 | $! if $severity .ne. 1 then exit 3 |
| 61 | $ difference/output=nl: fff.p ff.p3 | 75 | $ backup/compare fff.p ff.p3 |
| 62 | $ if $severity .ne. 1 then exit 3 | 76 | $ if $severity .ne. 1 then exit 3 |
| 63 | $ | 77 | $ |
| 64 | $! difference/output=nl: f.t ff.t1 | 78 | $! backup/compare f.t ff.t1 |
| 65 | $! if $severity .ne. 1 then exit 3 | 79 | $! if $severity .ne. 1 then exit 3 |
| 66 | $! difference/output=nl: f.t ff.t2 | 80 | $! backup/compare f.t ff.t2 |
| 67 | $! if $severity .ne. 1 then exit 3 | 81 | $! if $severity .ne. 1 then exit 3 |
| 68 | $! difference/output=nl: f.t ff.t3 | 82 | $! backup/compare f.t ff.t3 |
| 69 | $! if $severity .ne. 1 then exit 3 | 83 | $! if $severity .ne. 1 then exit 3 |
| 70 | $ | 84 | $ |
| 71 | $ difference/output=nl: f.p ff.p1 | 85 | $ backup/compare f.p ff.p1 |
| 72 | $ if $severity .ne. 1 then exit 3 | 86 | $ if $severity .ne. 1 then exit 3 |
| 73 | $! difference/output=nl: f.p ff.p2 | 87 | $! backup/compare f.p ff.p2 |
| 74 | $! if $severity .ne. 1 then exit 3 | 88 | $! if $severity .ne. 1 then exit 3 |
| 75 | $ difference/output=nl: f.p ff.p3 | 89 | $ backup/compare f.p ff.p3 |
| 76 | $ if $severity .ne. 1 then exit 3 | 90 | $ if $severity .ne. 1 then exit 3 |
| 77 | $ | 91 | $ |
| 78 | $ delete f.*;*,ff.*;*,fff.*;* | 92 | $ delete f.*;*,ff.*;*,fff.*;* |
