1. 21 May, 2018 2 commits
    • Matt Caswell's avatar
      Don't cache stateless tickets in TLSv1.3 · ee94ec2e
      Matt Caswell authored
      
      
      In TLSv1.2 and below we always cache new sessions by default on the server
      side in the internal cache (even when we're using session tickets). This is
      in order to support resumption from a session id.
      
      In TLSv1.3 there is no session id. It is only possible to resume using the
      ticket. Therefore, in the default case,  there is no point in caching the
      session in the internal store.
      
      There is still a reason to call the external cache new session callback
      because applications may be using the callbacks just to know about when
      sessions are created (and not necessarily implementing a full cache). If
      the application also implements the remove session callback then we are
      forced to also store it in the internal cache so that we can create
      timeout events. Otherwise the external cache could just fill up
      indefinitely.
      
      This mostly addresses the issue described in #5628. That issue also proposes
      having an option to not create full stateless tickets when using the
      internal cache. That aspect hasn't been addressed yet.
      
      Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
      Reviewed-by: default avatarBen Kaduk <kaduk@mit.edu>
      (Merged from https://github.com/openssl/openssl/pull/6293)
      ee94ec2e
    • Matt Caswell's avatar
      Fix undefined behaviour in X509_NAME_cmp() · 511190b6
      Matt Caswell authored
      
      
      If the lengths of both names is 0 then don't attempt to do a memcmp.
      
      Issue reported by Simon Friedberger, Robert Merget and Juraj Somorovsky.
      
      Reviewed-by: default avatarMatthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
      (Merged from https://github.com/openssl/openssl/pull/6291)
      511190b6
  2. 20 May, 2018 4 commits
  3. 18 May, 2018 3 commits
  4. 17 May, 2018 7 commits
  5. 16 May, 2018 1 commit
  6. 15 May, 2018 3 commits
  7. 14 May, 2018 6 commits
  8. 12 May, 2018 5 commits
  9. 11 May, 2018 9 commits