test.bat 4.3 KB

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