1. 12 2月, 2016 3 次提交
  2. 11 2月, 2016 6 次提交
  3. 10 2月, 2016 3 次提交
  4. 09 2月, 2016 7 次提交
    • M
      Updates for auto init/deinit review comments · 35d8fa56
      Matt Caswell 提交于
      Fixes for the auto-init/deinit code based on review comments
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      35d8fa56
    • M
      Update build.info files for auto-init/de-init · 5c858c59
      Matt Caswell 提交于
      Various Makefile.in files have changes for auto-init/de-init. Make the
      equivalent changes in build.info.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      5c858c59
    • M
      Add an OPENSSL_NO_AUTOERRINIT option · 498abff0
      Matt Caswell 提交于
      This option disables automatic loading of the crypto/ssl error strings in
      order to keep statically linked executable file size down
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      498abff0
    • M
      Auto init/de-init libssl · 7fa792d1
      Matt Caswell 提交于
      Building on the pervious commit to auto initialise and de-initialise libssl
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      7fa792d1
    • M
      Provide framework for auto initialise/deinitialise of the library · b184e3ef
      Matt Caswell 提交于
      This commit provides the basis and core code for an auto initialisation
      and deinitialisation framework for libcrypto and libssl. The intention is
      to remove the need (in many circumstances) to call explicit initialise and
      deinitialise functions. Explicit initialisation will still be an option,
      and if non-default initialisation is needed then it will be required.
      Similarly for de-initialisation (although this will be a lot easier since
      it will bring all de-initialisation into a single function).
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      b184e3ef
    • V
      Suppress DANE TLSA reflection when verification fails · c0a445a9
      Viktor Dukhovni 提交于
      As documented both SSL_get0_dane_authority() and SSL_get0_dane_tlsa()
      are expected to return a negative match depth and nothing else when
      verification fails.  However, this only happened when verification
      failed during chain construction.  Errors in verification of the
      constructed chain did not have the intended effect on these functions.
      
      This commit updates the functions to check for verify_result ==
      X509_V_OK, and no longer erases any accumulated match information
      when chain construction fails.  Sophisticated developers can, with
      care, use SSL_set_verify_result(ssl, X509_V_OK) to "peek" at TLSA
      info even when verification fail.  They must of course first check
      and save the real error, and restore the original error as quickly
      as possible.  Hiding by default seems to be the safer interface.
      
      Introduced X509_V_ERR_DANE_NO_MATCH code to signal failure to find
      matching TLSA records.  Previously reported via X509_V_ERR_CERT_UNTRUSTED.
      
      This also changes the "-brief" output from s_client to include
      verification results and TLSA match information.
      
      Mentioned session resumption in code example in SSL_CTX_dane_enable(3).
      Also mentioned that depths returned are relative to the verified chain
      which is now available via SSL_get0_verified_chain(3).
      
      Added a few more test-cases to danetest, that exercise the new
      code.
      
      Resolved thread safety issue in use of static buffer in
      X509_verify_cert_error_string().
      
      Fixed long-stating issue in apps/s_cb.c which always sets verify_error
      to either X509_V_OK or "chain to long", code elsewhere (e.g.
      s_time.c), seems to expect the actual error.  [ The new chain
      construction code is expected to correctly generate "chain
      too long" errors, so at some point we need to drop the
      work-arounds, once SSL_set_verify_depth() is also fixed to
      propagate the depth to X509_STORE_CTX reliably. ]
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      c0a445a9
    • D
      Deprecate undocumented SSL_cache_hit(). · b577fd0b
      Dr. Stephen Henson 提交于
      Deprecate undocumented SSL_cache_hit(). Make SSL_session_reused() into a
      real function.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      b577fd0b
  5. 08 2月, 2016 1 次提交
    • M
      Handle SSL_shutdown while in init more appropriately #2 · 64f9f406
      Matt Caswell 提交于
      Previous commit 7bb196a7 attempted to "fix" a problem with the way
      SSL_shutdown() behaved whilst in mid-handshake. The original behaviour had
      SSL_shutdown() return immediately having taken no action if called mid-
      handshake with a return value of 1 (meaning everything was shutdown
      successfully). In fact the shutdown has not been successful.
      
      Commit 7bb196a7 changed that to send a close_notify anyway and then
      return. This seems to be causing some problems for some applications so
      perhaps a better (much simpler) approach is revert to the previous
      behaviour (no attempt at a shutdown), but return -1 (meaning the shutdown
      was not successful).
      
      This also fixes a bug where SSL_shutdown always returns 0 when shutdown
      *very* early in the handshake (i.e. we are still using SSLv23_method).
      Reviewed-by: NViktor Dukhovni <viktor@openssl.org>
      64f9f406
  6. 07 2月, 2016 1 次提交
  7. 06 2月, 2016 5 次提交
  8. 05 2月, 2016 1 次提交
  9. 04 2月, 2016 3 次提交
  10. 01 2月, 2016 2 次提交
  11. 31 1月, 2016 1 次提交
  12. 30 1月, 2016 1 次提交
  13. 29 1月, 2016 1 次提交
  14. 27 1月, 2016 1 次提交
    • R
      Remove /* foo.c */ comments · 34980760
      Rich Salz 提交于
      This was done by the following
              find . -name '*.[ch]' | /tmp/pl
      where /tmp/pl is the following three-line script:
              print unless $. == 1 && m@/\* .*\.[ch] \*/@;
              close ARGV if eof; # Close file to reset $.
      
      And then some hand-editing of other files.
      Reviewed-by: NViktor Dukhovni <viktor@openssl.org>
      34980760
  15. 26 1月, 2016 1 次提交
  16. 25 1月, 2016 1 次提交
    • R
      Move pqueue into ssl · cf2cede4
      Rich Salz 提交于
      This is an internal facility, never documented, not for
      public consumption.  Move it into ssl (where it's only used
      for DTLS).
      
      I also made the typedef's for pqueue and pitem follow our style: they
      name structures, not pointers.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      cf2cede4
  17. 23 1月, 2016 1 次提交
  18. 20 1月, 2016 1 次提交