1. 14 6月, 2016 5 次提交
    • M
      Update the SSL_set_session() documentation · ec02df83
      Matt Caswell 提交于
      Update the SSL_set_session() documentation to reflect the fact that old
      bad sessions are removed from the cache if necessary.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      ec02df83
    • 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
    • M
      Ensure SSL_set_session clears the old session from cache if it is bad · e70656cf
      Matt Caswell 提交于
      SSL_clear() and SSL_free() will remove a session from the cache if it is
      considered "bad". However SSL_set_session() does not do this for the session
      it is replacing.
      
      SSL_clear() clears an SSL object ready for reuse. It does not clear the
      session though. This means that:
      
        SSL_clear(s)
        SSL_set_session(s, sess);
      
      and
        SSL_set_session(s, sess);
        SSL_clear(s);
      
      do not do the same thing, although logically you would expect that they
      would.
      
      The failure of SSL_set_session() to remove bad sessions from the cache
      should be considered a bug, so this commit fixes it.
      
      RT#597
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      e70656cf
    • E
      SSL test: only write out server2 when testing SNI · b0292980
      Emilia Kasper 提交于
      The SNI tests introduced a redundant "server2" section into every test
      configuration. Copy this automatically from "server" unless testing SNI,
      to reduce noise in the generated confs.
      
      Also remove duplicate SSL_TEST_CTX_create (merge conflict error).
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      b0292980
    • M
      Handle inability to create AFALG socket · 25b9d11c
      Matt Caswell 提交于
      Some Linux platforms have a suitably recent kernel to support AFALG, but
      apparently you still can't actually create an afalg socket. This extends
      the afalg_chk_platform() function to additionally check whether we can
      create an AFALG socket. We also amend the afalgtest to not report a
      failure to load the engine as a test failure. A failure to load is almost
      certainly due to platform environmental issues, and not an OpenSSL problem.
      
      RT 4434
      Reviewed-by: NAndy Polyakov <appro@openssl.org>
      25b9d11c
  2. 13 6月, 2016 6 次提交
  3. 12 6月, 2016 4 次提交
  4. 11 6月, 2016 6 次提交
  5. 10 6月, 2016 18 次提交
  6. 09 6月, 2016 1 次提交