1. 05 5月, 2015 1 次提交
    • R
      Use safer sizeof variant in malloc · b4faea50
      Rich Salz 提交于
      For a local variable:
              TYPE *p;
      Allocations like this are "risky":
              p = OPENSSL_malloc(sizeof(TYPE));
      if the type of p changes, and the malloc call isn't updated, you
      could get memory corruption.  Instead do this:
              p = OPENSSL_malloc(sizeof(*p));
      Also fixed a few memset() calls that I noticed while doing this.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      b4faea50
  2. 04 5月, 2015 1 次提交
  3. 01 5月, 2015 1 次提交
    • R
      free NULL cleanup 7 · 23a1d5e9
      Rich Salz 提交于
      This gets BN_.*free:
          BN_BLINDING_free BN_CTX_free BN_FLG_FREE BN_GENCB_free
          BN_MONT_CTX_free BN_RECP_CTX_free BN_clear_free BN_free BUF_MEM_free
      
      Also fix a call to DSA_SIG_free to ccgost engine and remove some #ifdef'd
      dead code in engines/e_ubsec.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      23a1d5e9
  4. 01 4月, 2015 1 次提交
  5. 26 3月, 2015 1 次提交
  6. 06 2月, 2015 1 次提交
  7. 03 2月, 2015 1 次提交
  8. 22 1月, 2015 2 次提交
  9. 20 12月, 2014 1 次提交
  10. 17 12月, 2014 1 次提交
    • E
      Build fixes · b597aab8
      Emilia Kasper 提交于
      Various build fixes, mostly uncovered by clang's unused-const-variable
      and unused-function errors.
      Reviewed-by: NKurt Roeckx <kurt@openssl.org>
      (cherry picked from commit 0e1c318ece3c82e96ae95a34a1badf58198d6b28)
      b597aab8
  11. 09 12月, 2014 1 次提交
  12. 13 8月, 2014 1 次提交
  13. 01 8月, 2014 1 次提交
  14. 19 10月, 2011 2 次提交
  15. 13 2月, 2011 1 次提交
  16. 10 1月, 2011 1 次提交
  17. 06 9月, 2010 1 次提交
  18. 27 8月, 2010 1 次提交
  19. 26 8月, 2010 1 次提交
  20. 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
  21. 04 7月, 2008 1 次提交
  22. 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
  23. 22 5月, 2007 1 次提交
  24. 29 8月, 2005 1 次提交
  25. 11 8月, 2005 1 次提交
  26. 08 8月, 2005 1 次提交
  27. 10 5月, 2005 1 次提交
  28. 23 4月, 2005 1 次提交
  29. 18 5月, 2004 1 次提交
  30. 20 4月, 2004 1 次提交
  31. 22 7月, 2003 1 次提交
    • B
      add test for secp160r1 · 652ae06b
      Bodo Möller 提交于
      add code for kP+lQ timings
      
      Submitted by: Douglas Stebila <douglas.stebila@sun.com>
      Reviewed by: Bodo Moeller
      652ae06b
  32. 31 1月, 2003 1 次提交
  33. 08 12月, 2002 1 次提交
    • G
      This is a first-cut at improving the callback mechanisms used in · e9224c71
      Geoff Thorpe 提交于
      key-generation and prime-checking functions. Rather than explicitly passing
      callback functions and caller-defined context data for the callbacks, a new
      structure BN_GENCB is defined that encapsulates this; a pointer to the
      structure is passed to all such functions instead.
      
      This wrapper structure allows the encapsulation of "old" and "new" style
      callbacks - "new" callbacks return a boolean result on the understanding
      that returning FALSE should terminate keygen/primality processing.  The
      BN_GENCB abstraction will allow future callback modifications without
      needing to break binary compatibility nor change the API function
      prototypes. The new API functions have been given names ending in "_ex" and
      the old functions are implemented as wrappers to the new ones.  The
      OPENSSL_NO_DEPRECATED symbol has been introduced so that, if defined,
      declaration of the older functions will be skipped. NB: Some
      openssl-internal code will stick with the older callbacks for now, so
      appropriate "#undef" logic will be put in place - this is in case the user
      is *building* openssl (rather than *including* its headers) with this
      symbol defined.
      
      There is another change in the new _ex functions; the key-generation
      functions do not return key structures but operate on structures passed by
      the caller, the return value is a boolean. This will allow for a smoother
      transition to having key-generation as "virtual function" in the various
      ***_METHOD tables.
      e9224c71
  34. 29 11月, 2002 1 次提交
  35. 16 11月, 2002 2 次提交
  36. 11 11月, 2002 1 次提交
  37. 04 11月, 2002 1 次提交