1. 21 6月, 2017 1 次提交
  2. 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
  3. 19 8月, 2016 4 次提交
  4. 14 6月, 2016 1 次提交
    • M
      Add some session API tests · 2cb4b5f6
      Matt Caswell 提交于
      This commit adds some session API tests, and in particular tests the
      modified behaviour of SSL_set_session() introduced in the last commit. To
      do this I have factored out some common code from the asynciotest into a
      new ssltestlib.c file. I've also renamed getsettest to sslapitest as this
      more closely matches what it now is!
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      2cb4b5f6