Skip to content
  1. Oct 29, 2003
    • Geoff Thorpe's avatar
      BN_CTX is opaque and the static initialiser BN_CTX_init() is not used · 2ce90b9b
      Geoff Thorpe authored
      except internally to the allocator BN_CTX_new(), as such this deprecates
      the use of BN_CTX_init() in the API. Moreover, the structure definition of
      BN_CTX is taken out of bn_lcl.h and moved into bn_ctx.c itself.
      
      NDEBUG should probably only be "forced" in the top-level configuration, but
      until it is I will avoid removing it from bn_ctx.c which might surprise
      people with massive slow-downs in their keygens. So I've left it in
      bn_ctx.c but tidied up the preprocessor logic a touch and made it more
      tolerant of debugging efforts.
      2ce90b9b
    • Geoff Thorpe's avatar
      Relax some over-zealous constification that gave some lhash-based code no · 8dc344cc
      Geoff Thorpe authored
      choice but to have to cast away "const" qualifiers from their prototypes.
      This does not remove constification restrictions from hash/compare
      callbacks, but allows destructor commands to be run over a tables' elements
      without bad casts.
      8dc344cc
    • Geoff Thorpe's avatar
      For whatever reason (compiler or header bugs), at least one commonly-used · 0991f070
      Geoff Thorpe authored
      linux system (namely mine) chokes on our definitions and uses of the "HZ"
      symbol in crypto/tmdiff.[ch] and apps/speed.c as a "bad function cast"
      (when in fact there is no function casting involved at all). In both cases,
      it is easily worked around by not defining a cast into the macro and
      jiggling the expressions slightly.
      
      In addition - this highlights some cruft in openssl that needs sorting out.
      The tmdiff.h header is exported as part of the openssl API despite the fact
      that it is ugly as the driven sludge and not used anywhere in the library,
      applications, or utilities. More weird still, almost identical code exists
      in apps/speed.c though it looks to be slightly tweaked - so either tmdiff
      should be updated and used by speed.c, or it should be dumped because it's
      obviously not useful enough.
      
      Rather than removing it for now, I've changed the API for tmdiff to at
      least make sense. This involves taking the object type (MS_TM) from the
      implementation and using it in the header rather than using "char *" in the
      API and casting mercilessly in the code (ugh). If someone doesn't like
      "MS_TM" and the "ms_time_***" naming, by all means change it. This should
      be a harmless improvement, because the existing API is clearly not very
      useful (eg. we reimplement it rather than using it in our own utils).
      
      However, someone still needs to take a hack at consolidating speed.c and
      tmdiff.[ch] somehow.
      0991f070
    • Geoff Thorpe's avatar
      Update any code that was using deprecated functions so that everything builds · 2aaec9cc
      Geoff Thorpe authored
      and links with OPENSSL_NO_DEPRECATED defined.
      2aaec9cc
    • Geoff Thorpe's avatar
      When OPENSSL_NO_DEPRECATED is defined, deprecated functions are (or should · 9d473aa2
      Geoff Thorpe authored
      be) precompiled out in the API headers. This change is to ensure that if
      it is defined when compiling openssl, the deprecated functions aren't
      implemented either.
      9d473aa2
  2. Oct 11, 2003
  3. Oct 10, 2003
  4. Sep 30, 2003
  5. Sep 25, 2003
    • Ralf S. Engelschall's avatar
      Fix prime generation loop in crypto/bn/bn_prime.pl by making · 6bd27f86
      Ralf S. Engelschall authored
      sure the loop does correctly stop and breaking ("division by zero")
      modulus operations are not performed. The (pre-generated) prime
      table crypto/bn/bn_prime.h was already correct, but it could not be
      re-generated on some platforms because of the "division by zero"
      situation in the script.
      6bd27f86
  6. Sep 04, 2003
  7. Sep 03, 2003
  8. Jul 22, 2003
  9. Jul 21, 2003
  10. Jun 19, 2003
  11. Jun 11, 2003
  12. Jun 10, 2003
  13. Jun 03, 2003
  14. Jun 01, 2003
  15. May 01, 2003
  16. Apr 29, 2003
  17. Apr 11, 2003
  18. Apr 03, 2003
  19. Apr 02, 2003
  20. Mar 30, 2003
  21. Mar 24, 2003
  22. Mar 21, 2003
  23. Mar 20, 2003