1. 10 2月, 2016 5 次提交
    • R
      Configure et al: move the installation directory logic to Makefiles · 5482dac9
      Richard Levitte 提交于
      The logic to figure out the combinations of --prefix and --openssldir
      has stayed in Configure so far, with Unix paths as defaults.
      
      However, since we're making Configure increasingly platform agnostic,
      these defaults need to change and adapt to the platform, along with
      the logic to combine them.
      
      The easiest to provide for this is to move the logic and the defaults
      away from Configure and into the build files.
      
      This also means that the definition of the macros ENGINESDIR and
      OPENSSLDIR move away from include/openssl/opensslconf.h and into the
      build files.
      
      Makefile.in is adapted accordingly.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      5482dac9
    • R
      Configure et al: treat C defines separately · bcb1977b
      Richard Levitte 提交于
      With some compilers, C macros are defined differently on the command
      line than on Unix.  It could be that the flad to define them isn't -D,
      it could also be that they need to be grouped together and not be mixed
      in with the other compiler flags (that's how it's done on VMS, for
      example).
      
      On Unix family platform configurations, we can continue to have macro
      definitions mixed in with the rest of the flags, so the changes in
      Configurations/*.conf are kept to an absolute minimum.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      bcb1977b
    • R
      Remove store. · 7984f082
      Rich Salz 提交于
      Rebased and merged by me, with Ben's approval.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      Reviewed-by: NBen Laurie <ben@openssl.org>
      7984f082
    • R
      Make the processing of build.info files more aware of absolute dirs · 2e963849
      Richard Levitte 提交于
      There were cases where some input was absolute, and concatenating it
      to the diretory to the source or build top could fail spectacularly.
      Let's check the input first to see if it's absolute.
      
      And while we're on the subject of checking if a file or dir spec is
      absolute using file_name_is_absolute() has its own quirks on VMS,
      where a logical name is considered absolute under most circumstances.
      This is perfectly correct from a VMS point of view, but when parsing
      the build.info files, we want single word file or directory names to
      only be checked syntactically.  A function isabsolute() that does the
      right thing is the solution.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      2e963849
    • M
      GH649: Fix: version32.rc was not created on Windows · 7839b735
      Mat 提交于
      version32.rc was not created on Windows. The if condition has been corrected.
      Signed-off-by: NRich Salz <rsalz@openssl.org>
      Reviewed-by: NTim Hudson <tjh@openssl.org>
      7839b735
  2. 09 2月, 2016 5 次提交
    • M
      Add an OPENSSL_NO_AUTOERRINIT option · 498abff0
      Matt Caswell 提交于
      This option disables automatic loading of the crypto/ssl error strings in
      order to keep statically linked executable file size down
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      498abff0
    • M
      Provide framework for auto initialise/deinitialise of the library · b184e3ef
      Matt Caswell 提交于
      This commit provides the basis and core code for an auto initialisation
      and deinitialisation framework for libcrypto and libssl. The intention is
      to remove the need (in many circumstances) to call explicit initialise and
      deinitialise functions. Explicit initialisation will still be an option,
      and if non-default initialisation is needed then it will be required.
      Similarly for de-initialisation (although this will be a lot easier since
      it will bring all de-initialisation into a single function).
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      b184e3ef
    • R
      Use rel2abs() on VMS, rather than realpath() · ec182ef0
      Richard Levitte 提交于
      It seems realpath() is quite buggy on VMS, or will at least give quite
      surprising results.  On the other hand, realpath() is the better on
      Unix to clean out clutter like foo/../bar on Unix.
      
      So we make out own function to get the absolute directory for a given
      input, and use rel2abs() or realpath() depending on the platform
      Configure runs on.
      
      Issue reported by Steven M. Schweda <sms@antinode.info>
      Reviewed-by: NAndy Polyakov <appro@openssl.org>
      ec182ef0
    • R
      unified build scheme: add and document the "unified" driving engine · ddf1847d
      Richard Levitte 提交于
      common.tmpl will be used together with the template build file, and is
      the engine that connects the information gathered from all the
      build.info files with making the build file itself.
      
      This file expects there to be a template section in the build file
      template that defines a number perl functions designed to return
      strings with appropriate lines for the build system at hand.  The
      exact functions, what they can expect as arguments and what output
      they're expected to produce is documented in Configurations/README.
      Reviewed-by: NViktor Dukhovni <viktor@openssl.org>
      ddf1847d
    • R
      Use File::Path::mkpath rather than File::Path::make_path · dca99383
      Richard Levitte 提交于
      File::Path::make_path didn't show up before File::Path 2.06 / perl v5.10.1.
      Because we're trying to stay compatible with perl v5.10.0 and up,
      it's better to use the legacy interface.
      Reviewed-by: NAndy Polyakov <appro@openssl.org>
      dca99383
  3. 07 2月, 2016 1 次提交
    • R
      Enhance and clear the support of linker flags · c86ddbe6
      Richard Levitte 提交于
      Some time ago, we had a ex_libs configuration setting that could be
      divided into lflags and ex_libs.  These got divided in two settings,
      lflags and ex_libs, and the former was interpreted to be general
      linking flags.
      
      Unfortunately, that conclusion wasn't entirely accurate.  Most of
      those linking were meant to end up in a very precise position on the
      linking command line, just before the spec of libraries the linking
      depends on.
      
      Back to the drawing board, we're diving things further, now having
      lflags, which are linking flags that aren't depending on command line
      position, plib_lflags, which are linking flags that should show up just
      before the spec of libraries to depend on, and finally ex_libs, which
      is the spec of extra libraries to depend on.
      
      Also, documentation is changed in Configurations/README.  This was
      previously forgotten.
      Reviewed-by: NKurt Roeckx <kurt@openssl.org>
      c86ddbe6
  4. 05 2月, 2016 1 次提交
  5. 04 2月, 2016 2 次提交
  6. 03 2月, 2016 1 次提交
  7. 01 2月, 2016 4 次提交
  8. 31 1月, 2016 2 次提交
  9. 30 1月, 2016 6 次提交
  10. 29 1月, 2016 2 次提交
  11. 28 1月, 2016 3 次提交
    • R
      Remove EIGHT_BIT and SIXTEEN_BIT · b4f35e5e
      Rich Salz 提交于
      Also cleaned up bn_prime.pl to current coding style.
      Reviewed-by: NAndy Polyakov <appro@openssl.org>
      b4f35e5e
    • R
      Remove outdated legacy crypto options · 3e9e810f
      Rich Salz 提交于
      Many options for supporting optimizations for legacy crypto on legacy
      platforms have been removed.  This simplifies the source code and
      does not really penalize anyone.
              DES_PTR (always on)
              DES_RISC1, DES_RISC2 (always off)
              DES_INT (always 'unsigned int')
              DES_UNROLL (always on)
              BF_PTR (always on) BF_PTR2 (removed)
              MD2_CHAR, MD2_LONG (always 'unsigned char')
              IDEA_SHORT, IDEA_LONG (always 'unsigned int')
              RC2_SHORT, RC2_LONG (always 'unsigned int')
              RC4_LONG (only int and char (for assembler) are supported)
              RC4_CHUNK (always long), RC_CHUNK_LL (removed)
              RC4_INDEX (always on)
      And also make D_ENCRYPT macro more clear (@appro)
      
      This is done in consultation with Andy.
      Reviewed-by: NAndy Polyakov <appro@openssl.org>
      3e9e810f
    • R
      Fix check of what makedepprog should be · 8ed40b83
      Richard Levitte 提交于
      A mistake was made and the setting of this config variable got
      reverted to an older behavior.  This restores the latest.
      Reviewed-by: NEmilia Käsper <emilia@openssl.org>
      8ed40b83
  12. 27 1月, 2016 1 次提交
  13. 26 1月, 2016 7 次提交