test.bat 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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 md2test
  29. md2test
  30. if errorlevel 1 goto done
  31. echo rc2test
  32. rc2test
  33. if errorlevel 1 goto done
  34. echo rc4test
  35. rc4test
  36. if errorlevel 1 goto done
  37. echo randtest
  38. randtest
  39. if errorlevel 1 goto done
  40. echo dhtest
  41. dhtest
  42. if errorlevel 1 goto done
  43. echo exptest
  44. exptest
  45. if errorlevel 1 goto done
  46. echo dsatest
  47. dsatest
  48. if errorlevel 1 goto done
  49. echo ectest
  50. ectest
  51. if errorlevel 1 goto done
  52. echo testenc
  53. call %test%\testenc openssl
  54. if errorlevel 1 goto done
  55. echo testpem
  56. call %test%\testpem openssl
  57. if errorlevel 1 goto done
  58. echo testss
  59. call %test%\testss openssl
  60. if errorlevel 1 goto done
  61. set SSL_TEST=ssltest -key keyU.ss -cert certU.ss -c_key keyU.ss -c_cert certU.ss -CAfile certCA.ss
  62. echo test sslv2
  63. ssltest -ssl2
  64. if errorlevel 1 goto done
  65. echo test sslv2 with server authentication
  66. %SSL_TEST% -ssl2 -server_auth
  67. if errorlevel 1 goto done
  68. echo test sslv2 with client authentication
  69. %SSL_TEST% -ssl2 -client_auth
  70. if errorlevel 1 goto done
  71. echo test sslv2 with both client and server authentication
  72. %SSL_TEST% -ssl2 -server_auth -client_auth
  73. if errorlevel 1 goto done
  74. echo test sslv3
  75. ssltest -ssl3
  76. if errorlevel 1 goto done
  77. echo test sslv3 with server authentication
  78. %SSL_TEST% -ssl3 -server_auth
  79. if errorlevel 1 goto done
  80. echo test sslv3 with client authentication
  81. %SSL_TEST% -ssl3 -client_auth
  82. if errorlevel 1 goto done
  83. echo test sslv3 with both client and server authentication
  84. %SSL_TEST% -ssl3 -server_auth -client_auth
  85. if errorlevel 1 goto done
  86. echo test sslv2/sslv3
  87. ssltest
  88. if errorlevel 1 goto done
  89. echo test sslv2/sslv3 with server authentication
  90. %SSL_TEST% -server_auth
  91. if errorlevel 1 goto done
  92. echo test sslv2/sslv3 with client authentication
  93. %SSL_TEST% -client_auth
  94. if errorlevel 1 goto done
  95. echo test sslv2/sslv3 with both client and server authentication
  96. %SSL_TEST% -server_auth -client_auth
  97. if errorlevel 1 goto done
  98. echo test sslv2 via BIO pair
  99. ssltest -bio_pair -ssl2
  100. if errorlevel 1 goto done
  101. echo test sslv2/sslv3 with 1024 bit DHE via BIO pair
  102. ssltest -bio_pair -dhe1024dsa -v
  103. if errorlevel 1 goto done
  104. echo test sslv2 with server authentication via BIO pair
  105. %SSL_TEST% -bio_pair -ssl2 -server_auth
  106. if errorlevel 1 goto done
  107. echo test sslv2 with client authentication via BIO pair
  108. %SSL_TEST% -bio_pair -ssl2 -client_auth
  109. if errorlevel 1 goto done
  110. echo test sslv2 with both client and server authentication via BIO pair
  111. %SSL_TEST% -bio_pair -ssl2 -server_auth -client_auth
  112. if errorlevel 1 goto done
  113. echo test sslv3 via BIO pair
  114. ssltest -bio_pair -ssl3
  115. if errorlevel 1 goto done
  116. echo test sslv3 with server authentication via BIO pair
  117. %SSL_TEST% -bio_pair -ssl3 -server_auth
  118. if errorlevel 1 goto done
  119. echo test sslv3 with client authentication via BIO pair
  120. %SSL_TEST% -bio_pair -ssl3 -client_auth
  121. if errorlevel 1 goto done
  122. echo test sslv3 with both client and server authentication via BIO pair
  123. %SSL_TEST% -bio_pair -ssl3 -server_auth -client_auth
  124. if errorlevel 1 goto done
  125. echo test sslv2/sslv3 via BIO pair
  126. ssltest -bio_pair
  127. if errorlevel 1 goto done
  128. echo test sslv2/sslv3 with server authentication
  129. %SSL_TEST% -bio_pair -server_auth
  130. if errorlevel 1 goto done
  131. echo test sslv2/sslv3 with client authentication via BIO pair
  132. %SSL_TEST% -bio_pair -client_auth
  133. if errorlevel 1 goto done
  134. echo test sslv2/sslv3 with both client and server authentication via BIO pair
  135. %SSL_TEST% -bio_pair -server_auth -client_auth
  136. if errorlevel 1 goto done
  137. echo passed all tests
  138. goto end
  139. :done
  140. echo problems.....
  141. :end
  142. PATH=%opath%