diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/test/trsa | 83 | ||||
| -rw-r--r-- | src/lib/libssl/test/trsa.com | 99 |
2 files changed, 0 insertions, 182 deletions
diff --git a/src/lib/libssl/test/trsa b/src/lib/libssl/test/trsa deleted file mode 100644 index 249ac1ddcc..0000000000 --- a/src/lib/libssl/test/trsa +++ /dev/null | |||
| @@ -1,83 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | if ../util/shlib_wrap.sh ../apps/openssl no-rsa; then | ||
| 4 | echo skipping rsa conversion test | ||
| 5 | exit 0 | ||
| 6 | fi | ||
| 7 | |||
| 8 | cmd='../util/shlib_wrap.sh ../apps/openssl rsa' | ||
| 9 | |||
| 10 | if [ "$1"x != "x" ]; then | ||
| 11 | t=$1 | ||
| 12 | else | ||
| 13 | t=testrsa.pem | ||
| 14 | fi | ||
| 15 | |||
| 16 | echo testing rsa conversions | ||
| 17 | cp $t fff.p | ||
| 18 | |||
| 19 | echo "p -> d" | ||
| 20 | $cmd -in fff.p -inform p -outform d >f.d | ||
| 21 | if [ $? != 0 ]; then exit 1; fi | ||
| 22 | #echo "p -> t" | ||
| 23 | #$cmd -in fff.p -inform p -outform t >f.t | ||
| 24 | #if [ $? != 0 ]; then exit 1; fi | ||
| 25 | echo "p -> p" | ||
| 26 | $cmd -in fff.p -inform p -outform p >f.p | ||
| 27 | if [ $? != 0 ]; then exit 1; fi | ||
| 28 | |||
| 29 | echo "d -> d" | ||
| 30 | $cmd -in f.d -inform d -outform d >ff.d1 | ||
| 31 | if [ $? != 0 ]; then exit 1; fi | ||
| 32 | #echo "t -> d" | ||
| 33 | #$cmd -in f.t -inform t -outform d >ff.d2 | ||
| 34 | #if [ $? != 0 ]; then exit 1; fi | ||
| 35 | echo "p -> d" | ||
| 36 | $cmd -in f.p -inform p -outform d >ff.d3 | ||
| 37 | if [ $? != 0 ]; then exit 1; fi | ||
| 38 | |||
| 39 | #echo "d -> t" | ||
| 40 | #$cmd -in f.d -inform d -outform t >ff.t1 | ||
| 41 | #if [ $? != 0 ]; then exit 1; fi | ||
| 42 | #echo "t -> t" | ||
| 43 | #$cmd -in f.t -inform t -outform t >ff.t2 | ||
| 44 | #if [ $? != 0 ]; then exit 1; fi | ||
| 45 | #echo "p -> t" | ||
| 46 | #$cmd -in f.p -inform p -outform t >ff.t3 | ||
| 47 | #if [ $? != 0 ]; then exit 1; fi | ||
| 48 | |||
| 49 | echo "d -> p" | ||
| 50 | $cmd -in f.d -inform d -outform p >ff.p1 | ||
| 51 | if [ $? != 0 ]; then exit 1; fi | ||
| 52 | #echo "t -> p" | ||
| 53 | #$cmd -in f.t -inform t -outform p >ff.p2 | ||
| 54 | #if [ $? != 0 ]; then exit 1; fi | ||
| 55 | echo "p -> p" | ||
| 56 | $cmd -in f.p -inform p -outform p >ff.p3 | ||
| 57 | if [ $? != 0 ]; then exit 1; fi | ||
| 58 | |||
| 59 | cmp fff.p f.p | ||
| 60 | if [ $? != 0 ]; then exit 1; fi | ||
| 61 | cmp fff.p ff.p1 | ||
| 62 | if [ $? != 0 ]; then exit 1; fi | ||
| 63 | #cmp fff.p ff.p2 | ||
| 64 | #if [ $? != 0 ]; then exit 1; fi | ||
| 65 | cmp fff.p ff.p3 | ||
| 66 | if [ $? != 0 ]; then exit 1; fi | ||
| 67 | |||
| 68 | #cmp f.t ff.t1 | ||
| 69 | #if [ $? != 0 ]; then exit 1; fi | ||
| 70 | #cmp f.t ff.t2 | ||
| 71 | #if [ $? != 0 ]; then exit 1; fi | ||
| 72 | #cmp f.t ff.t3 | ||
| 73 | #if [ $? != 0 ]; then exit 1; fi | ||
| 74 | |||
| 75 | cmp f.p ff.p1 | ||
| 76 | if [ $? != 0 ]; then exit 1; fi | ||
| 77 | #cmp f.p ff.p2 | ||
| 78 | #if [ $? != 0 ]; then exit 1; fi | ||
| 79 | cmp f.p ff.p3 | ||
| 80 | if [ $? != 0 ]; then exit 1; fi | ||
| 81 | |||
| 82 | /bin/rm -f f.* ff.* fff.* | ||
| 83 | exit 0 | ||
diff --git a/src/lib/libssl/test/trsa.com b/src/lib/libssl/test/trsa.com deleted file mode 100644 index 54180843ee..0000000000 --- a/src/lib/libssl/test/trsa.com +++ /dev/null | |||
| @@ -1,99 +0,0 @@ | |||
| 1 | $! TRSA.COM -- Tests rsa keys | ||
| 2 | $ | ||
| 3 | $ __arch = "VAX" | ||
| 4 | $ if f$getsyi("cpu") .ge. 128 then - | ||
| 5 | __arch = f$edit( f$getsyi( "ARCH_NAME"), "UPCASE") | ||
| 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]" | ||
| 11 | $ | ||
| 12 | $ set noon | ||
| 13 | $ define/user sys$output nla0: | ||
| 14 | $ mcr 'exe_dir'openssl no-rsa | ||
| 15 | $ save_severity=$SEVERITY | ||
| 16 | $ set on | ||
| 17 | $ if save_severity | ||
| 18 | $ then | ||
| 19 | $ write sys$output "skipping RSA conversion test" | ||
| 20 | $ exit | ||
| 21 | $ endif | ||
| 22 | $ | ||
| 23 | $ cmd = "mcr ''exe_dir'openssl rsa" | ||
| 24 | $ | ||
| 25 | $ t = "testrsa.pem" | ||
| 26 | $ if p1 .nes. "" then t = p1 | ||
| 27 | $ | ||
| 28 | $ write sys$output "testing RSA conversions" | ||
| 29 | $ if f$search("fff.*") .nes "" then delete fff.*;* | ||
| 30 | $ if f$search("ff.*") .nes "" then delete ff.*;* | ||
| 31 | $ if f$search("f.*") .nes "" then delete f.*;* | ||
| 32 | $ convert/fdl=sys$input: 't' fff.p | ||
| 33 | RECORD | ||
| 34 | FORMAT STREAM_LF | ||
| 35 | $ | ||
| 36 | $ write sys$output "p -> d" | ||
| 37 | $ 'cmd' -in fff.p -inform p -outform d -out f.d | ||
| 38 | $ if $severity .ne. 1 then exit 3 | ||
| 39 | $! write sys$output "p -> t" | ||
| 40 | $! 'cmd' -in fff.p -inform p -outform t -out f.t | ||
| 41 | $! if $severity .ne. 1 then exit 3 | ||
| 42 | $ write sys$output "p -> p" | ||
| 43 | $ 'cmd' -in fff.p -inform p -outform p -out f.p | ||
| 44 | $ if $severity .ne. 1 then exit 3 | ||
| 45 | $ | ||
| 46 | $ write sys$output "d -> d" | ||
| 47 | $ 'cmd' -in f.d -inform d -outform d -out ff.d1 | ||
| 48 | $ if $severity .ne. 1 then exit 3 | ||
| 49 | $! write sys$output "t -> d" | ||
| 50 | $! 'cmd' -in f.t -inform t -outform d -out ff.d2 | ||
| 51 | $! if $severity .ne. 1 then exit 3 | ||
| 52 | $ write sys$output "p -> d" | ||
| 53 | $ 'cmd' -in f.p -inform p -outform d -out ff.d3 | ||
| 54 | $ if $severity .ne. 1 then exit 3 | ||
| 55 | $ | ||
| 56 | $! write sys$output "d -> t" | ||
| 57 | $! 'cmd' -in f.d -inform d -outform t -out ff.t1 | ||
| 58 | $! if $severity .ne. 1 then exit 3 | ||
| 59 | $! write sys$output "t -> t" | ||
| 60 | $! 'cmd' -in f.t -inform t -outform t -out ff.t2 | ||
| 61 | $! if $severity .ne. 1 then exit 3 | ||
| 62 | $! write sys$output "p -> t" | ||
| 63 | $! 'cmd' -in f.p -inform p -outform t -out ff.t3 | ||
| 64 | $! if $severity .ne. 1 then exit 3 | ||
| 65 | $ | ||
| 66 | $ write sys$output "d -> p" | ||
| 67 | $ 'cmd' -in f.d -inform d -outform p -out ff.p1 | ||
| 68 | $ if $severity .ne. 1 then exit 3 | ||
| 69 | $! write sys$output "t -> p" | ||
| 70 | $! 'cmd' -in f.t -inform t -outform p -out ff.p2 | ||
| 71 | $! if $severity .ne. 1 then exit 3 | ||
| 72 | $ write sys$output "p -> p" | ||
| 73 | $ 'cmd' -in f.p -inform p -outform p -out ff.p3 | ||
| 74 | $ if $severity .ne. 1 then exit 3 | ||
| 75 | $ | ||
| 76 | $ backup/compare fff.p f.p | ||
| 77 | $ if $severity .ne. 1 then exit 3 | ||
| 78 | $ backup/compare fff.p ff.p1 | ||
| 79 | $ if $severity .ne. 1 then exit 3 | ||
| 80 | $! backup/compare fff.p ff.p2 | ||
| 81 | $! if $severity .ne. 1 then exit 3 | ||
| 82 | $ backup/compare fff.p ff.p3 | ||
| 83 | $ if $severity .ne. 1 then exit 3 | ||
| 84 | $ | ||
| 85 | $! backup/compare f.t ff.t1 | ||
| 86 | $! if $severity .ne. 1 then exit 3 | ||
| 87 | $! backup/compare f.t ff.t2 | ||
| 88 | $! if $severity .ne. 1 then exit 3 | ||
| 89 | $! backup/compare f.t ff.t3 | ||
| 90 | $! if $severity .ne. 1 then exit 3 | ||
| 91 | $ | ||
| 92 | $ backup/compare f.p ff.p1 | ||
| 93 | $ if $severity .ne. 1 then exit 3 | ||
| 94 | $! backup/compare f.p ff.p2 | ||
| 95 | $! if $severity .ne. 1 then exit 3 | ||
| 96 | $ backup/compare f.p ff.p3 | ||
| 97 | $ if $severity .ne. 1 then exit 3 | ||
| 98 | $ | ||
| 99 | $ delete f.*;*,ff.*;*,fff.*;* | ||
