1. 26 5月, 2008 2 次提交
  2. 29 10月, 2003 1 次提交
  3. 21 3月, 2003 1 次提交
  4. 08 7月, 2001 1 次提交
  5. 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
  6. 10 1月, 2001 1 次提交
  7. 09 1月, 2001 1 次提交
    • G
      This adds macros to implement (and/or declare) type-safe wrapper functions · 18602745
      Geoff Thorpe 提交于
      around the callbacks required in the LHASH code for the "doall" functions.
      
      Also - fix the evil function pointer casting in the two lh_doall functions
      by deferring to a static utility function. Previously lh_doall() was
      invoking lh_doall_arg() by casting the callback to the 2-parameter
      prototype and passing in a NULL argument. This appears to have been working
      thus far but it's not a hot idea. If the extra level of indirection becomes
      a performance hit, we can just provide two virtually identical
      implementations for each variant later on.
      18602745
  8. 14 12月, 2000 1 次提交
  9. 04 12月, 2000 1 次提交
  10. 03 12月, 2000 1 次提交
    • G
      Next step in tidying up the LHASH code. This commit defines DECLARE and · dfa46e50
      Geoff Thorpe 提交于
      IMPLEMENT macros for defining wrapper functions for "hash" and "cmp" callbacks
      that are specific to the underlying item type in a hash-table. This prevents
      function pointer casting altogether, and also provides some type-safety
      because the macro does per-variable casting from the (void *) type used in
      LHASH itself to the type declared in the macro - and if that doesn't match the
      prototype expected by the "hash" or "cmp" function then a compiler error will
      result.
      
      NB: IMPLEMENT macros are not required unless predeclared forms are required
      (either in a header file, or further up in a C file than the implementation
      needs to be). The DECLARE macros must occur after the type-specific hash/cmp
      callbacks are declared. Also, the IMPLEMENT and DECLARE macros are such that
      they can be prefixed with "static" if desired and a trailing semi-colon should
      be appended (making it look more like a regular declaration and easier on
      auto-formatting text-editors too).
      
      Now that these macros are defined, I will next be commiting changes to a
      number of places in the library where the casting was doing bad things. After
      that, the final step will be to make the analogous changes for the lh_doall
      and lh_doall_arg functions (more specifically, their callback parameters).
      dfa46e50
  11. 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
  12. 08 11月, 2000 1 次提交
  13. 09 6月, 2000 1 次提交
    • R
      Using checks of the existence of HEADER_{foo}_H in other header files · ef33b970
      Richard Levitte 提交于
      was a really bad idea.  For example, the following:
      
      	#include <x509.h>
      	#include <bio.h>
      	#include <asn1.h>
      
      would make sure that things like ASN1_UTCTIME_print() wasn't defined
      unless you moved the inclusion of bio.h to above the inclusion of
      x509.h.  The reason is that x509.h includes asn1.h, and the
      declaration of ASN1_UTCTIME_print() depended on the definition of
      HEADER_BIO_H.  That's what I call an obscure bug.
      
      Instead, this change makes sure that whatever header files are needed
      for the correct process of one header file are included automagically,
      and that the definitions of, for example, BIO-related things are
      dependent on the absence of the NO_{foo} macros.  This is also
      consistent with the way parts of OpenSSL can be excluded at will.
      ef33b970
  14. 02 5月, 2000 1 次提交
  15. 18 3月, 2000 1 次提交
  16. 31 1月, 2000 1 次提交
  17. 27 4月, 1999 1 次提交
  18. 25 4月, 1999 1 次提交
  19. 18 4月, 1999 1 次提交
  20. 21 12月, 1998 3 次提交