1. 24 1月, 2019 1 次提交
    • M
      Make sure we trigger retransmits in DTLS testing · f9ad0abb
      Matt Caswell 提交于
      During a DTLS handshake we may need to periodically handle timeouts in the
      DTLS timer to ensure retransmits due to lost packets are performed. However,
      one peer will always complete a handshake before the other. The DTLS timer
      stops once the handshake has finished so any handshake messages lost after
      that point will not automatically get retransmitted simply by calling
      DTLSv1_handle_timeout(). However attempting an SSL_read implies a
      DTLSv1_handle_timeout() and additionally will process records received from
      the peer. If those records are themselves retransmits then we know that the
      peer has not completed its handshake yet and a retransmit of our final
      flight automatically occurs.
      Reviewed-by: NPaul Dale <paul.dale@oracle.com>
      (Merged from https://github.com/openssl/openssl/pull/8047)
      
      (cherry picked from commit 80c455d5ae405e855391e298a2bf8a24629dd95d)
      f9ad0abb
  2. 26 10月, 2018 1 次提交
  3. 19 10月, 2018 1 次提交
  4. 22 5月, 2018 1 次提交
  5. 08 5月, 2018 1 次提交
  6. 20 3月, 2018 2 次提交
  7. 06 9月, 2017 1 次提交
  8. 27 7月, 2017 1 次提交
    • P
      Update the test framework so that the need for test_main is removed. Everything · ad887416
      Pauli 提交于
      that needed test_main now works using the same infrastructure as tests that used
      register_tests.
      
      This meant:
      * renaming register_tests to setup_tests and giving it a success/failure return.
      * renaming the init_test function to setup_test_framework.
      * renaming the finish_test function to pulldown_test_framework.
      * adding a user provided global_init function that runs before the test frame
          work is initialised.  It returns a failure indication that stops the stest.
      * adding helper functions that permit tests to access their command line args.
      * spliting the BIO initialisation and finalisation out from the test setup and
          teardown.
      * hiding some of the now test internal functions.
      * fix the comments in testutil.h
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/3953)
      ad887416
  9. 25 4月, 2017 1 次提交
  10. 11 4月, 2017 1 次提交
  11. 24 2月, 2017 1 次提交
    • B
      Let test handshakes stop on certain errors · 8e2236ef
      Benjamin Kaduk 提交于
      Certain callback APIs allow the callback to request async processing
      by trickling a particular error value up the stack to the application
      as an error return from the handshake function.  In those cases,
      SSL_want() returns a code specific to the type of async processing
      needed.
      
      The create_ssl_connection() helper function for the tests is very
      helpful for several things, including creating API tests.  However,
      it does not currently let us test the async processing functionality
      of these callback interfaces, because the special SSL error codes
      are treated as generic errors and the helper continues to loop until
      it reaches its maximum iteration count.
      
      Add a new parameter, 'want', that indicates an expected/desired
      special SSL error code, so that the helper will terminate when
      either side reports that error, giving control back to the calling
      function and allowing the test to proceed.
      Reviewed-by: NMatt Caswell <matt@openssl.org>
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/2279)
      8e2236ef
  12. 09 11月, 2016 1 次提交
    • E
      Add main() test methods to reduce test boilerplate. · e364c3b2
      Emilia Kasper 提交于
      Simple tests only need to implement register_tests().
      Tests that need a custom main() should implement test_main(). This will
      be wrapped in a main() that performs common setup/teardown (currently
      crypto-mdebug).
      
      Note that for normal development, enable-asan is usually
      sufficient for detecting leaks, and more versatile.
      
      enable-crypto-mdebug is stricter as it will also
      insist that all static variables be freed. This is useful for debugging
      library init/deinit; however, it also means that test_main() must free
      everything it allocates.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      e364c3b2
  13. 22 8月, 2016 1 次提交
  14. 19 8月, 2016 3 次提交