test.bat 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. @echo off
  2. set test=..\ms
  3. set opath=%PATH%
  4. PATH=..\ms;%PATH%
  5. set OPENSSL_CONF=..\apps\openssl.cnf
  6. rem run this from inside the bin directory
  7. echo rsa_test
  8. rsa_test
  9. if errorlevel 1 goto done
  10. echo destest
  11. destest
  12. if errorlevel 1 goto done
  13. echo ideatest
  14. ideatest
  15. if errorlevel 1 goto done
  16. echo bftest
  17. bftest
  18. if errorlevel 1 goto done
  19. echo shatest
  20. shatest
  21. if errorlevel 1 goto done
  22. echo sha1test
  23. sha1test
  24. if errorlevel 1 goto done
  25. echo md5test
  26. md5test
  27. if errorlevel 1 goto done
  28. echo rc2test
  29. rc2test
  30. if errorlevel 1 goto done
  31. echo rc4test
  32. rc4test
  33. if errorlevel 1 goto done
  34. echo randtest
  35. randtest
  36. if errorlevel 1 goto done
  37. echo dhtest
  38. dhtest
  39. if errorlevel 1 goto done
  40. echo exptest
  41. exptest
  42. if errorlevel 1 goto done
  43. echo dsatest
  44. dsatest
  45. if errorlevel 1 goto done
  46. echo ectest
  47. ectest
  48. if errorlevel 1 goto done
  49. echo testenc
  50. call %test%\testenc openssl
  51. if errorlevel 1 goto done
  52. echo testpem
  53. call %test%\testpem openssl
  54. if errorlevel 1 goto done
  55. echo testss
  56. call %test%\testss openssl
  57. if errorlevel 1 goto done
  58. set SSL_TEST=ssltest -key keyU.ss -cert certU.ss -c_key keyU.ss -c_cert certU.ss -CAfile certCA.ss
  59. echo test sslv2
  60. ssltest -ssl2
  61. if errorlevel 1 goto done
  62. echo test sslv2 with server authentication
  63. %SSL_TEST% -ssl2 -server_auth
  64. if errorlevel 1 goto done
  65. echo test sslv2 with client authentication
  66. %SSL_TEST% -ssl2 -client_auth
  67. if errorlevel 1 goto done
  68. echo test sslv2 with both client and server authentication
  69. %SSL_TEST% -ssl2 -server_auth -client_auth
  70. if errorlevel 1 goto done
  71. echo test sslv3
  72. ssltest -ssl3
  73. if errorlevel 1 goto done
  74. echo test sslv3 with server authentication
  75. %SSL_TEST% -ssl3 -server_auth
  76. if errorlevel 1 goto done
  77. echo test sslv3 with client authentication
  78. %SSL_TEST% -ssl3 -client_auth
  79. if errorlevel 1 goto done
  80. echo test sslv3 with both client and server authentication
  81. %SSL_TEST% -ssl3 -server_auth -client_auth
  82. if errorlevel 1 goto done
  83. echo test sslv2/sslv3
  84. ssltest
  85. if errorlevel 1 goto done
  86. echo test sslv2/sslv3 with server authentication
  87. %SSL_TEST% -server_auth
  88. if errorlevel 1 goto done
  89. echo test sslv2/sslv3 with client authentication
  90. %SSL_TEST% -client_auth
  91. if errorlevel 1 goto done
  92. echo test sslv2/sslv3 with both client and server authentication
  93. %SSL_TEST% -server_auth -client_auth
  94. if errorlevel 1 goto done
  95. echo test sslv2 via BIO pair
  96. ssltest -bio_pair -ssl2
  97. if errorlevel 1 goto done
  98. echo test sslv2/sslv3 with 1024 bit DHE via BIO pair
  99. ssltest -bio_pair -dhe1024dsa -v
  100. if errorlevel 1 goto done
  101. echo test sslv2 with server authentication via BIO pair
  102. %SSL_TEST% -bio_pair -ssl2 -server_auth
  103. if errorlevel 1 goto done
  104. echo test sslv2 with client authentication via BIO pair
  105. %SSL_TEST% -bio_pair -ssl2 -client_auth
  106. if errorlevel 1 goto done
  107. echo test sslv2 with both client and server authentication via BIO pair
  108. %SSL_TEST% -bio_pair -ssl2 -server_auth -client_auth
  109. if errorlevel 1 goto done
  110. echo test sslv3 via BIO pair
  111. ssltest -bio_pair -ssl3
  112. if errorlevel 1 goto done
  113. echo test sslv3 with server authentication via BIO pair
  114. %SSL_TEST% -bio_pair -ssl3 -server_auth
  115. if errorlevel 1 goto done
  116. echo test sslv3 with client authentication via BIO pair
  117. %SSL_TEST% -bio_pair -ssl3 -client_auth
  118. if errorlevel 1 goto done
  119. echo test sslv3 with both client and server authentication via BIO pair
  120. %SSL_TEST% -bio_pair -ssl3 -server_auth -client_auth
  121. if errorlevel 1 goto done
  122. echo test sslv2/sslv3 via BIO pair
  123. ssltest -bio_pair
  124. if errorlevel 1 goto done
  125. echo test sslv2/sslv3 with server authentication
  126. %SSL_TEST% -bio_pair -server_auth
  127. if errorlevel 1 goto done
  128. echo test sslv2/sslv3 with client authentication via BIO pair
  129. %SSL_TEST% -bio_pair -client_auth
  130. if errorlevel 1 goto done
  131. echo test sslv2/sslv3 with both client and server authentication via BIO pair
  132. %SSL_TEST% -bio_pair -server_auth -client_auth
  133. if errorlevel 1 goto done
  134. echo passed all tests
  135. goto end
  136. :done
  137. echo problems.....
  138. :end
  139. PATH=%opath%