1. 26 2月, 2016 3 次提交
  2. 24 2月, 2016 2 次提交
  3. 22 2月, 2016 1 次提交
  4. 20 2月, 2016 2 次提交
  5. 19 2月, 2016 1 次提交
  6. 17 2月, 2016 2 次提交
  7. 15 2月, 2016 2 次提交
  8. 13 2月, 2016 4 次提交
    • R
      Remove 00-test_checkexes.t, as it has lost its relevance · 0340edcf
      Richard Levitte 提交于
      In the early stages of creating the new test framework,
      00-test_checkexes was a temporary check to ensure we had a recipe for
      every test program in test/.  By now, this test has fulfilled its
      purpose, and we've learned how to make recipes properly.  It's time
      for this check to go away.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      0340edcf
    • D
      fix warnings on 32 bit builds · e314c340
      Dr. Stephen Henson 提交于
      Reviewed-by: NViktor Dukhovni <viktor@openssl.org>
      e314c340
    • R
      Let all TLSProxy based tests display debug text conditionally · b44b935e
      Richard Levitte 提交于
      If the environment variable HARNESS_ACTIVE isn't defined or
      HARNESS_VERBOSE is defined, it's probable that lots of output is
      desired.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      b44b935e
    • R
      Rethink logging of test recipes · b843cdb1
      Richard Levitte 提交于
      The logging that was performed in OpenSSL::Test was initially set up
      as a means not to let messages that test programs write to STDERR get
      displayed when a test isn't running in verbose mode.  However, the way
      it was implemented, it meant that those messages were never displayed,
      and you had to look in a test log.  This also meant that output to
      STDERR and output to STDOUT got broken apart, which isn't optimal.
      
      So, we remove the whole test log file implementation, and instead,
      we're sending STDERR to the null device unless one of these conditions
      apply:
      
      - the test recipe already redirects stderr.  Just let it.
      - the environment variable HARNESS_ACTIVE is undefined, meaning the
        recipe is run directly as a perl script instead of being harnessed
        by Test::Harness
      - the environment variable HARNESS_VERBOSE is set.
      
      Getting a full log of the tests now becomes as simple as this:
      
          HARNESS_VERBOSE=yes make test 2>&1 | tee tests.log
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      b843cdb1
  9. 12 2月, 2016 1 次提交
  10. 11 2月, 2016 2 次提交
  11. 10 2月, 2016 5 次提交
  12. 09 2月, 2016 7 次提交
    • M
      Clean up the tests for auto-init/de-init · 8793f012
      Matt Caswell 提交于
      Remove the need to explicitly initialise/deinitialise for the tests
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      8793f012
    • M
      Auto init/deinit libcrypto · 7b9f8f7f
      Matt Caswell 提交于
      This builds on the previous commit to auto initialise/deinitialise
      libcrypto.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      7b9f8f7f
    • R
      Fix 90-test_networking.t · bc66265d
      Richard Levitte 提交于
      The previous fix wasn't complete, it was missing a 'use OpenSSL::Test::Utils'
      Reviewed-by: NMatt Caswell <matt@openssl.org>
      bc66265d
    • R
    • R
      unified build scheme: adjust test framework for out of source build tree · 42e0ccdf
      Richard Levitte 提交于
      To be able to run tests when we've built in a directory other than
      the source tree, the testing framework needs a few adjustments.
      
      test/testlib/OpenSSL/Test.pm needs to know where it can find
      shlib_wrap.sh, and a number of other tests need to be told a different
      place to find engines than what they may be able to figure out on
      their own.  Relying to $TOP is not enough, $SRCTOP and $BLDTOP can be
      used as an alternative.
      
      As part of this change, top_file and top_dir are removed and
      srctop_file, bldtop_file, srctop_dir and bldtop_dir take their place.
      Reviewed-by: NBen Laurie <ben@openssl.org>
      42e0ccdf
    • 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
    • R
      Use File::Path::rmtree rather than File::Path::remove_tree · 4500a4cd
      Richard Levitte 提交于
      Just like File::Path::make_path, File::Path::remove_tree didn't show
      up before File::Path 2.06 / perl v5.10.1, so we prefer the legacy
      function here as well.
      Reviewed-by: NAndy Polyakov <appro@openssl.org>
      4500a4cd
  13. 08 2月, 2016 1 次提交
  14. 07 2月, 2016 3 次提交
    • K
      Fix memory leak in dtlsv1listentest · 026e012b
      Kurt Roeckx 提交于
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      
      MR: #1879
      026e012b
    • V
      Allocate bio_err before turning on memleak checks · d1b10582
      Viktor Dukhovni 提交于
      Reviewed-by: NTim Hudson <tjh@openssl.org>
      d1b10582
    • R
      Enhance and clear the support of linker flags · c86ddbe6
      Richard Levitte 提交于
      Some time ago, we had a ex_libs configuration setting that could be
      divided into lflags and ex_libs.  These got divided in two settings,
      lflags and ex_libs, and the former was interpreted to be general
      linking flags.
      
      Unfortunately, that conclusion wasn't entirely accurate.  Most of
      those linking were meant to end up in a very precise position on the
      linking command line, just before the spec of libraries the linking
      depends on.
      
      Back to the drawing board, we're diving things further, now having
      lflags, which are linking flags that aren't depending on command line
      position, plib_lflags, which are linking flags that should show up just
      before the spec of libraries to depend on, and finally ex_libs, which
      is the spec of extra libraries to depend on.
      
      Also, documentation is changed in Configurations/README.  This was
      previously forgotten.
      Reviewed-by: NKurt Roeckx <kurt@openssl.org>
      c86ddbe6
  15. 06 2月, 2016 4 次提交