1. 30 5月, 2016 14 次提交
  2. 29 5月, 2016 6 次提交
  3. 28 5月, 2016 10 次提交
  4. 27 5月, 2016 10 次提交
    • R
      Fix fmtstr for BIO_printf() et al · 230c691a
      Richard Levitte 提交于
      -   If we have a maximum amount of characters permitted to be printed
          (for example "%.2s", which allows for a maximum of 2 chars), we
          minimize the number of characters from the string to printed to
          that size.
      -   If there is space for padding and there is a maximum amount of
          characters to print (for example "%3.2s", which shall give at
          least a 1 space padding), the amount of characters to pad with
          gets added to the maximum so the minimum field size (3 in this
          example) gets filled out.
      Reviewed-by: NMatt Caswell <matt@openssl.org>
      230c691a
    • R
      ac1a998d
    • R
    • R
      Windows makefile: handle the case with space in source directory · cb663908
      Richard Levitte 提交于
      This applies when building out-of-source.
      
      RT#4486
      
      NOTE: we can't do the same for Unix, as Unix make doesn't handle this
      type of issue.  Also, directory specs are much less likely to have
      spaces on Unix...
      Reviewed-by: NMatt Caswell <matt@openssl.org>
      cb663908
    • R
      Configure: handle spaces in source directory spec · a3a08f81
      Richard Levitte 提交于
      RT#4486
      Reviewed-by: NMatt Caswell <matt@openssl.org>
      a3a08f81
    • R
      Allow space in PERL spec (unix only) · cbece220
      Richard Levitte 提交于
      Someone wants to configure like this:
      
          PERL="/usr/bin/env perl" ./config
      
      The end goal is to get that in the #! line of CA.pl and a few other
      scripts.  That works well already, but in the Makefile, there were a
      few lines looking like this:
      
          PERL=$(PERL) $(PERL) whatever.pl ...
      
      Those need some quoting.
      
      RT#4311
      Reviewed-by: NMatt Caswell <matt@openssl.org>
      cbece220
    • M
      Avoid msys name mangling · 46ac07f5
      Matt Caswell 提交于
      If using the msys console then msys attempts to "fix" command line
      arguments to convert them from Unix style to Windows style. One of the
      things it does is to look for arguments seperated by colons. This it
      assumes is a list of file paths, so it replaces the colon with a semi-colon.
      This was causing one of our tests to fail when calling the "req" command
      line app. We were attempting to create a new DSA key and passing the
      argument "dsa:../apps/dsa1024.pem". This is exactly what we intended but
      Msys mangles it to "dsa;../apps/dsa1024.pem" and the command fails.
      There doesn't seem to be a way to suppress Msys name mangling. Fortunately
      we can work around this issue by generating the DSA key in a separate step
      by calling "gendsa".
      
      RT#4255
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      46ac07f5
    • M
      Fix intermittent windows failures in TLSProxy tests · cb2e10f2
      Matt Caswell 提交于
      When closing down the socket in s_client Windows will close it immediately
      even if there is data in the write buffer still waiting to be sent. This
      was causing tests to fail in Msys/Mingw builds because TLSProxy doesn't see
      the final CloseNotify.
      
      I have experimented with various ways of doing this "properly" (e.g.
      shutting down the socket before closing, setting SO_LINGER etc). I can't
      seem to find the "magic" formula that will make Windows do this. Inserting
      a short 50ms sleep seems to do the trick...but its not very "nice" so I've
      inserted a TODO on this item. Perhaps someone else will have better luck
      in figuring this out.
      
      RT#4255
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      cb2e10f2
    • M
      Fix s_client/s_server waiting for stdin on Windows · 75dd6c1a
      Matt Caswell 提交于
      On Windows we were using the function _kbhit() to determine whether there
      was input waiting in stdin for us to read. Actually all this does is work
      out whether there is a keyboard press event waiting to be processed in the
      input buffer. This only seems to work in a standard Windows console (not
      Msys console) and also doesn't work if you redirect the input from some
      other source (as we do in TLSProxy tests). This commit changes things to
      work differently depending on whether we are on the Windows console or not.
      
      RT#4255
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      75dd6c1a
    • M
      Fix some s_server issues on Windows · 384f08dc
      Matt Caswell 提交于
      In s_server we call BIO_sock_should_retry() to determine the state of the
      socket and work out whether we should retry an operation on it or not.
      However if you leave it too long to call this then other operations may
      have occurred in the meantime which affect the result. Therefore we should
      call it early and remember the result for when we need to use it. This fixes
      a test problem on Windows.
      
      Another issue with s_server on Windows is that some of output to stdout does
      not get displayed immediately. Apparently more liberal use of BIO_flush is
      required.
      
      RT#4255
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      384f08dc