1. 27 2月, 2016 1 次提交
    • D
      RT4335: Fix UEFI build of OBJ_NAME_new_index() · 2d51c28f
      David Woodhouse 提交于
      We are using strcmp() as the cmp_func, where in the EDK2 environment
      strcmp actually ends up being the external AsciiStrCmp() function —
      an EFI library function defined with the Microsoft ABI.
      
      This means that we can't just assign function pointers to it, since
      in GCC-hosted builds the ABI of any function *not* explicitly marked
      EFIAPI is the native SysV ABI.
      
      Arguably this stupidity ought to be resolved on the UEFI side, but in
      the general case that would mean that we need to provide ABI-compatible
      wrappers for *all* the "standard" functions, just in case they're used
      like this.
      
      And in fact we already have a workaround here for DEC C. So instead of
      playing games with casting function pointers, it's nicer just to use a
      simple function to wrap the strcmp() call. That cleans up the DEC C
      workaround, *and* it works around the UEFI bogosity at the same time.
      Signed-off-by: NRich Salz <rsalz@openssl.org>
      Reviewed-by: NKurt Roeckx <kurt@openssl.org>
      2d51c28f
  2. 20 2月, 2016 1 次提交
    • R
      Always build library object files with shared library cflags · 45502bfe
      Richard Levitte 提交于
      This takes us away from the idea that we know exactly how our static
      libraries are going to get used.  Instead, we make them available to
      build shareable things with, be it other shared libraries or DSOs.
      
      On the other hand, we also have greater control of when the shared
      library cflags.  They will never be used with object files meant got
      binaries, such as apps/openssl or test/test*.
      
      With unified, we take this a bit further and prepare for having to
      deal with extra cflags specifically to be used with DSOs (dynamic
      engines), libraries and binaries (applications).
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      45502bfe
  3. 19 2月, 2016 1 次提交
  4. 12 2月, 2016 1 次提交
    • R
      Perl's chop / chomp considered bad, use a regexp instead · 9ba96fbb
      Richard Levitte 提交于
      Once upon a time, there was chop, which somply chopped off the last
      character of $_ or a given variable, and it was used to take off the
      EOL character (\n) of strings.
      
      ... but then, you had to check for the presence of such character.
      
      So came chomp, the better chop which checks for \n before chopping it
      off.  And this worked well, as long as Perl made internally sure that
      all EOLs were converted to \n.
      
      These days, though, there seems to be a mixture of perls, so lines
      from files in the "wrong" environment might have \r\n as EOL, or just
      \r (Mac OS, unless I'm misinformed).
      
      So it's time we went for the more generic variant and use s|\R$||, the
      better chomp which recognises all kinds of known EOLs and chops them
      off.
      
      A few chops were left alone, as they are use as surgical tools to
      remove one last slash or one last comma.
      
      NOTE: \R came with perl 5.10.0.  It means that from now on, our
      scripts will fail with any older version.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      9ba96fbb
  5. 06 2月, 2016 1 次提交
  6. 04 2月, 2016 3 次提交
  7. 03 2月, 2016 1 次提交
  8. 01 2月, 2016 1 次提交
  9. 30 1月, 2016 1 次提交
  10. 29 1月, 2016 1 次提交
  11. 28 1月, 2016 1 次提交
  12. 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
  13. 20 1月, 2016 1 次提交
  14. 19 1月, 2016 1 次提交
  15. 18 1月, 2016 1 次提交
  16. 13 1月, 2016 1 次提交
  17. 12 1月, 2016 6 次提交
  18. 08 1月, 2016 3 次提交
    • R
      mem functions cleanup · bbd86bf5
      Rich Salz 提交于
      Only two macros CRYPTO_MDEBUG and CRYPTO_MDEBUG_ABORT to control this.
      If CRYPTO_MDEBUG is not set, #ifdef out the whole debug machinery.
              (Thanks to Jakob Bohm for the suggestion!)
      Make the "change wrapper functions" be the only paradigm.
      Wrote documentation!
      Format the 'set func' functions so their paramlists are legible.
      Format some multi-line comments.
      Remove ability to get/set the "memory debug" functions at runtme.
      Remove MemCheck_* and CRYPTO_malloc_debug_init macros.
      Add CRYPTO_mem_debug(int flag) function.
      Add test/memleaktest.
      Rename CRYPTO_malloc_init to OPENSSL_malloc_init; remove needless calls.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      bbd86bf5
    • D
      Only declare stacks in headers · 4a1f3f27
      Dr. Stephen Henson 提交于
      Don't define stacks in C source files: it causes warnings
      about unused functions in some compilers.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      4a1f3f27
    • D
      Rename DECLARE*STACK_OF to DEFINE*STACK_OF · 85885715
      Dr. Stephen Henson 提交于
      Applications wishing to include their own stacks now just need to include
      
      DEFINE_STACK_OF(foo)
      
      in a header file.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      85885715
  19. 17 12月, 2015 1 次提交
    • R
      Rename some BUF_xxx to OPENSSL_xxx · 7644a9ae
      Rich Salz 提交于
      Rename BUF_{strdup,strlcat,strlcpy,memdup,strndup,strnlen}
      to OPENSSL_{strdup,strlcat,strlcpy,memdup,strndup,strnlen}
      Add #define's for the old names.
      Add CRYPTO_{memdup,strndup}, called by OPENSSL_{memdup,strndup} macros.
      Reviewed-by: NTim Hudson <tjh@openssl.org>
      7644a9ae
  20. 11 12月, 2015 1 次提交
  21. 10 12月, 2015 1 次提交
  22. 10 11月, 2015 1 次提交
  23. 05 11月, 2015 1 次提交
  24. 06 10月, 2015 1 次提交
  25. 04 9月, 2015 1 次提交
  26. 17 8月, 2015 1 次提交
  27. 23 6月, 2015 1 次提交
  28. 09 6月, 2015 1 次提交
  29. 03 6月, 2015 1 次提交
  30. 23 5月, 2015 1 次提交
    • R
      Fix the update target and remove duplicate file updates · 0f539dc1
      Richard Levitte 提交于
      We had updates of certain header files in both Makefile.org and the
      Makefile in the directory the header file lived in.  This is error
      prone and also sometimes generates slightly different results (usually
      just a comment that differs) depending on which way the update was
      done.
      
      This removes the file update targets from the top level Makefile, adds
      an update: target in all Makefiles and has it depend on the depend: or
      local_depend: targets, whichever is appropriate, so we don't get a
      double run through the whole file tree.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      0f539dc1
  31. 21 5月, 2015 1 次提交