1. 05 12月, 2004 1 次提交
  2. 31 5月, 2002 1 次提交
  3. 21 2月, 2001 2 次提交
    • R
      With later version of DEC C on VMS, some functions (strcmp(), for · 460fe31f
      Richard Levitte 提交于
      example) are declared with some extra linkage information.  This
      generates a warning when using the function name as a value to a
      regular function pointer with the "correct" definition of the
      function.  Therefore, use a macro to cast the appropriate function on
      VMS.
      460fe31f
    • G
      The callbacks in the NAME_FUNCS structure are not used directly as LHASH · 4dc719fc
      Geoff Thorpe 提交于
      callbacks, and their prototypes were consistent as they were. These casts
      need reversing.
      
      Also, I personally find line breaks during parameter lists (ie a line
      ending in a comma) easier to read at a glance than line breaks at the end
      of a function call and before a dereference on the return value (ie a line
      ending in a closed-bracket followed by a line starting with "->").
      4dc719fc
  4. 20 2月, 2001 1 次提交
  5. 09 1月, 2001 2 次提交
    • G
      Move all the existing function pointer casts associated with LHASH's two · 3c914840
      Geoff Thorpe 提交于
      "doall" functions to using type-safe wrappers. As and where required, this
      can be replaced by redeclaring the underlying callbacks to use the
      underlying "void"-based prototypes (eg. if performance suffers from an
      extra level of function invocation).
      3c914840
    • G
      Whilst in the process of fixing outstanding function-pointer casts in the · ad2e0320
      Geoff Thorpe 提交于
      LHASH code, this evil was uncovered. The cast was obscuring the fact that
      the function was prototyped to take 2 parameters when in fact it is being
      used as a callback that should take only one. Anyway, the function itself
      ignores the second parameter (thankfully). A proper cure is on the way but
      for now this corrects the inconsistency.
      ad2e0320
  6. 21 12月, 2000 1 次提交
    • D
      Various Win32 related fixes. Doesn't compile yet on · 3c07b4c2
      Dr. Stephen Henson 提交于
      Win32 but it is getting there...
      
      Update mkdef.pl to handle ASN1_ANY and fix headers.
      
      Stop various VC++ warnings.
      
      Include some fixes from "Peter 'Luna' Runestig"
      <peter@runestig.com>
      
      Remove external declaration for des_set_weak_key_flag:
      it doesn't exist.
      3c07b4c2
  7. 14 12月, 2000 1 次提交
  8. 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
  9. 04 12月, 2000 1 次提交
  10. 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
  11. 20 11月, 2000 1 次提交
  12. 21 6月, 2000 1 次提交
    • D
      · 13083215
      Dr. Stephen Henson 提交于
      Fixes for Win32 build.
      
      This is mostly a work around for the old VC++ problem
      that it treats func() as func(void).
      
      Various prototypes had been added to 'compare' function
      pointers that triggered this. This could be fixed by removing
      the prototype, adding function pointer casts to every call or
      changing the passed function to use the expected arguments.
      I mostly did the latter.
      
      The mkdef.pl script was modified to remove the typesafe
      functions which no longer exist.
      
      Oh and some functions called OPENSSL_freeLibrary() were
      changed back to FreeLibrary(), wonder how that happened :-)
      13083215
  13. 17 6月, 2000 1 次提交
    • D
      Safe stack reorganisation in terms of function casts. · 3aceb94b
      Dr. Stephen Henson 提交于
      After some messing around this seems to work but needs
      a few more tests. Working out the syntax for sk_set_cmp_func()
      (cast it to a function that itself returns a function pointer)
      was painful :-(
      
      Needs some testing to see what other compilers think of this
      syntax.
      
      Also needs similar stuff for ASN1_SET_OF etc etc.
      3aceb94b
  14. 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
  15. 01 6月, 2000 1 次提交
  16. 03 3月, 2000 1 次提交
    • D
      · 645820f2
      Dr. Stephen Henson 提交于
      Make name_funcs_stack static.
      645820f2
  17. 26 2月, 2000 1 次提交
  18. 31 1月, 2000 2 次提交
  19. 29 1月, 2000 1 次提交
  20. 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
  21. 19 5月, 1999 1 次提交
  22. 24 4月, 1999 1 次提交
  23. 20 4月, 1999 1 次提交
  24. 18 4月, 1999 1 次提交
  25. 17 1月, 1999 1 次提交
  26. 21 12月, 1998 1 次提交