1. 12 5月, 2016 1 次提交
  2. 29 4月, 2016 1 次提交
    • M
      Avoid a NULL ptr deref if group is not set · 40a8643a
      Matt Caswell 提交于
      We should only copy parameters and keys if the group is set. Otherwise
      they don't really make any sense. Previously we copied the private key
      regardless of whether the group was set...but if it wasn't a NULL ptr
      deref could occur. It's unclear whether we could ever get into that
      situation, but since we were already checking it for the public key we
      should be consistent.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      40a8643a
  3. 23 4月, 2016 1 次提交
  4. 30 3月, 2016 1 次提交
  5. 21 3月, 2016 1 次提交
  6. 09 3月, 2016 1 次提交
  7. 02 3月, 2016 2 次提交
  8. 29 2月, 2016 3 次提交
  9. 27 2月, 2016 2 次提交
  10. 26 2月, 2016 1 次提交
  11. 12 2月, 2016 1 次提交
  12. 05 2月, 2016 4 次提交
  13. 01 2月, 2016 1 次提交
  14. 27 1月, 2016 1 次提交
    • R
      Remove /* foo.c */ comments · 34980760
      Rich Salz 提交于
      This was done by the following
              find . -name '*.[ch]' | /tmp/pl
      where /tmp/pl is the following three-line script:
              print unless $. == 1 && m@/\* .*\.[ch] \*/@;
              close ARGV if eof; # Close file to reset $.
      
      And then some hand-editing of other files.
      Reviewed-by: NViktor Dukhovni <viktor@openssl.org>
      34980760
  15. 21 1月, 2016 1 次提交
  16. 14 1月, 2016 1 次提交
    • R
      Add CRYPTO_EX_DATA; remove EC_EXTRA_DATA · 3aef36ff
      Rich Salz 提交于
      Add CRYPTO_EX_DATA add EndC_KEY_[gs]et_method, From Roumen Petrov.
      Had to add various exdata calls to init/copy/free the exdata.
      Had to remove const from some EC functions because exdata isn't
      const-correct. :(
      Also remove EC_EXTRA_DATA and use a union to hold the possible
      pre-computed values and an enum to tell which value is in the
      union. (Rich Salz)
      Reviewed-by: NDr. Stephen Henson <steve@openssl.org>
      3aef36ff
  17. 29 12月, 2015 1 次提交
  18. 16 12月, 2015 1 次提交
  19. 10 12月, 2015 7 次提交
  20. 10 11月, 2015 1 次提交
  21. 30 9月, 2015 1 次提交
    • D
      Fix no-stdio build · 984d6c60
      David Woodhouse 提交于
      Much related/similar work also done by
      Ivan Nestlerode <ivan.nestlerode@sonos.com>
      
         +Replace FILE BIO's with dummy ops that fail.
         +Include <stdio.h> for sscanf() even with no-stdio (since the declaration
          is there). We rely on sscanf() to parse the OPENSSL_ia32cap environment
          variable, since it can be larger than a 'long'. And we don't rely on the
          availability of strtoull().
         +Remove OPENSSL_stderr(); not used.
         +Make OPENSSL_showfatal() do nothing (currently without stdio there's
          nothing we can do).
         +Remove file-based functionality from ssl/. The function
          prototypes were already gone, but not the functions themselves.
         +Remove unviable conf functionality via SYS_UEFI
         +Add fallback definition of BUFSIZ.
         +Remove functions taking FILE * from header files.
         +Add missing DECLARE_PEM_write_fp_const
         +Disable X509_LOOKUP_hash_dir(). X509_LOOKUP_file() was already compiled out,
          so remove its prototype.
         +Use OPENSSL_showfatal() in CRYPTO_destroy_dynlockid().
         +Eliminate SRP_VBASE_init() and supporting functions. Users will need to
          build the verifier manually instead.
         +Eliminate compiler warning for unused do_pk8pkey_fp().
         +Disable TEST_ENG_OPENSSL_PKEY.
         +Disable GOST engine as is uses [f]printf all over the place.
         +Eliminate compiler warning for unused send_fp_chars().
      Signed-off-by: NRich Salz <rsalz@akamai.com>
      Reviewed-by: NTim Hudson <tjh@openssl.org>
      984d6c60
  22. 04 9月, 2015 1 次提交
  23. 04 8月, 2015 1 次提交
  24. 10 6月, 2015 1 次提交
    • M
      EC_POINT_is_on_curve does not return a boolean · 68886be7
      Matt Caswell 提交于
      The function EC_POINT_is_on_curve does not return a boolean value.
      It returns 1 if the point is on the curve, 0 if it is not, and -1
      on error. Many usages within OpenSSL were incorrectly using this
      function and therefore not correctly handling error conditions.
      
      With thanks to the Open Crypto Audit Project for reporting this issue.
      Reviewed-by: NKurt Roeckx <kurt@openssl.org>
      68886be7
  25. 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
  26. 01 5月, 2015 2 次提交
    • 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
    • R
      free cleanup almost the finale · 4b45c6e5
      Rich Salz 提交于
      Add OPENSSL_clear_free which merges cleanse and free.
      (Names was picked to be similar to BN_clear_free, etc.)
      Removed OPENSSL_freeFunc macro.
      Fixed the small simple ones that are left:
              CRYPTO_free CRYPTO_free_locked OPENSSL_free_locked
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      4b45c6e5