1. 22 4月, 2016 2 次提交
    • R
      Unified copyright for test recipes · 596d6b7e
      Rich Salz 提交于
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      596d6b7e
    • R
      Add a best effort test to check shared library consistency · 3f8f7282
      Richard Levitte 提交于
      Our main development platforms are of the Unix family, which doesn't
      have the same strictness regarding a shared library being consistent
      with the contents of the ld script (.map file, on Linux and Solaris)
      as Windows is with the contents of the .def file or VMS is with the
      linker symb_vector option.
      
      To eliminate surprises, we therefore need to make sure to check that
      the contents of the .map file is matched with the shared library, at
      least to check that the shared library isn't missing any symbols that
      should be present.
      
      This test isn't absolutely perfect, as it will only check the symbols
      that would be present on Linux / Solaris and will therefore miss those
      that would only appear on Windows or VMS.  On the other hand, those
      platform specific are few and far apart in time, so it's not likely
      they will pose a problem.
      Reviewed-by: NMatt Caswell <matt@openssl.org>
      3f8f7282
  2. 20 4月, 2016 3 次提交
  3. 18 4月, 2016 2 次提交
  4. 16 4月, 2016 1 次提交
  5. 14 4月, 2016 3 次提交
    • M
      Fix no-stdio and no-autoalginit · d90a6beb
      Matt Caswell 提交于
      no-stdio does not work with the apps. Since the tests also need the apps
      it doesn't support that either. Therefore we disable building of both.
      
      no-autoalginit is not compatible with the apps because it requires explicit
      loading of the algorithms, and the apps don't do that. Therefore we disable
      building the apps for this option. Similarly the tests depend on the apps
      so we also disable the tests. Finally the whole point about no-autoalginit
      is to avoid excessive executable sizes when doing static linking. Therefore
      we disable "shared" if this option is selected.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      d90a6beb
    • M
      Fix AFALG kernel and headers mismatch problem · 627537dd
      Matt Caswell 提交于
      During Configure we attempt to check the kernel version of this platform
      to see whether we can compile the AFALG engine. If the kernel version
      looks recent enough then we enable AFALG. However when we compile
      e_afalg.c we check the version of the linux headers. If there is a
      mismatch between the linux headers and the currently running kernel then
      we don't compile the AFLAG engine and continue. This was causing a link
      error.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      627537dd
    • V
      5968d11a
  6. 13 4月, 2016 1 次提交
  7. 11 4月, 2016 2 次提交
  8. 10 4月, 2016 3 次提交
  9. 09 4月, 2016 1 次提交
  10. 08 4月, 2016 2 次提交
    • A
      test/[dane|evp_]test.c: BIO-fy file I/O. · 02b91dcf
      Andy Polyakov 提交于
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      02b91dcf
    • V
      Suppress CT callback as appropriate · 43341433
      Viktor Dukhovni 提交于
      Suppress CT callbacks with aNULL or PSK ciphersuites that involve
      no certificates.  Ditto when the certificate chain is validated via
      DANE-TA(2) or DANE-EE(3) TLSA records.  Also skip SCT processing
      when the chain is fails verification.
      
      Move and consolidate CT callbacks from libcrypto to libssl.  We
      also simplify the interface to SSL_{,CTX_}_enable_ct() which can
      specify either a permissive mode that just collects information or
      a strict mode that requires at least one valid SCT or else asks to
      abort the connection.
      
      Simplified SCT processing and options in s_client(1) which now has
      just a simple pair of "-noct" vs. "-ct" options, the latter enables
      the permissive callback so that we can complete the handshake and
      report all relevant information.  When printing SCTs, print the
      validation status if set and not valid.
      Signed-off-by: NRob Percival <robpercival@google.com>
      Reviewed-by: NEmilia Käsper <emilia@openssl.org>
      43341433
  11. 07 4月, 2016 3 次提交
  12. 06 4月, 2016 3 次提交
  13. 05 4月, 2016 5 次提交
    • E
      Rename ssltest -> ssltest_old · 69853045
      Emilia Kasper 提交于
      ssltest_old.c is deprecated. New tests should use ssl_test.c, and the
      recipes in 80-test_ssl_new.t
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      69853045
    • E
      testutil: return 1 on success · ababe86b
      Emilia Kasper 提交于
      Require that test methods return 1 on success (not 0). This is more
      customary for OpenSSL.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      ababe86b
    • E
      New SSL test framework · 453dfd8d
      Emilia Kasper 提交于
      Currently, SSL tests are configured via command-line switches to
      ssltest.c. This results in a lot of duplication between ssltest.c and
      apps, and a complex setup. ssltest.c is also simply old and needs
      maintenance.
      
      Instead, we already have a way to configure SSL servers and clients, so
      we leverage that. SSL tests can now be configured from a configuration
      file. Test servers and clients are configured using the standard
      ssl_conf module. Additional test settings are configured via a test
      configuration.
      
      Moreover, since the CONF language involves unnecessary boilerplate, the
      test conf itself is generated from a shorter Perl syntax.
      
      The generated testcase files are checked in to the repo to make
      it easier to verify that the intended test cases are in fact run; and to
      simplify debugging failures.
      
      To demonstrate the approach, min/max protocol tests are converted to the
      new format. This change also fixes MinProtocol and MaxProtocol
      handling. It was previously requested that an SSL_CTX have both the
      server and client flags set for these commands; this clearly can never work.
      
      Guide to this PR:
       - test/ssl_test.c - test framework
       - test/ssl_test_ctx.* - test configuration structure
       - test/handshake_helper.* - new SSL test handshaking code
       - test/ssl-tests/ - test configurations
       - test/generate_ssl_tests.pl - script for generating CONF-style test
         configurations from perl inputs
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      453dfd8d
    • R
      Revert "various spelling fixes" · e771eea6
      Rich Salz 提交于
      This reverts commit 620d540b.
      It wasn't reviewed.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      e771eea6
    • F
      various spelling fixes · 620d540b
      FdaSilvaYY 提交于
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      620d540b
  14. 04 4月, 2016 1 次提交
  15. 03 4月, 2016 5 次提交
  16. 01 4月, 2016 3 次提交