1. 21 11月, 2015 1 次提交
    • M
      Make libssl async aware · 07bbc92c
      Matt Caswell 提交于
      The following entry points have been made async aware:
      SSL_accept
      SSL_read
      SSL_write
      
      Also added is a new mode - SSL_MODE_ASYNC. Calling the above functions with
      the async mode enabled will initiate a new async job. If an async pause is
      encountered whilst executing the job (such as for example if using SHA1/RSA
      with the Dummy Async engine), then the above functions return with
      SSL_WANT_ASYNC. Calling the functions again (with exactly the same args
      as per non-blocking IO), will resume the job where it left off.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      07bbc92c
  2. 20 11月, 2015 1 次提交
  3. 14 11月, 2015 1 次提交
  4. 11 11月, 2015 1 次提交
    • M
      Fix SSL_use_certificate_chain_file · a974e64a
      Matt Caswell 提交于
      The new function SSL_use_certificate_chain_file was always crashing in
      the internal function use_certificate_chain_file because it would pass a
      NULL value for SSL_CTX *, but use_certificate_chain_file would
      unconditionally try to dereference it.
      Reviewed-by: NStephen Henson <steve@openssl.org>
      a974e64a
  5. 08 11月, 2015 2 次提交
  6. 30 10月, 2015 22 次提交
  7. 09 10月, 2015 1 次提交
  8. 06 10月, 2015 1 次提交
    • E
      ssl3_get_client_hello: rearrange logic · b3e2272c
      Emilia Kasper 提交于
      Move all packet parsing to the beginning of the method. This limits the
      SSLv2 compatibility soup to the parsing, and makes the rest of the
      processing uniform.
      
      This is also needed for simpler EMS support: EMS servers need to do an
      early scan for EMS to make resumption decisions. This'll be easier when
      the entire ClientHello is parsed in the beginning.
      
      As a side effect,
      1) PACKETize ssl_get_prev_session and tls1_process_ticket; and
      2) Delete dead code for SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG.
      Reviewed-by: NMatt Caswell <matt@openssl.org>
      b3e2272c
  9. 01 10月, 2015 1 次提交
    • M
      Change the DEFAULT ciphersuites to exclude DES, RC4 and RC2 · c84f7f4a
      Matt Caswell 提交于
      This patch updates the "DEFAULT" cipherstring to be
      "ALL:!COMPLEMENTOFDEFAULT:!eNULL". COMPLEMENTOFDEFAULT is now defined
      internally by a flag on each ciphersuite indicating whether it should be
      excluded from DEFAULT or not. This gives us control at an individual
      ciphersuite level as to exactly what is in DEFAULT and what is not.
      
      Finally all DES, RC4 and RC2 ciphersuites are added to COMPLEMENTOFDEFAULT
      and hence removed from DEFAULT.
      Reviewed-by: NTim Hudson <tjh@openssl.org>
      c84f7f4a
  10. 23 9月, 2015 3 次提交
    • M
      Remove remaining old listen code · 912c89c5
      Matt Caswell 提交于
      The old implementation of DTLSv1_listen which has now been replaced still
      had a few vestiges scattered throughout the code. This commit removes them.
      Reviewed-by: NAndy Polyakov <appro@openssl.org>
      912c89c5
    • M
      DTLSv1_listen rewrite · e3d0dae7
      Matt Caswell 提交于
      The existing implementation of DTLSv1_listen() is fundamentally flawed. This
      function is used in DTLS solutions to listen for new incoming connections
      from DTLS clients. A client will send an initial ClientHello. The server
      will respond with a HelloVerifyRequest containing a unique cookie. The
      client the responds with a second ClientHello - which this time contains the
      cookie.
      
      Once the cookie has been verified then DTLSv1_listen() returns to user code,
      which is typically expected to continue the handshake with a call to (for
      example) SSL_accept().
      
      Whilst listening for incoming ClientHellos, the underlying BIO is usually in
      an unconnected state. Therefore ClientHellos can come in from *any* peer.
      The arrival of the first ClientHello without the cookie, and the second one
      with it, could be interspersed with other intervening messages from
      different clients.
      
      The whole purpose of this mechanism is as a defence against DoS attacks. The
      idea is to avoid allocating state on the server until the client has
      verified that it is capable of receiving messages at the address it claims
      to come from. However the existing DTLSv1_listen() implementation completely
      fails to do this. It attempts to super-impose itself on the standard state
      machine and reuses all of this code. However the standard state machine
      expects to operate in a stateful manner with a single client, and this can
      cause various problems.
      
      A second more minor issue is that the return codes from this function are
      quite confused, with no distinction made between fatal and non-fatal errors.
      Most user code treats all errors as non-fatal, and simply retries the call
      to DTLSv1_listen().
      
      This commit completely rewrites the implementation of DTLSv1_listen() and
      provides a stand alone implementation that does not rely on the existing
      state machine. It also provides more consistent return codes.
      Reviewed-by: NAndy Polyakov <appro@openssl.org>
      e3d0dae7
    • E
      Remove ssl_put_cipher_by_char · e9fa092e
      Emilia Kasper 提交于
      Since SSLv3, a CipherSuite is always 2 bytes. The only place where we
      need 3-byte ciphers is SSLv2-compatible ClientHello processing.
      
      So, remove the ssl_put_cipher_by_char indirection.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      e9fa092e
  11. 15 9月, 2015 1 次提交
    • D
      Fix PSK identity hint handling. · df6da24b
      Dr. Stephen Henson 提交于
      For server use a PSK identity hint value in the CERT structure which
      is inherited when SSL_new is called and which allows applications to
      set hints on a per-SSL basis. The previous version of
      SSL_use_psk_identity_hint tried (wrongly) to use the SSL_SESSION structure.
      
      PR#4039
      Reviewed-by: NMatt Caswell <matt@openssl.org>
      df6da24b
  12. 07 9月, 2015 1 次提交
  13. 14 8月, 2015 2 次提交
  14. 12 8月, 2015 1 次提交
  15. 03 8月, 2015 1 次提交