1. 05 4月, 2016 2 次提交
    • 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
  2. 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
  3. 22 1月, 2015 1 次提交
  4. 31 12月, 2014 1 次提交
  5. 20 7月, 2014 1 次提交
  6. 11 6月, 2014 1 次提交
    • M
      Create test/testutil.h for unit test helper macros · 3ead9f37
      Mike Bland 提交于
      Defines SETUP_TEST_FIXTURE and EXECUTE_TEST, and updates ssl/heartbeat_test.c
      using these macros. SETUP_TEST_FIXTURE makes use of the new TEST_CASE_NAME
      macro, defined to use __func__ or __FUNCTION__ on platforms that support those
      symbols, or to use the file name and line number otherwise. This should fix
      several reported build problems related to lack of C99 support.
      3ead9f37
  7. 18 9月, 2013 1 次提交
  8. 15 7月, 2013 1 次提交
    • A
      Make `safe' (EC)DSA nonces the default. · 190c615d
      Adam Langley 提交于
      This change updates 8a99cb29 to make the generation of (EC)DSA nonces
      using the message digest the default. It also reverts the changes to
      (EC)DSA_METHOD structure.
      
      In addition to making it the default, removing the flag from EC_KEY
      means that FIPS modules will no longer have an ABI mismatch.
      190c615d
  9. 14 6月, 2013 1 次提交
    • A
      Add secure DSA nonce flag. · 8a99cb29
      Adam Langley 提交于
      This change adds the option to calculate (EC)DSA nonces by hashing the
      message and private key along with entropy to avoid leaking the private
      key if the PRNG fails.
      8a99cb29
  10. 08 6月, 2011 1 次提交
  11. 16 5月, 2005 1 次提交
    • N
      ecc api cleanup; summary: · 9dd84053
      Nils Larsch 提交于
      - hide the EC_KEY structure definition in ec_lcl.c + add
        some functions to use/access the EC_KEY fields
      - change the way how method specific data (ecdsa/ecdh) is
        attached to a EC_KEY
      - add ECDSA_sign_ex and ECDSA_do_sign_ex functions with
        additional parameters for pre-computed values
      - rebuild libeay.num from 0.9.7
      9dd84053
  12. 29 4月, 2005 1 次提交
  13. 10 10月, 2001 1 次提交
  14. 12 7月, 2001 1 次提交
  15. 16 6月, 2000 1 次提交
    • G
      Currently the DSO_METHOD interface has one entry point to bind all · e9a68cfb
      Geoff Thorpe 提交于
      "symbols" including functions (of all prototypes( and variables. Whilst
      casting any function type to another violates ANSI C (I believe), it is
      a necessary evil in shared-library APIs. However, it is quite
      conceivable that functions in general and data symbols could very well
      be represented differently to each other on some systems, as Bodo said;
      
      > Since the function/object distinction is a lot more likely to be
      > important on real-life platforms supporting DSO *and* it can be quite
      > easily done *and* it will silence compilers that don't like
      > assignments from void pointers to function pointer variables, why
      > not do it?
      
      I agree. So this change splits the "dso_bind" handler in DSO_METHOD
      into "dso_bind_var" and "dso_bind_func". Similarly the exported
      function DSO_bind() has been split in two. I've also put together
      changes for the various DSO_METHOD implementations, but so far only
      DSO_dlfcn() has been tested. BTW: The prototype for dso_bind had been
      a bit strange so I've taken the opportunity to change its shape (in
      both variations).
      
      Also, the README has been updated - particularly with a note about
      using customised native name-translation for shared libraries (and that
      you can't do it yet).
      e9a68cfb
  16. 20 4月, 2000 1 次提交
    • G
      This change facilitates name translation for shared libraries. The · b9e63915
      Geoff Thorpe 提交于
      technique used is far from perfect and alternatives are welcome.
      Basically if the translation flag is set, the string is not too
      long, and there appears to be no path information in the string,
      then it is converted to whatever the standard should be for the
      DSO_METHOD in question, eg;
          blah --> libblah.so   on *nix, and
          blah --> blah.dll     on win32.
      
      This change also introduces the DSO_ctrl() function that is used
      by the name translation stuff.
      b9e63915
  17. 05 4月, 2000 1 次提交
    • G
      This is a set of startup code for the DSO support, it's not yet linked into · 8f4fac7f
      Geoff Thorpe 提交于
      the build process (an upcoming commit no doubt), and is very much *new*
      code - what that means is that it compiles ok - usually. It certainly
      doesn't mean it runs well or even properly yet. Please don't muck round
      with this unless you're looking to help out and hunt bugs. :-)
      
      Currently this code doesn't have any support for controlling the "load"
      behaviour (eg. paths, filename translations, etc). That'll be handled
      using DSO_ctrl() and various flags, once we work out a sensible set of
      flags.
      8f4fac7f
  18. 18 1月, 2000 1 次提交
  19. 20 10月, 1999 1 次提交
  20. 22 6月, 1999 1 次提交
  21. 10 5月, 1999 1 次提交
  22. 24 4月, 1999 1 次提交
  23. 20 4月, 1999 1 次提交
  24. 06 3月, 1999 1 次提交
  25. 22 2月, 1999 1 次提交
  26. 19 2月, 1999 1 次提交
  27. 30 1月, 1999 1 次提交
  28. 24 1月, 1999 1 次提交
  29. 17 1月, 1999 1 次提交
    • D
      Time to blow up the source tree :-) This is the beginning of support for · f6aed2cd
      Dr. Stephen Henson 提交于
      GeneralizedTime. At several points PKIX specifies that GeneralizedTime can be
      used but OpenSSL doesn't currently support it. This patch adds several files
      and a bunch of functions.
      
      Of interest is the ASN1_TIME structure and its related functions. At several
      points certificates, CRLs et al specify that a time can be expressed as a
      choice of UTCTime and GeneralizedTime. Currently OpenSSL interprets this
      (wrongly) as UTCTime because GeneralizedTime isn't supported. The ASN1_TIME
      stuff provides this functionality.
      
      Still todo is to trace which cert and CRL points need an ASN1_TIME and modify
      the utilities appropriately and of course fix all the bugs.
      
      Note new OpenSSL copyright in the new file a_time.c. I didn't put it in
      a_gentm.c because it is a minimally modified form a_utctm.c .
      
      Since this adds new files and error codes you will need to do a 'make errors'
      at the top level to add the new codes.
      f6aed2cd