1. 14 12月, 2017 2 次提交
  2. 10 12月, 2017 1 次提交
  3. 09 12月, 2017 6 次提交
  4. 08 12月, 2017 2 次提交
  5. 06 12月, 2017 2 次提交
  6. 04 12月, 2017 14 次提交
  7. 30 11月, 2017 2 次提交
  8. 28 11月, 2017 1 次提交
  9. 22 11月, 2017 2 次提交
  10. 13 11月, 2017 2 次提交
  11. 12 11月, 2017 1 次提交
  12. 08 11月, 2017 1 次提交
  13. 07 11月, 2017 1 次提交
  14. 06 11月, 2017 1 次提交
  15. 30 10月, 2017 2 次提交
    • B
      Provide SSL_CTX.stats.sess_accept for switched ctxs · 3be08e30
      Benjamin Kaduk 提交于
      We currently increment the SSL_CTX stats.sess_accept field in
      tls_setup_handshake(), which is invoked from the state machine well
      before ClientHello processing would have had a chance to switch
      the SSL_CTX attached to the SSL object due to a provided SNI value.
      However, stats.sess_accept_good is incremented in tls_finish_handshake(),
      and uses the s->ctx.stats field (i.e., the new SSL_CTX that was switched
      to as a result of SNI processing).  This leads to the confusing
      (nonsensical) situation where stats.sess_accept_good is larger than
      stats.sess_accept, as the "sess_accept" value was counted on the
      s->session_ctx.
      
      In order to provide some more useful numbers, increment
      s->ctx.stats.sess_accept after SNI processing if the SNI processing
      changed s->ctx to differ from s->session_ctx.  To preserve the
      property that any given accept is counted only once, make the
      corresponding decrement to s->session_ctx.stats.sess_accept when
      doing so.
      Reviewed-by: NMatt Caswell <matt@openssl.org>
      Reviewed-by: NPaul Dale <paul.dale@oracle.com>
      (Merged from https://github.com/openssl/openssl/pull/4549)
      3be08e30
    • B
      Normalize on session_ctx for stats where possible · 0e6161bc
      Benjamin Kaduk 提交于
      For client SSL objects and before any callbacks have had a chance
      to be called, we can write the stats accesses using the session_ctx,
      which makes sense given that these values are all prefixed with
      "sess_".
      
      For servers after a client_hello or servername callback has been
      called, retain the existing behavior of modifying the statistics
      for the current (non-session) context.  This has some value,
      in that it allows the statistics to be viewed on a per-vhost level.
      Reviewed-by: NMatt Caswell <matt@openssl.org>
      Reviewed-by: NPaul Dale <paul.dale@oracle.com>
      (Merged from https://github.com/openssl/openssl/pull/4549)
      0e6161bc