New macro to set mac key.
[openssl.git] / test / testssl.com
index 88580291f1926b5218dbbb919f2c95e6d315dc71..3782e352bb9a9967913bfd184534979d7198c58f 100644 (file)
@@ -1,11 +1,14 @@
 $! TESTSSL.COM
 $
-$      __arch := VAX
+$      __arch = "VAX"
 $      if f$getsyi("cpu") .ge. 128 then -
           __arch = f$edit( f$getsyi( "ARCH_NAME"), "UPCASE")
-$      if __arch .eqs. "" then __arch := UNK
-$      texe_dir := sys$disk:[-.'__arch'.exe.test]
-$      exe_dir := sys$disk:[-.'__arch'.exe.apps]
+$      if __arch .eqs. "" then __arch = "UNK"
+$!
+$      if (p4 .eqs. "64") then __arch = __arch+ "_64"
+$!
+$      texe_dir = "sys$disk:[-.''__arch'.exe.test]"
+$      exe_dir = "sys$disk:[-.''__arch'.exe.apps]"
 $
 $      if p1 .eqs. ""
 $      then
@@ -19,8 +22,9 @@ $         cert="[-.apps]server.pem"
 $      else
 $          cert=p2
 $      endif
-$      ssltest := mcr 'texe_dir'ssltest -key 'key' -cert 'cert' -c_key 'key' -c_cert 'cert'
-$
+$      ssltest = "mcr ''texe_dir'ssltest -key ''key'"+ -
+        " -cert ''cert' -c_key ''key' -c_cert ''cert'"
+$!
 $      set noon
 $      define/user sys$output testssl-x509-output.
 $      define/user sys$error nla0:
@@ -29,9 +33,9 @@ $     define/user sys$error nla0:
 $      search/output=nla0: testssl-x509-output. "DSA Public Key"/exact
 $      if $severity .eq. 1
 $      then
-$          dsa_cert := YES
+$          dsa_cert = "YES"
 $      else
-$          dsa_cert := NO
+$          dsa_cert = "NO"
 $      endif
 $      delete testssl-x509-output.;*
 $
@@ -45,25 +49,6 @@ $    endif
 $
 $!###########################################################################
 $
-$      write sys$output "test sslv2"
-$      'ssltest' -ssl2
-$      if $severity .ne. 1 then goto exit3
-$
-$      write sys$output "test sslv2 with server authentication"
-$      'ssltest' -ssl2 -server_auth 'CA'
-$      if $severity .ne. 1 then goto exit3
-$
-$      if .not. dsa_cert
-$      then
-$          write sys$output "test sslv2 with client authentication"
-$          'ssltest' -ssl2 -client_auth 'CA'
-$          if $severity .ne. 1 then goto exit3
-$
-$          write sys$output "test sslv2 with both client and server authentication"
-$          'ssltest' -ssl2 -server_auth -client_auth 'CA'
-$          if $severity .ne. 1 then goto exit3
-$      endif
-$
 $      write sys$output "test sslv3"
 $      'ssltest' -ssl3
 $      if $severity .ne. 1 then goto exit3
@@ -96,25 +81,6 @@ $    write sys$output "test sslv2/sslv3 with both client and server authentication"
 $      'ssltest' -server_auth -client_auth 'CA'
 $      if $severity .ne. 1 then goto exit3
 $
-$      write sys$output "test sslv2 via BIO pair"
-$      'ssltest' -bio_pair -ssl2 
-$      if $severity .ne. 1 then goto exit3
-$
-$      write sys$output "test sslv2 with server authentication via BIO pair"
-$      'ssltest' -bio_pair -ssl2 -server_auth 'CA' 
-$      if $severity .ne. 1 then goto exit3
-$
-$      if .not. dsa_cert
-$      then
-$          write sys$output "test sslv2 with client authentication via BIO pair"
-$          'ssltest' -bio_pair -ssl2 -client_auth 'CA' 
-$          if $severity .ne. 1 then goto exit3
-$
-$          write sys$output "test sslv2 with both client and server authentication via BIO pair"
-$          'ssltest' -bio_pair -ssl2 -server_auth -client_auth 'CA' 
-$          if $severity .ne. 1 then goto exit3
-$      endif
-$
 $      write sys$output "test sslv3 via BIO pair"
 $      'ssltest' -bio_pair -ssl3 
 $      if $severity .ne. 1 then goto exit3