1. 06 8月, 2008 1 次提交
    • G
      Remove the dual-callback scheme for numeric and pointer thread IDs, · 4c329696
      Geoff Thorpe 提交于
      deprecate the original (numeric-only) scheme, and replace with the
      CRYPTO_THREADID object. This hides the platform-specifics and should reduce
      the possibility for programming errors (where failing to explicitly check
      both thread ID forms could create subtle, platform-specific bugs).
      
      Thanks to Bodo, for invaluable review and feedback.
      4c329696
  2. 17 7月, 2008 1 次提交
  3. 05 7月, 2008 1 次提交
  4. 04 7月, 2008 1 次提交
  5. 26 5月, 2008 1 次提交
  6. 28 3月, 2008 1 次提交
    • G
      There was a need to support thread ID types that couldn't be reliably cast · f7ccba3e
      Geoff Thorpe 提交于
      to 'unsigned long' (ie. odd platforms/compilers), so a pointer-typed
      version was added but it required portable code to check *both* modes to
      determine equality. This commit maintains the availability of both thread
      ID types, but deprecates the type-specific accessor APIs that invoke the
      callbacks - instead a single type-independent API is used.  This simplifies
      software that calls into this interface, and should also make it less
      error-prone - as forgetting to call and compare *both* thread ID accessors
      could have led to hard-to-debug/infrequent bugs (that might only affect
      certain platforms or thread implementations). As the CHANGES note says,
      there were corresponding deprecations and replacements in the
      thread-related functions for BN_BLINDING and ERR too.
      f7ccba3e
  7. 23 6月, 2006 1 次提交
  8. 05 7月, 2005 1 次提交
  9. 17 5月, 2005 1 次提交
  10. 27 12月, 2003 1 次提交
    • R
      Use BUF_strlcpy() instead of strcpy(). · d420ac2c
      Richard Levitte 提交于
      Use BUF_strlcat() instead of strcat().
      Use BIO_snprintf() instead of sprintf().
      In some cases, keep better track of buffer lengths.
      This is part of a large change submitted by Markus Friedl <markus@openbsd.org>
      d420ac2c
  11. 18 11月, 2002 1 次提交
  12. 13 11月, 2002 1 次提交
  13. 28 8月, 2001 2 次提交
  14. 08 7月, 2001 1 次提交
  15. 22 2月, 2001 1 次提交
  16. 20 2月, 2001 1 次提交
    • R
      Make all configuration macros available for application by making · cf1b7d96
      Richard Levitte 提交于
      sure they are available in opensslconf.h, by giving them names starting
      with "OPENSSL_" to avoid conflicts with other packages and by making
      sure e_os2.h will cover all platform-specific cases together with
      opensslconf.h.
      
      I've checked fairly well that nothing breaks with this (apart from
      external software that will adapt if they have used something like
      NO_KRB5), but I can't guarantee it completely, so a review of this
      change would be a good thing.
      cf1b7d96
  17. 19 2月, 2001 1 次提交
  18. 09 1月, 2001 1 次提交
  19. 16 12月, 2000 1 次提交
  20. 14 12月, 2000 1 次提交
  21. 09 12月, 2000 1 次提交
    • G
      Next step in tidying up the LHASH code. · d0fa136c
      Geoff Thorpe 提交于
      DECLARE/IMPLEMENT macros now exist to create type (and prototype) safe
      wrapper functions that avoid the use of function pointer casting yet retain
      type-safety for type-specific callbacks. However, most of the usage within
      OpenSSL itself doesn't really require the extra function because the hash
      and compare callbacks are internal functions declared only for use by the
      hash table. So this change catches all those cases and reimplements the
      functions using the base-level LHASH prototypes and does per-variable
      casting inside those functions to convert to the appropriate item type.
      
      The exception so far is in ssl_lib.c where the hash and compare callbacks
      are not static - they're exposed in ssl.h so their prototypes should not be
      changed. In this last case, the IMPLEMENT_LHASH_*** macros have been left
      intact.
      d0fa136c
  22. 04 12月, 2000 1 次提交
  23. 02 12月, 2000 1 次提交
    • G
      First step in tidying up the LHASH code. The callback prototypes (and · 385d8138
      Geoff Thorpe 提交于
      casts) used in the lhash code are about as horrible and evil as they can
      be. For starters, the callback prototypes contain empty parameter lists.
      Yuck.
      
      This first change defines clearer prototypes - including "typedef"'d
      function pointer types to use as "hash" and "compare" callbacks, as well as
      the callbacks passed to the lh_doall and lh_doall_arg iteration functions.
      Now at least more explicit (and clear) casting is required in all of the
      dependant code - and that should be included in this commit.
      
      The next step will be to hunt down and obliterate some of the function
      pointer casting being used when it's not necessary - a particularly evil
      variant exists in the implementation of lh_doall.
      385d8138
  24. 29 11月, 2000 1 次提交
  25. 13 11月, 2000 1 次提交
  26. 02 6月, 2000 1 次提交
    • R
      There have been a number of complaints from a number of sources that names · 26a3a48d
      Richard Levitte 提交于
      like Malloc, Realloc and especially Free conflict with already existing names
      on some operating systems or other packages.  That is reason enough to change
      the names of the OpenSSL memory allocation macros to something that has a
      better chance of being unique, like prepending them with OPENSSL_.
      
      This change includes all the name changes needed throughout all C files.
      26a3a48d
  27. 02 5月, 2000 1 次提交
    • R
      In Message-ID: <003201bfb332$14a07520$0801a8c0@janm.transactionsite.com>, · 65962686
      Richard Levitte 提交于
      "Jan Mikkelsen" <janm@transactionsite.com> correctly states that the
      OpenSSL header files have #include's and extern "C"'s in an incorrect
      order.  Thusly fixed.
      
      Also, make the memory debugging routines defined and declared with
      prototypes, and use void* instead of char* for memory blobs.
      
      And last of all, redo the ugly callback construct for elegance and
      better definition (with prototypes).
      65962686
  28. 18 3月, 2000 1 次提交
  29. 11 2月, 2000 1 次提交
  30. 31 1月, 2000 1 次提交
  31. 23 1月, 2000 1 次提交
  32. 18 1月, 2000 1 次提交
    • R
      Compaq C 6.2 for VMS will complain when we want to convert · a9188d4e
      Richard Levitte 提交于
      non-function pointers to function pointers and vice versa.
      The current solution is to have unions that describe the
      conversion we want to do, and gives us the ability to extract
      the type of data we want.
      
      The current solution is a quick fix, and can probably be made
      in a more general or elegant way.
      a9188d4e
  33. 15 1月, 2000 2 次提交
  34. 18 12月, 1999 5 次提交